search for: mlxbf_tmfifo_get_cfg_mac

Displaying 4 results from an estimated 4 matches for "mlxbf_tmfifo_get_cfg_mac".

2020 Jul 13
0
[vhost:config-endian 38/39] drivers/platform/mellanox/mlxbf-tmfifo.c:1241:22: error: expected ')' before ';' token
...orm/mellanox/mlxbf-tmfifo.c:1170:13: warning: 'mlxbf_tmfifo_cleanup' defined but not used [-Wunused-function] 1170 | static void mlxbf_tmfifo_cleanup(struct mlxbf_tmfifo *fifo) | ^~~~~~~~~~~~~~~~~~~~ drivers/platform/mellanox/mlxbf-tmfifo.c:1128:13: warning: 'mlxbf_tmfifo_get_cfg_mac' defined but not used [-Wunused-function] 1128 | static void mlxbf_tmfifo_get_cfg_mac(u8 *mac) | ^~~~~~~~~~~~~~~~~~~~~~~~ vim +1241 drivers/platform/mellanox/mlxbf-tmfifo.c 1181 1182 /* Probe the TMFIFO. */ 1183 static int mlxbf_tmfifo_probe(struct platform_dev...
2020 Aug 03
0
[PATCH v2 18/24] mlxbf-tmfifo: sparse tags for config access
...A_LEN; - net_config.status = VIRTIO_NET_S_LINK_UP; + + /* A legacy-only interface for now. */ + net_config.mtu = __cpu_to_virtio16(virtio_legacy_is_little_endian(), + ETH_DATA_LEN); + net_config.status = __cpu_to_virtio16(virtio_legacy_is_little_endian(), + VIRTIO_NET_S_LINK_UP); mlxbf_tmfifo_get_cfg_mac(net_config.mac); rc = mlxbf_tmfifo_create_vdev(dev, fifo, VIRTIO_ID_NET, MLXBF_TMFIFO_NET_FEATURES, &net_config, -- MST
2020 Jul 12
0
[vhost:config-endian 38/39] drivers/platform/mellanox/mlxbf-tmfifo.c:1237:2: error: invalid preprocessing directive #defined; did you mean
...F_TMFIFO_NET_FEATURES & (1ULL << VIRTIO_F_VERSION_1))) 1239 > 1240 net_config.mtu = __cpu_to_virtio16(MLXBF_TMFIFO_LITTLE_ENDIAN, 1241 ETH_DATA_LEN); 1242 net_config.status = __cpu_to_virtio16(MLXBF_TMFIFO_LITTLE_ENDIAN, 1243 VIRTIO_NET_S_LINK_UP); 1244 mlxbf_tmfifo_get_cfg_mac(net_config.mac); 1245 rc = mlxbf_tmfifo_create_vdev(dev, fifo, VIRTIO_ID_NET, 1246 MLXBF_TMFIFO_NET_FEATURES, &net_config, 1247 sizeof(net_config)); 1248 if (rc) 1249 goto fail; 1250 1251 mod_timer(&fifo->timer, jiffies + MLXBF_TMFIFO_TIMER_INTERVA...
2020 Aug 03
51
[PATCH v2 00/24] virtio: config space endian-ness cleanup
Config space endian-ness is currently a mess: fields are not tagged with the correct endian-ness so it's easy to make mistakes like instanciating config space in native endian-ness. The following patches adding sparse tagging are currently in my tree. Lightly tested. As a follow-up, I plan to add new APIs that handle modern config space in a more efficient way (bypassing the version check).