HomeFreeBSD

cxgbe(4): Add flag to reliably stop the driver from accessing hw stats.

Description

cxgbe(4): Add flag to reliably stop the driver from accessing hw stats.

There are two kinds of routines in the driver that read statistics from
the hardware: the cxgbe_* variants read the per-port MPS/MAC registers
and the vi_* variants read the per-VI registers. They can be called
from the 1Hz callout or if_get_counter. All stats collection now takes
place under the callout lock and there is a new flag to indicate that
these routines should not access any hardware register.

Sponsored by: Chelsio Communications

(cherry picked from commit b47b28e5b28aeaa42e87f905fe6a0fe65dbfc184)

Details

Provenance
npAuthored on Apr 23 2021, 12:45 AM
Parents
rG8b8b659f39f3: cxgbe(4): RSS hash for VXLAN traffic is computed from the inner frame.
Branches
Unknown
Tags
Unknown