summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
diff options
context:
space:
mode:
authorOr Gerlitz2017-01-25 19:24:20 +0100
committerSaeed Mahameed2017-03-28 14:34:10 +0200
commitd7e75a325cb2d2b72e7ac9a185abc1cd59bc9922 (patch)
tree567f5ee298437ef19c7d3c8d754a552d3d104588 /drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
parentnet/mlx5e: Add offloading of NIC TC pedit (header re-write) actions (diff)
downloadkernel-qcow2-linux-d7e75a325cb2d2b72e7ac9a185abc1cd59bc9922.tar.gz
kernel-qcow2-linux-d7e75a325cb2d2b72e7ac9a185abc1cd59bc9922.tar.xz
kernel-qcow2-linux-d7e75a325cb2d2b72e7ac9a185abc1cd59bc9922.zip
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>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/eswitch.h')
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/eswitch.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
index cd9240c3a7f0..1f56ed9f5a6f 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
+++ b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
@@ -308,6 +308,7 @@ struct mlx5_esw_flow_attr {
u16 vlan;
bool vlan_handled;
struct mlx5_encap_entry *encap;
+ u32 mod_hdr_id;
};
int mlx5_eswitch_sqs2vport_start(struct mlx5_eswitch *esw,