diff options
| author | Matan Barak <matanb@mellanox.com> | 2013-11-06 17:21:44 -0500 |
|---|---|---|
| committer | Roland Dreier <roland@purestorage.com> | 2013-11-17 11:22:07 -0500 |
| commit | f88482743872230f5899b8344a057d6e2fd011e2 (patch) | |
| tree | 7e37bc3c5e28ff5ecc52a2a203245ba17609cac6 /include/uapi | |
| parent | 959f58544b7f20c92d5eb43d1232c96c15c01bfb (diff) | |
IB/core: clarify overflow/underflow checks on ib_create/destroy_flow
This patch fixes the following issues:
1. Unneeded checks were removed
2. Removed the fixed size out of flow_attr.size, thus simplifying the checks.
3. Remove a 32bit hole on 64bit systems with strict alignment in
struct ib_kern_flow_att by adding a reserved field.
Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'include/uapi')
| -rw-r--r-- | include/uapi/rdma/ib_user_verbs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/rdma/ib_user_verbs.h b/include/uapi/rdma/ib_user_verbs.h index e3ddd86c90a6..99a58bdc1c64 100644 --- a/include/uapi/rdma/ib_user_verbs.h +++ b/include/uapi/rdma/ib_user_verbs.h | |||
| @@ -771,6 +771,7 @@ struct ib_kern_flow_attr { | |||
| 771 | 771 | ||
| 772 | struct ib_uverbs_create_flow { | 772 | struct ib_uverbs_create_flow { |
| 773 | __u32 comp_mask; | 773 | __u32 comp_mask; |
| 774 | __u32 reserved; | ||
| 774 | __u64 response; | 775 | __u64 response; |
| 775 | __u32 qp_handle; | 776 | __u32 qp_handle; |
| 776 | struct ib_kern_flow_attr flow_attr; | 777 | struct ib_kern_flow_attr flow_attr; |
