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)
commitf52e4b27d1ac837caa84973262f7057578f6e316
treeeac7bc551ee75716488daad6203af8e0cbe276df
parenta9fd686a71e97f7be3e3e640957a3228cb1fd1d7
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