• Roland Dreier's avatar
    RDMA/cma: Remove padding arrays by using struct sockaddr_storage · 3f446754
    Roland Dreier authored
    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: default avatarRoland Dreier <rolandd@cisco.com>
    3f446754
cma.c 73 KB