]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Add flow steering VLAN trap rule
authorAya Levin <ayal@nvidia.com>
Tue, 26 Jan 2021 23:24:13 +0000 (15:24 -0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 28 Jan 2021 03:53:52 +0000 (19:53 -0800)
commit783e4de711995a82141e2b14a3e01b5667d38e9e
tree38b1b642b0e28b1dd4a60735543d640be1432ed5
parent39d9e145352fdcf8426801c4c4337f36ce5237ec
net/mlx5e: Add flow steering VLAN trap rule

Add flow group to the VLAN table to hold the catch-all VLAN rule. Add
API which adds/removes VLAN trap rule. This rule catches packets that
were destined to be dropped due to no-match with previous VLAN rules.
The trap rule steer these packets to the trap tir related to the
trap-RQ.

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/fs.h
drivers/net/ethernet/mellanox/mlx5/core/en_fs.c