Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/e1000/em_txrx.c
Show First 20 Lines • Show All 700 Lines • ▼ Show 20 Lines | do { | ||||
/* Zero out the receive descriptors status. */ | /* Zero out the receive descriptors status. */ | ||||
rxd->wb.upper.status_error &= htole32(~0xFF); | rxd->wb.upper.status_error &= htole32(~0xFF); | ||||
if (++cidx == scctx->isc_nrxd[0]) | if (++cidx == scctx->isc_nrxd[0]) | ||||
cidx = 0; | cidx = 0; | ||||
i++; | i++; | ||||
} while (!eop); | } while (!eop); | ||||
if (if_getcapenable(ri->iri_ifp) & IFCAP_RXCSUM) | |||||
em_receive_checksum(staterr, staterr >> 24, ri); | em_receive_checksum(staterr, staterr >> 24, ri); | ||||
if (staterr & E1000_RXD_STAT_VP) { | if (staterr & E1000_RXD_STAT_VP) { | ||||
vtag = le16toh(rxd->wb.upper.vlan); | vtag = le16toh(rxd->wb.upper.vlan); | ||||
} | } | ||||
ri->iri_vtag = vtag; | ri->iri_vtag = vtag; | ||||
if (vtag) | if (vtag) | ||||
ri->iri_flags |= M_VLANTAG; | ri->iri_flags |= M_VLANTAG; | ||||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |