]> git.baikalelectronics.ru Git - kernel.git/commit
l2tp: fix up inconsistent rx/tx statistics
authorTom Parkin <tparkin@katalix.com>
Fri, 18 Sep 2020 10:23:21 +0000 (11:23 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Sep 2020 21:36:54 +0000 (14:36 -0700)
commit5227c086a83e627de3d5fc187833a4da060ddd73
treeeac7bc551ee75716488daad6203af8e0cbe276df
parentc888e9bcfe18e9f64c6d938f4432e69dfa60ca55
l2tp: fix up inconsistent rx/tx statistics

Historically L2TP core statistics count the L2TP header in the
per-session and per-tunnel byte counts tracked for transmission and
receipt.

Now that l2tp_xmit_skb updates tx stats, it is necessary for
l2tp_xmit_core to pass out the length of the transmitted packet so that
the statistics can be updated correctly.

Signed-off-by: Tom Parkin <tparkin@katalix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/l2tp/l2tp_core.c