All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/1] virtio_net: vdpa: update MAC address when it is generated by virtio-net
@ 2023-01-23 12:00 ` Laurent Vivier
  0 siblings, 0 replies; 15+ messages in thread
From: Laurent Vivier @ 2023-01-23 12:00 UTC (permalink / raw)
  To: linux-kernel
  Cc: Gautam Dawar, Eugenio Pérez, netdev, virtualization,
	Eli Cohen, Cindy Lu, Michael S. Tsirkin, Jason Wang,
	David S. Miller, Parav Pandit

When the MAC address is not provided by the vdpa device virtio_net
driver assigns a random one without notifying the device.
The consequence, in the case of mlx5_vdpa, is the internal routing
tables of the device are not updated and this can block the
communication between two namespaces.

To fix this problem, use virtnet_send_command(VIRTIO_NET_CTRL_MAC)
to set the address from virtnet_probe() when the MAC address is
not provided by the device.

v2:
  - remove vdpa_sim related fixes
  - check virtio_has_feature(vdev, VIRTIO_NET_F_MAC) rather than
    addr_assign_type

Laurent Vivier (1):
  virtio_net: notify MAC address change on device initialization

 drivers/net/virtio_net.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

-- 
2.39.0


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2023-01-27 14:54 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-23 12:00 [PATCH v2 0/1] virtio_net: vdpa: update MAC address when it is generated by virtio-net Laurent Vivier
2023-01-23 12:00 ` Laurent Vivier
2023-01-23 12:00 ` [PATCH v2 1/1] virtio_net: notify MAC address change on device initialization Laurent Vivier
2023-01-23 12:00   ` Laurent Vivier
2023-01-24 10:15   ` Michael S. Tsirkin
2023-01-24 10:15     ` Michael S. Tsirkin
2023-01-24 11:04     ` Laurent Vivier
2023-01-24 11:04       ` Laurent Vivier
2023-01-25  7:13       ` Eli Cohen
2023-01-27 11:08       ` Michael S. Tsirkin
2023-01-27 11:08         ` Michael S. Tsirkin
2023-01-27 12:28         ` Laurent Vivier
2023-01-27 12:28           ` Laurent Vivier
2023-01-27 14:53           ` Michael S. Tsirkin
2023-01-27 14:53             ` Michael S. Tsirkin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.