Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

l2tp: correct debugfs label for tunnel tx stats

l2tp_dfs_seq_tunnel_show prints two groups of tunnel statistics. The
first group reports transmit counters, but the code labels it as rx.
Set the label to "tx" so the debugfs output reflects the actual meaning.

Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20251128085300.3377210-1-alok.a.tiwari@oracle.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Alok Tiwari and committed by
Jakub Kicinski
09339d0d aadff9f7

+1 -1
+1 -1
net/l2tp/l2tp_debugfs.c
··· 163 163 seq_printf(m, " %d sessions, refcnt %d/%d\n", session_count, 164 164 tunnel->sock ? refcount_read(&tunnel->sock->sk_refcnt) : 0, 165 165 refcount_read(&tunnel->ref_count)); 166 - seq_printf(m, " %08x rx %ld/%ld/%ld rx %ld/%ld/%ld\n", 166 + seq_printf(m, " %08x tx %ld/%ld/%ld rx %ld/%ld/%ld\n", 167 167 0, 168 168 atomic_long_read(&tunnel->stats.tx_packets), 169 169 atomic_long_read(&tunnel->stats.tx_bytes),