[Bug 220198] igb stats double counting in 12-CURRENT

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Aug 24 09:55:56 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220198

Kaho Toshikazu <kaho at elam.kais.kyoto-u.ac.jp> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kaho at elam.kais.kyoto-u.ac.j
                   |                            |p

--- Comment #3 from Kaho Toshikazu <kaho at elam.kais.kyoto-u.ac.jp> ---
(In reply to commit-hook from comment #1)

I think the bug is fixed by this commit, but it is not a good way.

1. Every driver using iflib should set IFCAP_HWSTATS flag within the driver.
For example, in the em(4) driver, add IFCAP_HWSTATS flag
into #define EM_CAPS and #define IGB_CAPS lines of if_em.c.

2. The IFCAP_FLAGS in iflib.c seems to hold flags which can be changed by
a ioctl function. Who want to set or unset the IFCAP_HWSTATS flag
by a function?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-net mailing list