summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
diff options
context:
space:
mode:
authorOr Gerlitz2018-04-05 14:50:36 +0200
committerSaeed Mahameed2018-05-15 00:10:21 +0200
commit38aa51c134b56b7ea61bea79b428c5fbcd95f285 (patch)
treedb7b53f77b439d880d318fd4f1770bd44425f3ad /drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
parentnet/mlx5e: Get the required HW match level while parsing TC flow matches (diff)
downloadkernel-qcow2-linux-38aa51c134b56b7ea61bea79b428c5fbcd95f285.tar.gz
kernel-qcow2-linux-38aa51c134b56b7ea61bea79b428c5fbcd95f285.tar.xz
kernel-qcow2-linux-38aa51c134b56b7ea61bea79b428c5fbcd95f285.zip
net/mlx5e: Support offloaded TC flows with no matches on headers
For example: tc filter add dev ens2f0_0 parent ffff: flower skip_sw action drop Note that for eswitch flows, we still always match on the source port. Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Reviewed-by: Roi Dayan <roid@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 efae77dd1e35..edf47a4d549e 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
+++ b/drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
@@ -245,6 +245,7 @@ struct mlx5_esw_flow_attr {
bool vlan_handled;
u32 encap_id;
u32 mod_hdr_id;
+ u8 match_level;
struct mlx5e_tc_flow_parse_attr *parse_attr;
};