HomeFreeBSD

vtnet: Do "hardware" accounting for the total number of received octets

Description

vtnet: Do "hardware" accounting for the total number of received octets

While here, advertise the IFCAP_HWSTATS capability to avoid the net
stack from double counting it.

Co-authored-by: zlei
Reviewed by: zlei
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D44816

(cherry picked from commit a14d561e58529c9686a2efc47f4828ad82026e63)

Details

Provenance
joyul_juniper.netAuthored on Sep 4 2025, 8:00 PM
zleiCommitted on Sep 27 2025, 3:11 PM
Reviewer
zlei
Differential Revision
Restricted Differential Revision
Parents
rGdc32441e3825: ifnet: Defer detaching address family dependent data
Branches
Unknown
Tags
Unknown