net/mlx5: E-switch, add drop rule support to ingress ACL
authorMark Bloch <mbloch@nvidia.com>
Mon, 29 Nov 2021 09:23:51 +0000 (09:23 +0000)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 23 Feb 2022 23:21:58 +0000 (15:21 -0800)
commit1749c4c51c16e3e078faae0a876d01bafb187a74
tree130aba1dca9da7b0637de6cd2e5280e668d0c99d
parent82e86a6c7109e0beed1828304b7d62ce2e597444
net/mlx5: E-switch, add drop rule support to ingress ACL

Support inserting an ingress ACL drop rule on the uplink in
switchdev mode. This will be used by downstream patches to offload
active-backup lag mode. The drop rule (if created) is the first rule
in the ACL.

Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Reviewed-by: Maor Gottlieb <maorg@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ingress_ofld.c
drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ofld.h
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h