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 */
619 pr_debug("failed sending to slave %d via tunnel qp (%d)\n",
659 /* Drop unsupported classes for slaves in tunnel mode */
675 pr_debug("failed sending to slave %d via tunnel qp (%d)\n",
1431 struct mlx4_tunnel_mad *tunnel = tun_qp->ring[wr_ix].addr;
1461 switch (tunnel->mad.mad_hdr.method) {
1469 slave_id = (u8 *) &tunnel->mad.mad_hdr.tid;
1473 tunnel->mad.mad_hdr.mgmt_class, slave);
1482 switch (tunnel->mad.mad_hdr.mgmt_class) {
1485 (struct ib_sa_mad *) &tunnel->mad))
1490 (struct ib_mad *) &tunnel->mad))
1494 if (tunnel->mad.mad_hdr.method != IB_MGMT_METHOD_GET &&
1495 tunnel->mad.mad_hdr.method != IB_MGMT_METHOD_SET)
1499 /* Drop unsupported classes for slaves in tunnel mode */
1502 "for slave:%d\n", tunnel->mad.mad_hdr.mgmt_class, slave);
1509 memcpy(&ah.av, &tunnel->hdr.av, sizeof (struct mlx4_av));
1519 be16_to_cpu(tunnel->hdr.pkey_index),
1520 be32_to_cpu(tunnel->hdr.remote_qpn),
1521 be32_to_cpu(tunnel->hdr.qkey),
1522 &ah_attr, &tunnel->mad);
1666 pr_err("Failed reposting tunnel "
1670 pr_debug("received tunnel send completion:"
1686 pr_debug("mlx4_ib: completion error in tunnel: %d."
1754 create_tun ? "tunnel" : "special", ret);
1767 create_tun ? "tunnel" : "special", ret);
1774 create_tun ? "tunnel" : "special", ret);
1782 create_tun ? "tunnel" : "special", ret);
1847 pr_debug("mlx4_ib: completion error in tunnel: %d."
1908 pr_err("Failed allocating qp0 tunnel bufs (%d)\n", ret);
1915 pr_err("Failed allocating qp1 tunnel bufs (%d)\n", ret);
1927 pr_err("Couldn't create tunnel CQ (%d)\n", ret);
1934 pr_err("Couldn't create tunnel PD (%d)\n", ret);
1941 pr_err("Couldn't get tunnel DMA MR (%d)\n", ret);
1949 create_tun ? "tunnel for" : "", ret);
1957 create_tun ? "tunnel for" : "", ret);
1970 pr_err("Couldn't arm tunnel cq (%d)\n", ret);
2048 /* destroy the tunnel qp resources */
2054 /* create the tunnel qp resources */
2191 /* initialize or tear down tunnel QPs for the master */
2212 mlx4_ib_warn(&dev->ib_dev, "operating in qp1 tunnel mode\n");