diff options
author | Tom Parkin <tparkin@katalix.com> | 2020-09-03 10:54:50 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-03 21:19:03 +0200 |
commit | de68b039e970c1e55850818fb1bcd49f52dc02e8 (patch) | |
tree | c3007fbeeefd5b9b8d0130ac4b19c610eaca4e30 /drivers/vhost | |
parent | l2tp: drop net argument from l2tp_tunnel_create (diff) | |
download | linux-de68b039e970c1e55850818fb1bcd49f52dc02e8.tar.xz 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 'drivers/vhost')
0 files changed, 0 insertions, 0 deletions