diff options
author | Yann Droneaud <ydroneaud@opteya.com> | 2013-11-06 17:21:48 -0500 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2013-11-17 11:22:08 -0500 |
commit | 2490f20be496c2da14ae4632a8c60e0633e97fd0 (patch) | |
tree | 4c80e3d5dc5004eebd5fc3dcccf4b26f2b16d644 /include/uapi/rdma | |
parent | 58913efba9c3aa7992f2a4d630135ded833d988e (diff) |
IB/core: Remove ib_uverbs_flow_spec structure from userspace
The structure holding any types of flow_spec is of no use to
userspace. It would be wrong for userspace to do:
struct ib_uverbs_flow_spec flow_spec;
flow_spec.type = IB_FLOW_SPEC_TCP;
flow_spec.size = sizeof(flow_spec);
Instead, userspace should use the dedicated flow_spec structure for
- Ethernet : struct ib_uverbs_flow_spec_eth,
- IPv4 : struct ib_uverbs_flow_spec_ipv4,
- TCP/UDP : struct ib_uverbs_flow_spec_tcp_udp.
In other words, struct ib_uverbs_flow_spec is a "virtual" data
structure that can only be use by the kernel as an alias to the other.
Signed-off-by: Yann Droneaud <ydroneaud@opteya.com>
Link: http://marc.info/?i=cover.1383773832.git.ydroneaud@opteya.com
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'include/uapi/rdma')
-rw-r--r-- | include/uapi/rdma/ib_user_verbs.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/include/uapi/rdma/ib_user_verbs.h b/include/uapi/rdma/ib_user_verbs.h index 43014981550a..fc9bbe37cfce 100644 --- a/include/uapi/rdma/ib_user_verbs.h +++ b/include/uapi/rdma/ib_user_verbs.h | |||
@@ -765,22 +765,6 @@ struct ib_uverbs_flow_spec_tcp_udp { | |||
765 | struct ib_uverbs_flow_tcp_udp_filter mask; | 765 | struct ib_uverbs_flow_tcp_udp_filter mask; |
766 | }; | 766 | }; |
767 | 767 | ||
768 | struct ib_uverbs_flow_spec { | ||
769 | union { | ||
770 | union { | ||
771 | struct ib_uverbs_flow_spec_hdr hdr; | ||
772 | struct { | ||
773 | __u32 type; | ||
774 | __u16 size; | ||
775 | __u16 reserved; | ||
776 | }; | ||
777 | }; | ||
778 | struct ib_uverbs_flow_spec_eth eth; | ||
779 | struct ib_uverbs_flow_spec_ipv4 ipv4; | ||
780 | struct ib_uverbs_flow_spec_tcp_udp tcp_udp; | ||
781 | }; | ||
782 | }; | ||
783 | |||
784 | struct ib_uverbs_flow_attr { | 768 | struct ib_uverbs_flow_attr { |
785 | __u32 type; | 769 | __u32 type; |
786 | __u16 size; | 770 | __u16 size; |