mad.c (2ac5e38ea4203852d6e99edd3cf11f044b0a409f) mad.c (b090c4e3a07c33ffdf95fb7601551b38fc2a4bbb)
1/*
2 * Copyright(c) 2015-2018 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 *

--- 291 unchanged lines hidden (view full) ---

300 u8 port_num = ppd->port;
301
302 memset(&attr, 0, sizeof(attr));
303 attr.type = rdma_ah_find_type(&dd->verbs_dev.rdi.ibdev, port_num);
304 hfi1_update_sm_ah_attr(ibp, &attr, dlid);
305 rcu_read_lock();
306 qp0 = rcu_dereference(ibp->rvp.qp[0]);
307 if (qp0)
1/*
2 * Copyright(c) 2015-2018 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 *

--- 291 unchanged lines hidden (view full) ---

300 u8 port_num = ppd->port;
301
302 memset(&attr, 0, sizeof(attr));
303 attr.type = rdma_ah_find_type(&dd->verbs_dev.rdi.ibdev, port_num);
304 hfi1_update_sm_ah_attr(ibp, &attr, dlid);
305 rcu_read_lock();
306 qp0 = rcu_dereference(ibp->rvp.qp[0]);
307 if (qp0)
308 ah = rdma_create_ah(qp0->ibqp.pd, &attr);
308 ah = rdma_create_ah(qp0->ibqp.pd, &attr, 0);
309 rcu_read_unlock();
310 return ah;
311}
312
313static void send_trap(struct hfi1_ibport *ibp, struct trap_node *trap)
314{
315 struct ib_mad_send_buf *send_buf;
316 struct ib_mad_agent *agent;

--- 4638 unchanged lines hidden ---
309 rcu_read_unlock();
310 return ah;
311}
312
313static void send_trap(struct hfi1_ibport *ibp, struct trap_node *trap)
314{
315 struct ib_mad_send_buf *send_buf;
316 struct ib_mad_agent *agent;

--- 4638 unchanged lines hidden ---