]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
vdpa/mlx5: update MAC address handling in mlx5_vdpa_set_attr()
authorCindy Lu <lulu@redhat.com>
Mon, 26 Jan 2026 09:45:38 +0000 (17:45 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 4 Feb 2026 19:13:43 +0000 (14:13 -0500)
commit503ef41e88080fb2d2399173e34d26e59567fb5e
treee3c4c53ddcd47288e80b492d2ebf045682277073
parent2f61e6eda7a793bca4df6efea95815375e122f3a
vdpa/mlx5: update MAC address handling in mlx5_vdpa_set_attr()

Improve MAC address handling in mlx5_vdpa_set_attr() to ensure that
old MAC entries are properly removed from the MPFS table before
adding a new one. The new MAC address is then added to both the MPFS
and VLAN tables.

This change fixes an issue where the updated MAC address would not
take effect until QEMU was rebooted.

Signed-off-by: Cindy Lu <lulu@redhat.com>
Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20260126094848.9601-4-lulu@redhat.com>
drivers/vdpa/mlx5/net/mlx5_vnet.c