Lines Matching defs:rxq

1143 	struct sge_rxq *rxq;
1200 for_each_rxq(vi, i, rxq) {
1201 rc = alloc_rxq(vi, rxq, i, intr_idx, maxp);
1251 struct sge_rxq *rxq;
1294 for_each_rxq(vi, i, rxq) {
1295 free_rxq(vi, rxq);
1408 MPASS(irq->rxq != NULL);
1409 t4_intr(irq->rxq);
1606 struct sge_rxq *rxq = iq_to_rxq(iq);
1617 struct lro_ctrl *lro = &rxq->lro;
1642 fl = &rxq->fl;
1667 if (__predict_true(eth_rx(sc, rxq, d, lq) == 0))
1967 eth_rx(struct adapter *sc, struct sge_rxq *rxq, const struct iq_desc *d,
1971 if_t ifp = rxq->ifp;
1972 struct sge_fl *fl = &rxq->fl;
1976 struct lro_ctrl *lro = &rxq->lro;
2079 rxq->rxcsum++;
2118 rxq->vxlan_rxcsum++;
2132 rxq->vlan_extraction++;
2136 if (rxq->iq.flags & IQ_RX_TIMESTAMP) {
2151 if (rxq->iq.flags & IQ_LRO_ENABLED && tnl_type == 0 &&
2289 struct sge_rxq *rxq;
2297 for_each_rxq(vi, i, rxq) {
2298 fl = &rxq->fl;
4009 alloc_rxq(struct vi_info *vi, struct sge_rxq *rxq, int idx, int intr_idx,
4018 if (!(rxq->iq.flags & IQ_SW_ALLOCATED)) {
4019 MPASS(!(rxq->iq.flags & IQ_HW_ALLOCATED));
4021 rc = tcp_lro_init_args(&rxq->lro, ifp, lro_entries, lro_mbufs);
4024 MPASS(rxq->lro.ifp == ifp); /* also indicates LRO init'ed */
4026 rxq->ifp = ifp;
4033 init_iq(&rxq->iq, sc, vi->tmr_idx, vi->pktc_idx, vi->qsize_rxq,
4037 rxq->iq.flags |= IQ_LRO_ENABLED;
4040 rxq->iq.flags |= IQ_RX_TIMESTAMP;
4041 snprintf(name, sizeof(name), "%s rxq%d-fl",
4043 init_fl(sc, &rxq->fl, vi->qsize_rxq / 8, maxp, name);
4044 rc = alloc_iq_fl(vi, &rxq->iq, &rxq->fl, &vi->ctx, oid);
4046 CH_ERR(vi, "failed to allocate rxq%d: %d\n", idx, rc);
4049 tcp_lro_free(&rxq->lro);
4050 rxq->lro.ifp = NULL;
4054 MPASS(rxq->iq.flags & IQ_SW_ALLOCATED);
4055 add_rxq_sysctls(&vi->ctx, oid, rxq);
4058 if (!(rxq->iq.flags & IQ_HW_ALLOCATED)) {
4059 MPASS(rxq->iq.flags & IQ_SW_ALLOCATED);
4060 rc = alloc_iq_fl_hwq(vi, &rxq->iq, &rxq->fl);
4062 CH_ERR(vi, "failed to create hw rxq%d: %d\n", idx, rc);
4065 MPASS(rxq->iq.flags & IQ_HW_ALLOCATED);
4068 sc->sge.iq_base = rxq->iq.abs_id - rxq->iq.cntxt_id;
4070 KASSERT(rxq->iq.cntxt_id + sc->sge.iq_base == rxq->iq.abs_id,
4079 FL_LOCK(&rxq->fl);
4080 refill_fl(sc, &rxq->fl, 128);
4081 FL_UNLOCK(&rxq->fl);
4091 free_rxq(struct vi_info *vi, struct sge_rxq *rxq)
4093 if (rxq->iq.flags & IQ_HW_ALLOCATED) {
4094 MPASS(rxq->iq.flags & IQ_SW_ALLOCATED);
4095 free_iq_fl_hwq(vi->adapter, &rxq->iq, &rxq->fl);
4096 MPASS(!(rxq->iq.flags & IQ_HW_ALLOCATED));
4099 if (rxq->iq.flags & IQ_SW_ALLOCATED) {
4100 MPASS(!(rxq->iq.flags & IQ_HW_ALLOCATED));
4102 tcp_lro_free(&rxq->lro);
4104 free_iq_fl(vi->adapter, &rxq->iq, &rxq->fl);
4105 MPASS(!(rxq->iq.flags & IQ_SW_ALLOCATED));
4106 bzero(rxq, sizeof(*rxq));
4112 struct sge_rxq *rxq)
4122 &rxq->lro.lro_queued, 0, NULL);
4124 &rxq->lro.lro_flushed, 0, NULL);
4127 &rxq->rxcsum, "# of times hardware assisted with checksum");
4129 &rxq->vlan_extraction, "# of times hardware extracted 802.1Q tag");
4131 &rxq->vxlan_rxcsum,
4695 &sc->sge.rxq[iqidx].iq, name);
4944 &sc->sge.rxq[iqidx].iq, name);