Merge branches 'cma', 'cxgb4', 'misc', 'mlx4-sriov', 'mlx-cleanups', 'ocrdma' and...
authorRoland Dreier <roland@purestorage.com>
Mon, 23 Jul 2012 06:26:17 +0000 (23:26 -0700)
committerRoland Dreier <roland@purestorage.com>
Mon, 23 Jul 2012 06:26:17 +0000 (23:26 -0700)
1  2  3  4  5  6  7 
drivers/infiniband/core/cma.c
drivers/infiniband/hw/mlx4/main.c

index 8734a6af35d7d5c21b183ed0448f1bf8048cc9f6,2e826f9702c6d76cfc895c24466c068a8e042a83,4d8f592b1e513dca1fe69b7b1d01617500ef45bf,2e826f9702c6d76cfc895c24466c068a8e042a83,2e826f9702c6d76cfc895c24466c068a8e042a83,2e826f9702c6d76cfc895c24466c068a8e042a83,2e826f9702c6d76cfc895c24466c068a8e042a83..5a335b5447c668856da82fbdb98a49c0b28e89e1
@@@@@@@@ -2222,20 -2194,15 -2194,15 -2194,15 -2194,15 -2194,15 -2194,15 +2222,20 @@@@@@@@ static int cma_check_port(struct rdma_b
                if (id_priv == cur_id)
                        continue;
       
 ------         if ((cur_id->state == RDMA_CM_LISTEN) ||
 ------             !reuseaddr || !cur_id->reuseaddr) {
 ------                 cur_addr = (struct sockaddr *) &cur_id->id.route.addr.src_addr;
 ------                 if (cma_any_addr(cur_addr))
 ------                         return -EADDRNOTAVAIL;
 ++++++         if ((cur_id->state != RDMA_CM_LISTEN) && reuseaddr &&
 ++++++             cur_id->reuseaddr)
 ++++++                 continue;
  +    
 - ----                 if (!cma_addr_cmp(addr, cur_addr))
 - ----                         return -EADDRINUSE;
 - ----         }
 ++++++         cur_addr = (struct sockaddr *) &cur_id->id.route.addr.src_addr;
 ++++++         if (id_priv->afonly && cur_id->afonly &&
 ++++++             (addr->sa_family != cur_addr->sa_family))
 ++++++                 continue;
 ++++++
 ++++++         if (cma_any_addr(addr) || cma_any_addr(cur_addr))
 ++++++                 return -EADDRNOTAVAIL;
 + ++++
  -                     if (!cma_addr_cmp(addr, cur_addr))
  -                             return -EADDRINUSE;
  -             }
 ++++++         if (!cma_addr_cmp(addr, cur_addr))
 ++++++                 return -EADDRINUSE;
        }
        return 0;
       }
Simple merge