summaryrefslogtreecommitdiffstats
path: root/include/uapi/rdma/ib_user_ioctl_verbs.h
diff options
context:
space:
mode:
authorMichael Guralnik <michaelgur@mellanox.com>2018-12-09 11:58:06 +0200
committerJason Gunthorpe <jgg@mellanox.com>2018-12-20 15:18:24 -0700
commit641d1207d2ed0ef21ff5ad61e067d630028e2f62 (patch)
treee0d27f4ce97cf209964851c09762d4fe39cd0b50 /include/uapi/rdma/ib_user_ioctl_verbs.h
parent4fa2813d26c82680216e535c18a690ca0c4e860a (diff)
downloadlinux-stable-641d1207d2ed0ef21ff5ad61e067d630028e2f62.tar.gz
linux-stable-641d1207d2ed0ef21ff5ad61e067d630028e2f62.tar.bz2
linux-stable-641d1207d2ed0ef21ff5ad61e067d630028e2f62.zip
IB/core: Move query port to ioctl
Add a method for query port under the uverbs global methods. Current ib_port_attr struct is passed as a single attribute and port_cap_flags2 is added as a new attribute to the function. Signed-off-by: Michael Guralnik <michaelgur@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'include/uapi/rdma/ib_user_ioctl_verbs.h')
-rw-r--r--include/uapi/rdma/ib_user_ioctl_verbs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/uapi/rdma/ib_user_ioctl_verbs.h b/include/uapi/rdma/ib_user_ioctl_verbs.h
index 9dcd345b852a..72c7fc75f960 100644
--- a/include/uapi/rdma/ib_user_ioctl_verbs.h
+++ b/include/uapi/rdma/ib_user_ioctl_verbs.h
@@ -35,6 +35,7 @@
#define IB_USER_IOCTL_VERBS_H
#include <linux/types.h>
+#include <rdma/ib_user_verbs.h>
#ifndef RDMA_UAPI_PTR
#define RDMA_UAPI_PTR(_type, _name) __aligned_u64 _name
@@ -166,4 +167,10 @@ enum ib_uverbs_advise_mr_flag {
IB_UVERBS_ADVISE_MR_FLAG_FLUSH = 1 << 0,
};
+struct ib_uverbs_query_port_resp_ex {
+ struct ib_uverbs_query_port_resp legacy_resp;
+ __u16 port_cap_flags2;
+ __u8 reserved[6];
+};
+
#endif