Commit 503ef41
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>1 parent 2f61e6e commit 503ef41
1 file changed
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4052 | 4052 | | |
4053 | 4053 | | |
4054 | 4054 | | |
4055 | | - | |
4056 | 4055 | | |
4057 | 4056 | | |
4058 | 4057 | | |
4059 | 4058 | | |
4060 | | - | |
| 4059 | + | |
4061 | 4060 | | |
4062 | 4061 | | |
4063 | 4062 | | |
4064 | 4063 | | |
4065 | | - | |
4066 | 4064 | | |
4067 | 4065 | | |
4068 | 4066 | | |
| |||
4075 | 4073 | | |
4076 | 4074 | | |
4077 | 4075 | | |
4078 | | - | |
4079 | | - | |
4080 | | - | |
| 4076 | + | |
| 4077 | + | |
4081 | 4078 | | |
4082 | 4079 | | |
4083 | 4080 | | |
| |||
0 commit comments