vdpa/mlx5: Forward only packets with allowed MAC address
authorEli Cohen <elic@nvidia.com>
Tue, 26 Oct 2021 17:55:19 +0000 (20:55 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 1 Nov 2021 09:26:49 +0000 (05:26 -0400)
commit540061ac79f0302ae91e44e6cd216cbaa3af1757
tree31155257eab84e9db51a91c73d0574fd7f60bb0a
parenta007d940040c0b3d1fcb5f39159c2b141b85eae0
vdpa/mlx5: Forward only packets with allowed MAC address

Add rules to forward packets to the net device's TIR only if the
destination MAC is equal to the configured MAC. This is required to
prevent the netdevice from receiving traffic not destined to its
configured MAC.

Signed-off-by: Eli Cohen <elic@nvidia.com>
Reviewed-by: Parav Pandit <parav@nvidia.com>
Link: https://lore.kernel.org/r/20211026175519.87795-9-parav@nvidia.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
drivers/vdpa/mlx5/net/mlx5_vnet.c