HomeFreeBSD

e1000: fix interface capabilities management

Description

e1000: fix interface capabilities management

The e1000 drivers (em, lem, igb) are currently looking at the
iflib copies of the capabilities bitvectors (scctx->isc_capabilities
and scctx->isc_capenable) rather than the ifnet ones
(ifp->if_capabilities and ifp->if_capenable). However, the latter
are the ones that are actually updated by ifconfig and that should
be used by the drivers during interface operation. The former are
set by the driver on interface attach (for iflib internal use)
and should not be used anymore by the driver.
This patch fixes the e1000 driver to use the correct bitvectors.

PR: 260068
Reviewed by: markj
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D33154

(cherry picked from commit e0f4cdba533693bb6ef9d90243acdad89605b150)

Details

Provenance
vmaffioneAuthored on Dec 8 2021, 8:55 AM
Reviewer
markj
Differential Revision
D33154: e1000: fix interface capabilities management
Parents
rG5a26132b28b6: em: skip rxcsum offload processing when disabled
Branches
Unknown
Tags
Unknown