]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Offload tc vlan push/pop using HW action
authorOr Gerlitz <ogerlitz@mellanox.com>
Wed, 31 Jan 2018 16:36:03 +0000 (18:36 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 26 Mar 2018 20:47:13 +0000 (13:47 -0700)
commit53c437e0587eb1c5049af8b4d45144d0267c762f
treed0f735c719c0cf085f41de5211ab6a0c2fa77f10
parent4ec1f05d1b54b677257ba2cdfda5d870134b35fd
net/mlx5e: Offload tc vlan push/pop using HW action

Currently, we are emulating the offload of vlan push/pop actions using
global setup as done by commit add3425c7738 ("net/mlx5: E-Switch, Support
VLAN actions in the offloads mode"). With newer NICs, we can apply a flow
action for that matter, do that while keeping the emulated path for the
older HW brands.

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c