summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorErez Shitrit <erezsh@mellanox.com>2017-04-13 06:36:52 +0300
committerDavid S. Miller <davem@davemloft.net>2017-04-17 18:08:29 +0300
commitb3ba51498bddd72a526d9067b8b0ecf4932ce57e (patch)
tree1695700d639997c8d2b6ac84d9616a9deec0cb4f /include/linux
parent500a3d0ded5ee41072d0f084bff938747ee0c125 (diff)
downloadlinux-b3ba51498bddd72a526d9067b8b0ecf4932ce57e.tar.xz
net/mlx5: Refactor create flow table method to accept underlay QP
IB flow tables need the underlay qp to perform flow steering. Here we change the API of the flow tables creation to accept the underlay QP number as a parameter in order to support IB (IPoIB) flow steering. Signed-off-by: Erez Shitrit <erezsh@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mlx5/fs.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/include/linux/mlx5/fs.h b/include/linux/mlx5/fs.h
index ae91a4bda1a3..1b166d2e19c5 100644
--- a/include/linux/mlx5/fs.h
+++ b/include/linux/mlx5/fs.h
@@ -104,12 +104,18 @@ mlx5_create_auto_grouped_flow_table(struct mlx5_flow_namespace *ns,
u32 level,
u32 flags);
+struct mlx5_flow_table_attr {
+ int prio;
+ int max_fte;
+ u32 level;
+ u32 flags;
+ u32 underlay_qpn;
+};
+
struct mlx5_flow_table *
mlx5_create_flow_table(struct mlx5_flow_namespace *ns,
- int prio,
- int num_flow_table_entries,
- u32 level,
- u32 flags);
+ struct mlx5_flow_table_attr *ft_attr);
+
struct mlx5_flow_table *
mlx5_create_vport_flow_table(struct mlx5_flow_namespace *ns,
int prio,