Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/cxgbe/iw_cxgbe/qp.c
Show First 20 Lines • Show All 1,121 Lines • ▼ Show 20 Lines | static void post_terminate(struct c4iw_qp *qhp, struct t4_cqe *err_cqe, | ||||
struct socket *so = qhp->ep->com.so; | struct socket *so = qhp->ep->com.so; | ||||
struct inpcb *inp = sotoinpcb(so); | struct inpcb *inp = sotoinpcb(so); | ||||
struct tcpcb *tp = intotcpcb(inp); | struct tcpcb *tp = intotcpcb(inp); | ||||
struct toepcb *toep = tp->t_toe; | struct toepcb *toep = tp->t_toe; | ||||
CTR4(KTR_IW_CXGBE, "%s qhp %p qid 0x%x tid %u", __func__, qhp, | CTR4(KTR_IW_CXGBE, "%s qhp %p qid 0x%x tid %u", __func__, qhp, | ||||
qhp->wq.sq.qid, qhp->ep->hwtid); | qhp->wq.sq.qid, qhp->ep->hwtid); | ||||
wr = alloc_wrqe(sizeof(*wqe), toep->ofld_txq); | wr = alloc_wrqe(sizeof(*wqe), &toep->ofld_txq->wrq); | ||||
if (wr == NULL) | if (wr == NULL) | ||||
return; | return; | ||||
wqe = wrtod(wr); | wqe = wrtod(wr); | ||||
memset(wqe, 0, sizeof *wqe); | memset(wqe, 0, sizeof *wqe); | ||||
wqe->op_compl = cpu_to_be32(V_FW_WR_OP(FW_RI_WR)); | wqe->op_compl = cpu_to_be32(V_FW_WR_OP(FW_RI_WR)); | ||||
wqe->flowid_len16 = cpu_to_be32( | wqe->flowid_len16 = cpu_to_be32( | ||||
V_FW_WR_FLOWID(qhp->ep->hwtid) | | V_FW_WR_FLOWID(qhp->ep->hwtid) | | ||||
▲ Show 20 Lines • Show All 115 Lines • ▼ Show 20 Lines | struct socket *so = ep->com.so; | ||||
struct tcpcb *tp = intotcpcb(inp); | struct tcpcb *tp = intotcpcb(inp); | ||||
struct toepcb *toep = tp->t_toe; | struct toepcb *toep = tp->t_toe; | ||||
KASSERT(rhp == qhp->rhp && ep == qhp->ep, ("%s: EDOOFUS", __func__)); | KASSERT(rhp == qhp->rhp && ep == qhp->ep, ("%s: EDOOFUS", __func__)); | ||||
CTR5(KTR_IW_CXGBE, "%s qhp %p qid 0x%x ep %p tid %u", __func__, qhp, | CTR5(KTR_IW_CXGBE, "%s qhp %p qid 0x%x ep %p tid %u", __func__, qhp, | ||||
qhp->wq.sq.qid, ep, ep->hwtid); | qhp->wq.sq.qid, ep, ep->hwtid); | ||||
wr = alloc_wrqe(sizeof(*wqe), toep->ofld_txq); | wr = alloc_wrqe(sizeof(*wqe), &toep->ofld_txq->wrq); | ||||
if (wr == NULL) | if (wr == NULL) | ||||
return (0); | return (0); | ||||
wqe = wrtod(wr); | wqe = wrtod(wr); | ||||
memset(wqe, 0, sizeof *wqe); | memset(wqe, 0, sizeof *wqe); | ||||
wqe->op_compl = cpu_to_be32(V_FW_WR_OP(FW_RI_WR) | F_FW_WR_COMPL); | wqe->op_compl = cpu_to_be32(V_FW_WR_OP(FW_RI_WR) | F_FW_WR_COMPL); | ||||
wqe->flowid_len16 = cpu_to_be32(V_FW_WR_FLOWID(ep->hwtid) | | wqe->flowid_len16 = cpu_to_be32(V_FW_WR_FLOWID(ep->hwtid) | | ||||
▲ Show 20 Lines • Show All 77 Lines • ▼ Show 20 Lines | static int rdma_init(struct c4iw_dev *rhp, struct c4iw_qp *qhp) | ||||
struct socket *so = ep->com.so; | struct socket *so = ep->com.so; | ||||
struct inpcb *inp = sotoinpcb(so); | struct inpcb *inp = sotoinpcb(so); | ||||
struct tcpcb *tp = intotcpcb(inp); | struct tcpcb *tp = intotcpcb(inp); | ||||
struct toepcb *toep = tp->t_toe; | struct toepcb *toep = tp->t_toe; | ||||
CTR5(KTR_IW_CXGBE, "%s qhp %p qid 0x%x ep %p tid %u", __func__, qhp, | CTR5(KTR_IW_CXGBE, "%s qhp %p qid 0x%x ep %p tid %u", __func__, qhp, | ||||
qhp->wq.sq.qid, ep, ep->hwtid); | qhp->wq.sq.qid, ep, ep->hwtid); | ||||
wr = alloc_wrqe(sizeof(*wqe), toep->ofld_txq); | wr = alloc_wrqe(sizeof(*wqe), &toep->ofld_txq->wrq); | ||||
if (wr == NULL) | if (wr == NULL) | ||||
return (0); | return (0); | ||||
wqe = wrtod(wr); | wqe = wrtod(wr); | ||||
ret = alloc_ird(rhp, qhp->attr.max_ird); | ret = alloc_ird(rhp, qhp->attr.max_ird); | ||||
if (ret) { | if (ret) { | ||||
qhp->attr.max_ird = 0; | qhp->attr.max_ird = 0; | ||||
free_wrqe(wr); | free_wrqe(wr); | ||||
return ret; | return ret; | ||||
▲ Show 20 Lines • Show All 610 Lines • Show Last 20 Lines |