]> git.baikalelectronics.ru Git - kernel.git/commit
vdpa/mlx5: re-create forwarding rules after mac modified
authorMichael Qiu <qiudayu@archeros.com>
Mon, 28 Mar 2022 05:48:12 +0000 (01:48 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 28 Mar 2022 20:52:59 +0000 (16:52 -0400)
commit21048d21cae0f138ddacb69a37a6948be5c6ec21
treedf00871891e0212bb23f052342d877209b0e2f6c
parentdf08c1c86becc84ef19dc92896f9375bee12474c
vdpa/mlx5: re-create forwarding rules after mac modified

When MAC Address has been modified in guest, we only re-add the
Mac to mpfs, it is not enough, because the guest network will
not work correctly: the reply package from outside will go
straight away to the host VF net interface.

This patch recreate the flow rules, and make it work correctly.

Signed-off-by: Michael Qiu <qiudayu@archeros.com>
Link: https://lore.kernel.org/r/1648446492-17614-1-git-send-email-08005325@163.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Eli Cohen <elic@nvidia.com>
drivers/vdpa/mlx5/net/mlx5_vnet.c