]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd0bfbf13d8e7a70859eaeb7a1dc20d7bb94c3d6c
tree601b0dc82a35be7d92e2ea20ef8e19819a303b17
parentbeed27c11aa073b8fb8c6c4b057dfd635cdce921
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: e749ce63c1f7 ("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