]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
if_vxlan(4): Correct the statistic for output bytes
authorZhenlei Huang <zlei.huang@gmail.com>
Fri, 7 Oct 2022 11:37:12 +0000 (13:37 +0200)
committerKristof Provost <kp@FreeBSD.org>
Fri, 7 Oct 2022 11:45:16 +0000 (13:45 +0200)
commitde1ea2d5171ec53acd69f93821b9507267ee44b7
treeeb8f00e036511da8dc8b3b117ce96c2c8cef3547
parent62d42655bca1e496160718c1443e67e626e24365
if_vxlan(4): Correct the statistic for output bytes

The vxlan interface encapsulates the Ethernet frame by prepending IP/UDP
and vxlan headers. For statistics, only the payload, i.e. the
encapsulated (inner) frame should be counted.

Event: Aberdeen Hackathon 2022
Reviewed by: kp
Differential Revision: https://reviews.freebsd.org/D36855
sys/net/if_vxlan.c