summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
diff options
context:
space:
mode:
authorJianbo Liu2018-07-03 07:46:13 +0200
committerSaeed Mahameed2018-07-24 00:01:11 +0200
commit1482bd3d50d77d28961999ade98854b31b342156 (patch)
tree471d994195213b29908091902c741d5fe95e5a9f /drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
parentnet/mlx5e: Support offloading tc double vlan headers match (diff)
downloadkernel-qcow2-linux-1482bd3d50d77d28961999ade98854b31b342156.tar.gz
kernel-qcow2-linux-1482bd3d50d77d28961999ade98854b31b342156.tar.xz
kernel-qcow2-linux-1482bd3d50d77d28961999ade98854b31b342156.zip
net/mlx5e: Refactor tc vlan push/pop actions offloading
Extract actions offloading code to a new function, and also extend data structures for double vlan actions. Signed-off-by: Jianbo Liu <jianbol@mellanox.com> Reviewed-by: Or Gerlitz <ogerlitz@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.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
index b174da2884c5..befa0011efee 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
+++ b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
@@ -256,9 +256,9 @@ struct mlx5_esw_flow_attr {
int out_count;
int action;
- __be16 vlan_proto;
- u16 vlan_vid;
- u8 vlan_prio;
+ __be16 vlan_proto[1];
+ u16 vlan_vid[1];
+ u8 vlan_prio[1];
bool vlan_handled;
u32 encap_id;
u32 mod_hdr_id;