net/mlx5e: Add offloading of E-Switch TC pedit (header re-write) actions
authorOr Gerlitz <ogerlitz@mellanox.com>
Wed, 25 Jan 2017 18:24:20 +0000 (20:24 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 28 Mar 2017 12:34:10 +0000 (15:34 +0300)
commitd7e75a325cb2d2b72e7ac9a185abc1cd59bc9922
tree567f5ee298437ef19c7d3c8d754a552d3d104588
parent2f4fe4cab073c60c1a70cb540662c0a91d133946
net/mlx5e: Add offloading of E-Switch TC pedit (header re-write) actions

This includes calling the parsing code that translates from pedit
speak to the HW API, allocation (deallocation) of a modify header
context and setting the modify header id associated with this
context to the FTE of that flow.

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Reviewed-by: Hadar Hen Zion <hadarh@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