net/mlx5: Eswitch, enable forwarding back to uplink port
authorEli Cohen <eli@mellanox.com>
Mon, 24 Feb 2020 14:59:54 +0000 (16:59 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 18 Mar 2020 02:41:39 +0000 (19:41 -0700)
commit613f53fe09a27f928a7d05132e1a74b5136e8f04
tree147f711641480f351fa561f82860c321e08df9c2
parent249ccc3c95bd1bca17406b5b3d0474fd67220931
net/mlx5: Eswitch, enable forwarding back to uplink port

Add dependencny on cap termination_table_raw_traffic to allow non
encapsulated packets received from uplink to be forwarded back to the
received uplink port.

Refactor the conditions into a separate function.

Signed-off-by: Eli Cohen <eli@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
include/linux/mlx5/mlx5_ifc.h