HomeFreeBSD

mvneta: Fix 64-bit MIB reads

Description

mvneta: Fix 64-bit MIB reads

It appears we must read MIB values as 2 4-byte words, lower address
first. A single 8-byte MIB read returns the value with the lower 4
bytes copied into the upper 4 bytes, resulting in bogus byte counter
values.

Reviewed by: mw
Sponsored by: Rubicon Communications, LLC (Netgate)
Differential Revision: https://reviews.freebsd.org/D27870

(cherry picked from commit caf552a607191ffc798e3edb697ae99d5b15711a)

Details

Provenance
markjAuthored on Jan 4 2021, 1:22 PM
Reviewer
mw
Differential Revision
D27870: mvneta: Fix 64-bit MIB reads
Parents
rG2d194dc21989: xen: allow limiting the amount of duplicated pending xenstore watches
Branches
Unknown
Tags
Unknown