RDMA/cma: Remove padding arrays by using struct sockaddr_storage
authorRoland Dreier <rolandd@cisco.com>
Mon, 4 Aug 2008 18:02:14 +0000 (11:02 -0700)
committerRoland Dreier <rolandd@cisco.com>
Mon, 4 Aug 2008 18:02:14 +0000 (11:02 -0700)
There are a few places where the RDMA CM code handles IPv6 by doing

struct sockaddr addr;
u8 pad[sizeof(struct sockaddr_in6) -
    sizeof(struct sockaddr)];

This is fragile and ugly; handle this in a better way with just

struct sockaddr_storage addr;

[ Also roll in patch from Aleksey Senin <alekseys@voltaire.com> to
  switch to struct sockaddr_storage and get rid of padding arrays in
  struct rdma_addr. ]

Signed-off-by: Roland Dreier <rolandd@cisco.com>

No differences found