diff options
author | Tom Parkin <tparkin@katalix.com> | 2020-09-03 09:54:50 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-03 12:19:03 -0700 |
commit | de68b039e970c1e55850818fb1bcd49f52dc02e8 (patch) | |
tree | c3007fbeeefd5b9b8d0130ac4b19c610eaca4e30 /block/blk-stat.c | |
parent | c9ccd4c63c40fa03a9d5850c4a8847192b640524 (diff) | |
download | linux-de68b039e970c1e55850818fb1bcd49f52dc02e8.tar.gz linux-de68b039e970c1e55850818fb1bcd49f52dc02e8.tar.bz2 linux-de68b039e970c1e55850818fb1bcd49f52dc02e8.zip |
l2tp: capture more tx errors in data plane stats
l2tp_xmit_skb has a number of failure paths which are not reflected in
the tunnel and session statistics because the stats are updated by
l2tp_xmit_core. Hence any errors occurring before l2tp_xmit_core is
called are missed from the statistics.
Refactor the transmit path slightly to capture all error paths.
l2tp_xmit_skb now leaves all the actual work of transmission to
l2tp_xmit_core, and updates the statistics based on l2tp_xmit_core's
return code.
Signed-off-by: Tom Parkin <tparkin@katalix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'block/blk-stat.c')
0 files changed, 0 insertions, 0 deletions