Catch up with the removal of nktr_slot_flags from upstream netmap. No
functional impact intended. Submitted by: Vincenzo Maffione <v.maffione@gmail.com>
This commit is contained in:
parent
6d3bcc06e2
commit
7cb7c6e37a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329675
@ -974,7 +974,7 @@ t4_nm_intr(void *arg)
|
||||
case CPL_RX_PKT:
|
||||
ring->slot[fl_cidx].len = G_RSPD_LEN(lq) -
|
||||
sc->params.sge.fl_pktshift;
|
||||
ring->slot[fl_cidx].flags = kring->nkr_slot_flags;
|
||||
ring->slot[fl_cidx].flags = 0;
|
||||
fl_cidx += (lq & F_RSPD_NEWBUF) ? 1 : 0;
|
||||
fl_credits += (lq & F_RSPD_NEWBUF) ? 1 : 0;
|
||||
if (__predict_false(fl_cidx == nm_rxq->fl_sidx))
|
||||
|
@ -1068,7 +1068,6 @@ iflib_netmap_rxsync(struct netmap_kring *kring, int flags)
|
||||
if (netmap_no_pendintr || force_update) {
|
||||
int crclen = iflib_crcstrip ? 0 : 4;
|
||||
int error, avail;
|
||||
uint16_t slot_flags = kring->nkr_slot_flags;
|
||||
|
||||
for (i = 0; i < rxq->ifr_nfl; i++) {
|
||||
fl = &rxq->ifr_fl[i];
|
||||
@ -1084,7 +1083,7 @@ iflib_netmap_rxsync(struct netmap_kring *kring, int flags)
|
||||
|
||||
error = ctx->isc_rxd_pkt_get(ctx->ifc_softc, &ri);
|
||||
ring->slot[nm_i].len = error ? 0 : ri.iri_len - crclen;
|
||||
ring->slot[nm_i].flags = slot_flags;
|
||||
ring->slot[nm_i].flags = 0;
|
||||
if (fl->ifl_sds.ifsd_map)
|
||||
bus_dmamap_sync(fl->ifl_ifdi->idi_tag,
|
||||
fl->ifl_sds.ifsd_map[nic_i], BUS_DMASYNC_POSTREAD);
|
||||
|
Loading…
Reference in New Issue
Block a user