net/mlx5e: Add listener to DMAC filter trap event
authorAya Levin <ayal@nvidia.com>
Tue, 26 Jan 2021 23:24:18 +0000 (15:24 -0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 28 Jan 2021 03:53:54 +0000 (19:53 -0800)
commit49fdbd23418f5b18536d02f257096bd71fc83086
tree51e40a44edb257c75290e281785c0b53b330a87d
parent70038b73e40e2ce6bc4c8f25bbf0747b7a07a61f
net/mlx5e: Add listener to DMAC filter trap event

Add support for trapping packets which didn't match any DMAC in the MAC
table. Add a listener which adds/removes MAC trap rule in the flow
steering according to the trap's action trap/drop.

Signed-off-by: Aya Levin <ayal@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en/trap.c