[ofa-general] PATCH Remove padding arrays from librdmacm

Aleksey Senin alekseys at voltaire.com
Mon Aug 11 01:46:02 PDT 2008


This patch remove using padding arrays from cma_multicast structure as
we did in the kernel


Signed-off-by: Aleksey Senin <alekseys at voltaire.com>
---
 src/cma.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/src/cma.c b/src/cma.c
index d4441ce..70dbe1c 100644
--- a/src/cma.c
+++ b/src/cma.c
@@ -140,9 +140,7 @@ struct cma_multicast {
 	uint32_t	handle;
 	union ibv_gid	mgid;
 	uint16_t	mlid;
-	struct sockaddr addr;
-	uint8_t		pad[sizeof(struct sockaddr_in6) -
-			    sizeof(struct sockaddr)];
+	struct sockaddr_storage addr;
 };
 
 struct cma_event {
-- 
1.5.6.dirty





More information about the general mailing list