]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Replace the split logic with extended destination
authorEli Britstein <elibr@mellanox.com>
Thu, 22 Nov 2018 12:04:33 +0000 (14:04 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 11 Dec 2018 22:52:19 +0000 (14:52 -0800)
commit96bad7f9109dadf23755691fb4a6517bb43ea7ea
treee4b8c5459f441044a005e0ba09ecca21459959fe
parent552880c5f15ad5ff3f1cf8d2f09b9510af05b00f
net/mlx5e: Replace the split logic with extended destination

Currently the FTE encap flag applies to all destinations.
To support mirroring encapsulated traffic to a local port the driver
split the two destinations to two flow table entries:
Table#0: - FWD to the local vport
         - Goto table#1
Table#1: - Encap and FWD to wire
The firmware extended destination capabilities enable the driver to set
an encapsulation flag per destination.

Remove the split logic and use the extended destination mechanism
instead.

Note that split technique is still required for pedit and VLAN push
scenarios.

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/en_tc.c