summaryrefslogtreecommitdiff
path: root/include/linux/i2c/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorRalf Lici <ralf@mandelbit.com>2026-01-30 18:32:50 +0100
committerAntonio Quartulli <antonio@openvpn.net>2026-02-12 15:28:59 +0100
commitb660b13d4c6379ca6360f24aaef8c5807fefd237 (patch)
treeceecb8d95b3a4530c319265a04c00ecb9a5cd458 /include/linux/i2c/git@git.tavy.me:linux.git
parenta5ec7baa44ea3a1d6aa0ca31c0ad82edf9affe41 (diff)
ovpn: fix VPN TX bytes counting
In ovpn_net_xmit, after GSO segmentation and segment processing, the first segment on the list is used to increment VPN TX statistics, which fails to account for any subsequent segments in the chain. Fix this by accumulating the length of every segment that successfully passes skb_share_check into a tx_bytes variable. This ensures the peer statistics accurately reflect the total data volume sent, regardless of whether the original packet was segmented. Fixes: 04ca14955f9a ("ovpn: store tunnel and transport statistics") Signed-off-by: Ralf Lici <ralf@mandelbit.com> Reviewed-by: Sabrina Dubroca <sd@queasysnail.net> Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
Diffstat (limited to 'include/linux/i2c/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions