summaryrefslogtreecommitdiffstats
path: root/include/rdma/ib_verbs.h
diff options
context:
space:
mode:
authorMatan Barak <matanb@mellanox.com>2013-09-01 17:39:52 +0200
committerRoland Dreier <roland@purestorage.com>2013-09-02 20:12:48 +0200
commit22878dbc9173a7f0322dd697b1b5b49a83a1d4d5 (patch)
treecfb2e55461d5893c65de39e3472e8f78264273c4 /include/rdma/ib_verbs.h
parentIB/mlx4: Add receive flow steering support (diff)
downloadlinux-22878dbc9173a7f0322dd697b1b5b49a83a1d4d5.tar.xz
linux-22878dbc9173a7f0322dd697b1b5b49a83a1d4d5.zip
IB/core: Better checking of userspace values for receive flow steering
- Don't allow unsupported comp_mask values, user should check ibv_query_device to know which features are supported. - Add a check in ib_uverbs_create_flow() to verify the size passed from the user space. Signed-off-by: Matan Barak <matanb@mellanox.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'include/rdma/ib_verbs.h')
-rw-r--r--include/rdma/ib_verbs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h
index 274205d4df97..bd151eac1e61 100644
--- a/include/rdma/ib_verbs.h
+++ b/include/rdma/ib_verbs.h
@@ -1098,6 +1098,8 @@ enum ib_flow_spec_type {
IB_FLOW_SPEC_UDP = 0x41
};
+#define IB_FLOW_SPEC_SUPPORT_LAYERS 4
+
/* Flow steering rule priority is set according to it's domain.
* Lower domain value means higher priority.
*/