mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
IB/mlx5: Expose more priorities for bypass namespace
BYPASS namespace is used by the RDMA side to insert flow rules into the vport RX flow tables. Currently only 8 priorities are exposed, increase this to 16 to allow more flexibility. This change will also cause the BYPASS namespace to use 32 levels (as apposed to 16 today) of flow tables, 16 levels for regular rules and 16 for don't trap rules. Reviewed-by: Maor Gottlieb <maorg@mellanox.com> Signed-off-by: Mark Bloch <markb@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
parent
c62adb7def
commit
72f7cc09b1
1 changed files with 2 additions and 2 deletions
|
@ -1204,8 +1204,8 @@ static inline u16 mlx5_to_sw_pkey_sz(int pkey_sz)
|
|||
return MLX5_MIN_PKEY_TABLE_SIZE << pkey_sz;
|
||||
}
|
||||
|
||||
#define MLX5_BY_PASS_NUM_REGULAR_PRIOS 8
|
||||
#define MLX5_BY_PASS_NUM_DONT_TRAP_PRIOS 8
|
||||
#define MLX5_BY_PASS_NUM_REGULAR_PRIOS 16
|
||||
#define MLX5_BY_PASS_NUM_DONT_TRAP_PRIOS 16
|
||||
#define MLX5_BY_PASS_NUM_MULTICAST_PRIOS 1
|
||||
#define MLX5_BY_PASS_NUM_PRIOS (MLX5_BY_PASS_NUM_REGULAR_PRIOS +\
|
||||
MLX5_BY_PASS_NUM_DONT_TRAP_PRIOS +\
|
||||
|
|
Loading…
Reference in a new issue