verbs.c (90898850ec4e7b3ba0f9a35cc7169ff19ff367a6) | verbs.c (0a18cfe4f6d7dba135a04dc18633006ba5b51646) |
---|---|
1/* 2 * Copyright(c) 2015 - 2017 Intel Corporation. 3 * 4 * This file is provided under a dual BSD/GPLv2 license. When using or 5 * redistributing this file, you may do so under either license. 6 * 7 * GPL LICENSE SUMMARY 8 * --- 1504 unchanged lines hidden (view full) --- 1513 struct rvt_qp *qp0; 1514 1515 memset(&attr, 0, sizeof(attr)); 1516 attr.dlid = dlid; 1517 attr.port_num = ppd_from_ibp(ibp)->port; 1518 rcu_read_lock(); 1519 qp0 = rcu_dereference(ibp->rvp.qp[0]); 1520 if (qp0) | 1/* 2 * Copyright(c) 2015 - 2017 Intel Corporation. 3 * 4 * This file is provided under a dual BSD/GPLv2 license. When using or 5 * redistributing this file, you may do so under either license. 6 * 7 * GPL LICENSE SUMMARY 8 * --- 1504 unchanged lines hidden (view full) --- 1513 struct rvt_qp *qp0; 1514 1515 memset(&attr, 0, sizeof(attr)); 1516 attr.dlid = dlid; 1517 attr.port_num = ppd_from_ibp(ibp)->port; 1518 rcu_read_lock(); 1519 qp0 = rcu_dereference(ibp->rvp.qp[0]); 1520 if (qp0) |
1521 ah = ib_create_ah(qp0->ibqp.pd, &attr); | 1521 ah = rdma_create_ah(qp0->ibqp.pd, &attr); |
1522 rcu_read_unlock(); 1523 return ah; 1524} 1525 1526/** 1527 * hfi1_get_npkeys - return the size of the PKEY table for context 0 1528 * @dd: the hfi1_ib device 1529 */ --- 411 unchanged lines hidden --- | 1522 rcu_read_unlock(); 1523 return ah; 1524} 1525 1526/** 1527 * hfi1_get_npkeys - return the size of the PKEY table for context 0 1528 * @dd: the hfi1_ib device 1529 */ --- 411 unchanged lines hidden --- |