]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0a02251ec40b2354042021947635ef3270271751
tree31155257eab84e9db51a91c73d0574fd7f60bb0a
parent985449ed6771bd299127c466ccb64e933dbc491c
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