summaryrefslogtreecommitdiffstats
path: root/include/uapi/rdma/ib_user_verbs.h
diff options
context:
space:
mode:
authorSlava Shwartsman2017-04-03 12:13:51 +0200
committerDoug Ledford2017-04-21 18:26:05 +0200
commit483a3966b570529a910dc2a02deac0036e642309 (patch)
tree73dc325f78a1cc7619d0ddf7df9f3f43b0bb2719 /include/uapi/rdma/ib_user_verbs.h
parentIB/mlx5: Use IP version matching to classify IP traffic (diff)
downloadkernel-qcow2-linux-483a3966b570529a910dc2a02deac0036e642309.tar.gz
kernel-qcow2-linux-483a3966b570529a910dc2a02deac0036e642309.tar.xz
kernel-qcow2-linux-483a3966b570529a910dc2a02deac0036e642309.zip
IB/core: Introduce drop flow specification
This flow steering specification identifies flow for drop by the HW. If user create a flow only with the drop specification, then all the packets that hit this flow will be dropped, otherwise the HW will drop only the packets that match the other L2/L3/L4 specifications. Signed-off-by: Slava Shwartsman <slavash@mellanox.com> Reviewed-by: Maor Gottlieb <maorg@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/uapi/rdma/ib_user_verbs.h')
-rw-r--r--include/uapi/rdma/ib_user_verbs.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/uapi/rdma/ib_user_verbs.h b/include/uapi/rdma/ib_user_verbs.h
index 997f904c7692..477d629f539d 100644
--- a/include/uapi/rdma/ib_user_verbs.h
+++ b/include/uapi/rdma/ib_user_verbs.h
@@ -947,6 +947,17 @@ struct ib_uverbs_flow_spec_action_tag {
__u32 reserved1;
};
+struct ib_uverbs_flow_spec_action_drop {
+ union {
+ struct ib_uverbs_flow_spec_hdr hdr;
+ struct {
+ __u32 type;
+ __u16 size;
+ __u16 reserved;
+ };
+ };
+};
+
struct ib_uverbs_flow_tunnel_filter {
__be32 tunnel_id;
};