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

Details

Provenance
vmaffioneAuthored on Dec 8 2021, 8:55 AM
Reviewer
markj
Differential Revision
D33154: e1000: fix interface capabilities management
Parents
rG3785106a5bd9: sdhci_fsl_fdt: Implement pulse width detection errata
Branches
Unknown
Tags
Unknown