net/mlx5e: E-switch, Fix Ingress ACL groups in switchdev mode for prio tag
authorParav Pandit <parav@mellanox.com>
Tue, 12 Nov 2019 23:06:00 +0000 (17:06 -0600)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 5 Dec 2019 21:02:13 +0000 (13:02 -0800)
commitb7826076d7ae5928fdd2972a6c3e180148fb74c1
tree601b0dc82a35be7d92e2ea20ef8e19819a303b17
parent3d7cadae51f1b7f28358e36d0a1ce3f0ae2eee60
net/mlx5e: E-switch, Fix Ingress ACL groups in switchdev mode for prio tag

In cited commit, when prio tag mode is enabled, FTE creation fails
due to missing group with valid match criteria.

Hence,
(a) create prio tag group metadata_prio_tag_grp when prio tag is
enabled with match criteria for vlan push FTE.
(b) Rename metadata_grp to metadata_allmatch_grp to reflect its purpose.

Also when priority tag is enabled, delete metadata settings after
deleting ingress rules, which are using it.

Tide up rest of the ingress config code for unnecessary labels.

Fixes: 10652f39943e ("net/mlx5: Refactor ingress acl configuration")
Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Eli Britstein <elibr@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c