aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5
diff options
context:
space:
mode:
authorHadar Hen Zion <hadarh@mellanox.com>2016-11-07 08:14:44 -0500
committerDavid S. Miller <davem@davemloft.net>2016-11-09 13:41:56 -0500
commitc9f1b073d0d750ccf8b30b272d1d76479f4cccbc (patch)
tree459a294de042444ac8103e9ea6ed8efaea1ac4a2 /include/linux/mlx5
parent43f93839e359c8044200ec3f6fa455b47ba3aa2c (diff)
net/mlx5: Add creation flags when adding new flow table
When creating flow tables, allow the caller to specify creation flags. Currently no flags are used and as such this patch doesn't add any new functionality. Signed-off-by: Hadar Hen Zion <hadarh@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/mlx5')
-rw-r--r--include/linux/mlx5/fs.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/linux/mlx5/fs.h b/include/linux/mlx5/fs.h
index 0dcd287f4bd0..ab1a5fd2e995 100644
--- a/include/linux/mlx5/fs.h
+++ b/include/linux/mlx5/fs.h
@@ -42,6 +42,10 @@ enum {
42 MLX5_FLOW_CONTEXT_ACTION_FWD_NEXT_PRIO = 1 << 16, 42 MLX5_FLOW_CONTEXT_ACTION_FWD_NEXT_PRIO = 1 << 16,
43}; 43};
44 44
45enum {
46 MLX5_FLOW_TABLE_TUNNEL_EN = BIT(0),
47};
48
45#define LEFTOVERS_RULE_NUM 2 49#define LEFTOVERS_RULE_NUM 2
46static inline void build_leftovers_ft_param(int *priority, 50static inline void build_leftovers_ft_param(int *priority,
47 int *n_ent, 51 int *n_ent,
@@ -97,13 +101,15 @@ mlx5_create_auto_grouped_flow_table(struct mlx5_flow_namespace *ns,
97 int prio, 101 int prio,
98 int num_flow_table_entries, 102 int num_flow_table_entries,
99 int max_num_groups, 103 int max_num_groups,
100 u32 level); 104 u32 level,
105 u32 flags);
101 106
102struct mlx5_flow_table * 107struct mlx5_flow_table *
103mlx5_create_flow_table(struct mlx5_flow_namespace *ns, 108mlx5_create_flow_table(struct mlx5_flow_namespace *ns,
104 int prio, 109 int prio,
105 int num_flow_table_entries, 110 int num_flow_table_entries,
106 u32 level); 111 u32 level,
112 u32 flags);
107struct mlx5_flow_table * 113struct mlx5_flow_table *
108mlx5_create_vport_flow_table(struct mlx5_flow_namespace *ns, 114mlx5_create_vport_flow_table(struct mlx5_flow_namespace *ns,
109 int prio, 115 int prio,