summaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5/device.h
diff options
context:
space:
mode:
authorMaor Gottlieb2016-03-07 17:51:47 +0100
committerDoug Ledford2016-03-10 15:22:06 +0100
commit35d1901134e97cf95c0ab6ef70f5aead6cb34e9e (patch)
tree228c68726c6d68e06baefe3db846a8a912345cac /include/linux/mlx5/device.h
parentnet/mlx5_core: Introduce forward to next priority action (diff)
downloadkernel-qcow2-linux-35d1901134e97cf95c0ab6ef70f5aead6cb34e9e.tar.gz
kernel-qcow2-linux-35d1901134e97cf95c0ab6ef70f5aead6cb34e9e.tar.xz
kernel-qcow2-linux-35d1901134e97cf95c0ab6ef70f5aead6cb34e9e.zip
IB/mlx5: Add support for don't trap rules
Each bypass flow steering priority will be split into two priorities: 1. Priority for don't trap rules. 2. Priority for normal rules. When user creates a flow using IB_FLOW_ATTR_FLAGS_DONT_TRAP flag, the driver creates two flow rules, one used for receiving the traffic and the other one for forwarding the packet to continue matching in lower or equal priorities. Signed-off-by: Maor Gottlieb <maorg@mellanox.com> Reviewed-by: Matan Barak <matanb@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/linux/mlx5/device.h')
-rw-r--r--include/linux/mlx5/device.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/mlx5/device.h b/include/linux/mlx5/device.h
index 987764afa65c..2bf222e65e6b 100644
--- a/include/linux/mlx5/device.h
+++ b/include/linux/mlx5/device.h
@@ -1294,6 +1294,11 @@ static inline u16 mlx5_to_sw_pkey_sz(int pkey_sz)
return MLX5_MIN_PKEY_TABLE_SIZE << pkey_sz;
}
-#define MLX5_BY_PASS_NUM_PRIOS 9
+#define MLX5_BY_PASS_NUM_REGULAR_PRIOS 8
+#define MLX5_BY_PASS_NUM_DONT_TRAP_PRIOS 8
+#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 +\
+ MLX5_BY_PASS_NUM_MULTICAST_PRIOS)
#endif /* MLX5_DEVICE_H */