Lines Matching defs:tunnel

490 	/* compute P_Key index to put in tunnel header for slave */
506 /* get tunnel tx data buf for slave */
521 /* allocate tunnel tx buf after pass failure returns */
541 /* copy over to tunnel buffer */
546 /* adjust tunnel data */
640 pr_debug("failed sending to slave %d via tunnel qp (%d)\n",
680 /* Drop unsupported classes for slaves in tunnel mode */
696 pr_debug("failed sending to slave %d via tunnel qp (%d)\n",
1465 struct mlx4_tunnel_mad *tunnel = tun_qp->ring[wr_ix].addr;
1495 switch (tunnel->mad.mad_hdr.method) {
1503 slave_id = (u8 *) &tunnel->mad.mad_hdr.tid;
1507 tunnel->mad.mad_hdr.mgmt_class, slave);
1516 switch (tunnel->mad.mad_hdr.mgmt_class) {
1519 (struct ib_sa_mad *) &tunnel->mad))
1524 (struct ib_mad *) &tunnel->mad))
1528 if (tunnel->mad.mad_hdr.method != IB_MGMT_METHOD_GET &&
1529 tunnel->mad.mad_hdr.method != IB_MGMT_METHOD_SET)
1533 /* Drop unsupported classes for slaves in tunnel mode */
1536 "for slave:%d\n", tunnel->mad.mad_hdr.mgmt_class, slave);
1543 memcpy(&ah.av, &tunnel->hdr.av, sizeof (struct mlx4_av));
1549 memcpy(ah_attr.dmac, tunnel->hdr.mac, 6);
1550 ah_attr.vlan_id = tunnel->hdr.vlan;
1558 be16_to_cpu(tunnel->hdr.pkey_index),
1559 be32_to_cpu(tunnel->hdr.remote_qpn),
1560 be32_to_cpu(tunnel->hdr.qkey),
1561 &ah_attr, wc->smac, &tunnel->mad);
1717 pr_err("Failed reposting tunnel "
1721 pr_debug("received tunnel send completion:"
1737 pr_debug("mlx4_ib: completion error in tunnel: %d."
1805 create_tun ? "tunnel" : "special", ret);
1823 create_tun ? "tunnel" : "special", ret);
1830 create_tun ? "tunnel" : "special", ret);
1838 create_tun ? "tunnel" : "special", ret);
1903 pr_debug("mlx4_ib: completion error in tunnel: %d."
1964 pr_err("Failed allocating qp0 tunnel bufs (%d)\n", ret);
1971 pr_err("Failed allocating qp1 tunnel bufs (%d)\n", ret);
1983 pr_err("Couldn't create tunnel CQ (%d)\n", ret);
1990 pr_err("Couldn't create tunnel PD (%d)\n", ret);
1997 pr_err("Couldn't get tunnel DMA MR (%d)\n", ret);
2005 create_tun ? "tunnel for" : "", ret);
2013 create_tun ? "tunnel for" : "", ret);
2026 pr_err("Couldn't arm tunnel cq (%d)\n", ret);
2104 /* destroy the tunnel qp resources */
2110 /* create the tunnel qp resources */
2247 /* initialize or tear down tunnel QPs for the master */
2268 mlx4_ib_warn(&dev->ib_dev, "operating in qp1 tunnel mode\n");