agent.c (219820) | agent.c (273135) |
---|---|
1/* 2 * Copyright (c) 2004, 2005 Mellanox Technologies Ltd. All rights reserved. 3 * Copyright (c) 2004, 2005 Infinicon Corporation. All rights reserved. 4 * Copyright (c) 2004, 2005 Intel Corporation. All rights reserved. 5 * Copyright (c) 2004, 2005 Topspin Corporation. All rights reserved. 6 * Copyright (c) 2004-2007 Voltaire Corporation. All rights reserved. 7 * Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved. 8 * --- 87 unchanged lines hidden (view full) --- 96 if (!port_priv) { 97 printk(KERN_ERR SPFX "Unable to find port agent\n"); 98 return; 99 } 100 101 agent = port_priv->agent[qpn]; 102 ah = ib_create_ah_from_wc(agent->qp->pd, wc, grh, port_num); 103 if (IS_ERR(ah)) { | 1/* 2 * Copyright (c) 2004, 2005 Mellanox Technologies Ltd. All rights reserved. 3 * Copyright (c) 2004, 2005 Infinicon Corporation. All rights reserved. 4 * Copyright (c) 2004, 2005 Intel Corporation. All rights reserved. 5 * Copyright (c) 2004, 2005 Topspin Corporation. All rights reserved. 6 * Copyright (c) 2004-2007 Voltaire Corporation. All rights reserved. 7 * Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved. 8 * --- 87 unchanged lines hidden (view full) --- 96 if (!port_priv) { 97 printk(KERN_ERR SPFX "Unable to find port agent\n"); 98 return; 99 } 100 101 agent = port_priv->agent[qpn]; 102 ah = ib_create_ah_from_wc(agent->qp->pd, wc, grh, port_num); 103 if (IS_ERR(ah)) { |
104 printk(KERN_ERR SPFX "ib_create_ah_from_wc error\n"); | 104 printk(KERN_ERR SPFX "ib_create_ah_from_wc error %ld\n", 105 PTR_ERR(ah)); |
105 return; 106 } 107 108 send_buf = ib_create_send_mad(agent, wc->src_qp, wc->pkey_index, 0, 109 IB_MGMT_MAD_HDR, IB_MGMT_MAD_DATA, 110 GFP_KERNEL); 111 if (IS_ERR(send_buf)) { 112 printk(KERN_ERR SPFX "ib_create_send_mad error\n"); --- 104 unchanged lines hidden --- | 106 return; 107 } 108 109 send_buf = ib_create_send_mad(agent, wc->src_qp, wc->pkey_index, 0, 110 IB_MGMT_MAD_HDR, IB_MGMT_MAD_DATA, 111 GFP_KERNEL); 112 if (IS_ERR(send_buf)) { 113 printk(KERN_ERR SPFX "ib_create_send_mad error\n"); --- 104 unchanged lines hidden --- |