]> 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)
commit9ff27154f3ae8664ef704e3f4c322c1312f426cb
treeeac7bc551ee75716488daad6203af8e0cbe276df
parent688cfee59a9db03aa5396fa196378c48dc11f605
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