linux/drivers/vdpa
Parav Pandit ef76eb83a1 vdpa/mlx5: Fix clearing of VIRTIO_NET_F_MAC feature bit
Cited patch in the fixes tag clears the features bit during reset.
mlx5 vdpa device feature bits are static decided by device capabilities.
These feature bits (including VIRTIO_NET_F_MAC) are initialized during
device addition time.

Clearing features bit in reset callback cleared the VIRTIO_NET_F_MAC. Due
to this, MAC address provided by the device is not honored.

Fix it by not clearing the static feature bits during reset.

Fixes: 0686082dbf ("vdpa: Add reset callback in vdpa_config_ops")
Signed-off-by: Parav Pandit <parav@nvidia.com>
Reviewed-by: Eli Cohen <elic@nvidia.com>
Link: https://lore.kernel.org/r/20211026175519.87795-7-parav@nvidia.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
2021-11-01 05:26:49 -04:00
..
alibaba eni_vdpa: add vDPA driver for Alibaba ENI 2021-11-01 05:23:41 -04:00
ifcvf vdpa: Enable user to set mac and mtu of vdpa device 2021-11-01 05:26:49 -04:00
mlx5 vdpa/mlx5: Fix clearing of VIRTIO_NET_F_MAC feature bit 2021-11-01 05:26:49 -04:00
vdpa_sim vdpa_sim_net: Enable user to set mac address and mtu 2021-11-01 05:26:49 -04:00
vdpa_user vdpa: Enable user to set mac and mtu of vdpa device 2021-11-01 05:26:49 -04:00
virtio_pci vp_vdpa: add vq irq offloading support 2021-11-01 04:30:34 -04:00
Kconfig eni_vdpa: add vDPA driver for Alibaba ENI 2021-11-01 05:23:41 -04:00
Makefile eni_vdpa: add vDPA driver for Alibaba ENI 2021-11-01 05:23:41 -04:00
vdpa.c vdpa: Enable user to set mac and mtu of vdpa device 2021-11-01 05:26:49 -04:00