diff options
author | Erez Shitrit <erezsh@mellanox.com> | 2017-04-13 06:36:52 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-04-17 18:08:29 +0300 |
commit | b3ba51498bddd72a526d9067b8b0ecf4932ce57e (patch) | |
tree | 1695700d639997c8d2b6ac84d9616a9deec0cb4f /include/linux | |
parent | 500a3d0ded5ee41072d0f084bff938747ee0c125 (diff) | |
download | linux-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.h | 14 |
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, |