• R
    RDMA/cma: Remove padding arrays by using struct sockaddr_storage · 3f446754
    Roland Dreier 提交于
    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: NRoland Dreier <rolandd@cisco.com>
    3f446754
cma.c 73.0 KB