[PATCH rdma-core 15/17] verbs: Use kernel uapi header for ibv_modify_qp_common

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Jason Gunthorpe <jgg@xxxxxxxxxxxx>

The kernel header has a redundant driver_data.

Signed-off-by: Jason Gunthorpe <jgg@xxxxxxxxxxxx>
---
 libibverbs/cmd.c      |  2 +-
 libibverbs/kern-abi.h | 33 ++-------------------------------
 2 files changed, 3 insertions(+), 32 deletions(-)

diff --git a/libibverbs/cmd.c b/libibverbs/cmd.c
index f73af7b7a92d80..0e1589e1c8963e 100644
--- a/libibverbs/cmd.c
+++ b/libibverbs/cmd.c
@@ -1273,7 +1273,7 @@ int ibv_cmd_query_qp(struct ibv_qp *qp, struct ibv_qp_attr *attr,
 
 static void copy_modify_qp_fields(struct ibv_qp *qp, struct ibv_qp_attr *attr,
 				  int attr_mask,
-				  struct ibv_modify_qp_common *cmd)
+				  struct ib_uverbs_modify_qp *cmd)
 {
 	cmd->qp_handle = qp->handle;
 	cmd->attr_mask = attr_mask;
diff --git a/libibverbs/kern-abi.h b/libibverbs/kern-abi.h
index 57ef1dd6ff6beb..8400ce1c47e92d 100644
--- a/libibverbs/kern-abi.h
+++ b/libibverbs/kern-abi.h
@@ -337,46 +337,17 @@ struct ibv_query_qp {
 	__u64 driver_data[0];
 };
 
-struct ibv_modify_qp_common {
-	struct ib_uverbs_qp_dest dest;
-	struct ib_uverbs_qp_dest alt_dest;
-	__u32 qp_handle;
-	__u32 attr_mask;
-	__u32 qkey;
-	__u32 rq_psn;
-	__u32 sq_psn;
-	__u32 dest_qp_num;
-	__u32 qp_access_flags;
-	__u16 pkey_index;
-	__u16 alt_pkey_index;
-	__u8  qp_state;
-	__u8  cur_qp_state;
-	__u8  path_mtu;
-	__u8  path_mig_state;
-	__u8  en_sqd_async_notify;
-	__u8  max_rd_atomic;
-	__u8  max_dest_rd_atomic;
-	__u8  min_rnr_timer;
-	__u8  port_num;
-	__u8  timeout;
-	__u8  retry_cnt;
-	__u8  rnr_retry;
-	__u8  alt_port_num;
-	__u8  alt_timeout;
-	__u8  reserved[2];
-};
-
 struct ibv_modify_qp {
 	__u32 command;
 	__u16 in_words;
 	__u16 out_words;
-	struct ibv_modify_qp_common base;
+	struct ib_uverbs_modify_qp base;
 	__u64 driver_data[0];
 };
 
 struct ibv_modify_qp_ex {
 	struct ex_hdr		    hdr;
-	struct ibv_modify_qp_common base;
+	struct ib_uverbs_modify_qp base;
 	__u32  rate_limit;
 	__u32  reserved;
 };
-- 
2.15.1

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux