ib_cm.c (c95baf12f5077419db01313ab61c2aac007d40cd) | ib_cm.c (8094ba0ace7f6cd1e31ea8b151fba3594cadfa9a) |
---|---|
1/* 2 * Copyright (c) 2006, 2019 Oracle and/or its affiliates. All rights reserved. 3 * 4 * This software is available to you under a choice of one of two 5 * licenses. You may choose to be licensed under the terms of the GNU 6 * General Public License (GPL) Version 2, available from the file 7 * COPYING in the main directory of this source tree, or the 8 * OpenIB.org BSD license below: --- 23 unchanged lines hidden (view full) --- 32 */ 33#include <linux/dmapool.h> 34#include <linux/kernel.h> 35#include <linux/in.h> 36#include <linux/slab.h> 37#include <linux/vmalloc.h> 38#include <linux/ratelimit.h> 39#include <net/addrconf.h> | 1/* 2 * Copyright (c) 2006, 2019 Oracle and/or its affiliates. All rights reserved. 3 * 4 * This software is available to you under a choice of one of two 5 * licenses. You may choose to be licensed under the terms of the GNU 6 * General Public License (GPL) Version 2, available from the file 7 * COPYING in the main directory of this source tree, or the 8 * OpenIB.org BSD license below: --- 23 unchanged lines hidden (view full) --- 32 */ 33#include <linux/dmapool.h> 34#include <linux/kernel.h> 35#include <linux/in.h> 36#include <linux/slab.h> 37#include <linux/vmalloc.h> 38#include <linux/ratelimit.h> 39#include <net/addrconf.h> |
40#include <rdma/ib_cm.h> |
|
40 41#include "rds_single_path.h" 42#include "rds.h" 43#include "ib.h" 44#include "ib_mr.h" 45 46/* 47 * Set the selected protocol version --- 874 unchanged lines hidden (view full) --- 922 /* rdma_accept() calls rdma_reject() internally if it fails */ 923 if (rdma_accept(cm_id, &conn_param)) 924 rds_ib_conn_error(conn, "rdma_accept failed\n"); 925 926out: 927 if (conn) 928 mutex_unlock(&conn->c_cm_lock); 929 if (err) | 41 42#include "rds_single_path.h" 43#include "rds.h" 44#include "ib.h" 45#include "ib_mr.h" 46 47/* 48 * Set the selected protocol version --- 874 unchanged lines hidden (view full) --- 923 /* rdma_accept() calls rdma_reject() internally if it fails */ 924 if (rdma_accept(cm_id, &conn_param)) 925 rds_ib_conn_error(conn, "rdma_accept failed\n"); 926 927out: 928 if (conn) 929 mutex_unlock(&conn->c_cm_lock); 930 if (err) |
930 rdma_reject(cm_id, &err, sizeof(int)); | 931 rdma_reject(cm_id, &err, sizeof(int), 932 IB_CM_REJ_CONSUMER_DEFINED); |
931 return destroy; 932} 933 934 935int rds_ib_cm_initiate_connect(struct rdma_cm_id *cm_id, bool isv6) 936{ 937 struct rds_connection *conn = cm_id->context; 938 struct rds_ib_connection *ic = conn->c_transport_data; --- 351 unchanged lines hidden --- | 933 return destroy; 934} 935 936 937int rds_ib_cm_initiate_connect(struct rdma_cm_id *cm_id, bool isv6) 938{ 939 struct rds_connection *conn = cm_id->context; 940 struct rds_ib_connection *ic = conn->c_transport_data; --- 351 unchanged lines hidden --- |