]> Gentwo Git Trees - linux/.git/commitdiff
l2tp: correct debugfs label for tunnel tx stats
authorAlok Tiwari <alok.a.tiwari@oracle.com>
Fri, 28 Nov 2025 08:52:57 +0000 (00:52 -0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 1 Dec 2025 20:03:09 +0000 (12:03 -0800)
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>
net/l2tp/l2tp_debugfs.c

index 2d0c8275a3a82c4919d1a2ab4089860353e6ce2b..5cfaab7d0890955af29b596d34fb9223b4d039d6 100644 (file)
@@ -163,7 +163,7 @@ static void l2tp_dfs_seq_tunnel_show(struct seq_file *m, void *v)
        seq_printf(m, " %d sessions, refcnt %d/%d\n", session_count,
                   tunnel->sock ? refcount_read(&tunnel->sock->sk_refcnt) : 0,
                   refcount_read(&tunnel->ref_count));
-       seq_printf(m, " %08x rx %ld/%ld/%ld rx %ld/%ld/%ld\n",
+       seq_printf(m, " %08x tx %ld/%ld/%ld rx %ld/%ld/%ld\n",
                   0,
                   atomic_long_read(&tunnel->stats.tx_packets),
                   atomic_long_read(&tunnel->stats.tx_bytes),