]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: ACLs for priority tag mode
authorEli Britstein <elibr@mellanox.com>
Mon, 4 Mar 2019 05:01:12 +0000 (05:01 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 1 May 2019 21:39:15 +0000 (14:39 -0700)
commitfa898a689db858e08d867c2cc3ed088344e8ea0e
tree628d71428c522a99ccbe972cd5968f84259674ed
parent13bccbb9eec6d4f3b3b880179bad57b8c2e366bd
net/mlx5e: ACLs for priority tag mode

Current ConnectX HW is unable to perform VLAN pop in TX path and VLAN
push on RX path. As a workaround, untagged packets are tagged with
VID 0x000 allowing pop/push actions to be exchanged with VLAN rewrite
actions.
Use the ingress ACL table, preceding the FDB, to push VLAN 0x000 ID tag
for untagged packets and the egress ACL table, succeeding the FDB, to
pop VLAN 0x000 ID tag.

Signed-off-by: Eli Britstein <elibr@mellanox.com>
Reviewed-by: Oz Shlomo <ozsh@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c