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)
commitf1781bedea8cae7f26aa0f20a00017ab746d4d4c
treedf00871891e0212bb23f052342d877209b0e2f6c
parent3f63a1d7f6f500b6891b1003cec3e23ea4996a2e
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