]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
cxgbe(4): Add flag to reliably stop the driver from accessing hw stats.
authorNavdeep Parhar <np@FreeBSD.org>
Fri, 23 Apr 2021 00:45:52 +0000 (17:45 -0700)
committerNavdeep Parhar <np@FreeBSD.org>
Fri, 23 Apr 2021 00:45:52 +0000 (17:45 -0700)
commitb47b28e5b28aeaa42e87f905fe6a0fe65dbfc184
treeb93de72729907d85ace72f33c6bb36b383484829
parent3cfd08c1c74058451a02bac35307bf7fa509c617
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.

MFC after: 2 weeks
Sponsored by: Chelsio Communications
sys/dev/cxgbe/adapter.h
sys/dev/cxgbe/t4_main.c