[PATCH rdma-core 5/8] verbs: Remove bogus padding from ibv_dealloc_mw

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

 



From: Jason Gunthorpe <jgg@xxxxxxxxxxxx>

The kernel does not have this padding and totally ignores the structure
length. There is no reason for userspace to be different, so drop it from
here.

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

diff --git a/libibverbs/cmd.c b/libibverbs/cmd.c
index a036c893d70d11..5fd518d43ef232 100644
--- a/libibverbs/cmd.c
+++ b/libibverbs/cmd.c
@@ -478,7 +478,6 @@ int ibv_cmd_dealloc_mw(struct ibv_mw *mw,
 {
 	IBV_INIT_CMD(cmd, cmd_size, DEALLOC_MW);
 	cmd->mw_handle = mw->handle;
-	cmd->reserved = 0;
 
 	if (write(mw->context->cmd_fd, cmd, cmd_size) != cmd_size)
 		return errno;
diff --git a/libibverbs/kern-abi.h b/libibverbs/kern-abi.h
index ca5630e2d4f3c5..18563bfe38b427 100644
--- a/libibverbs/kern-abi.h
+++ b/libibverbs/kern-abi.h
@@ -160,7 +160,6 @@ struct ibv_alloc_mw {
 struct ibv_dealloc_mw {
 	struct ib_uverbs_cmd_hdr hdr;
 	__u32 mw_handle;
-	__u32 reserved;
 };
 
 struct ibv_create_comp_channel {
-- 
2.16.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