mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 14:26:03 -04:00
em: skip rxcsum offload processing when disabled
Similarly to the other Intel drivers, don't try to process RX checksum offloads when this feature (IFCAP_RXCSUM) is disabled. Reviewed by: gallatin, kbowling, erj MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D33155
This commit is contained in:
parent
d91559564d
commit
d0633af765
1 changed files with 2 additions and 1 deletions
|
|
@ -706,7 +706,8 @@ em_isc_rxd_pkt_get(void *arg, if_rxd_info_t ri)
|
|||
i++;
|
||||
} while (!eop);
|
||||
|
||||
em_receive_checksum(staterr, staterr >> 24, ri);
|
||||
if (if_getcapenable(ri->iri_ifp) & IFCAP_RXCSUM)
|
||||
em_receive_checksum(staterr, staterr >> 24, ri);
|
||||
|
||||
if (staterr & E1000_RXD_STAT_VP) {
|
||||
vtag = le16toh(rxd->wb.upper.vlan);
|
||||
|
|
|
|||
Loading…
Reference in a new issue