From 02fd0a21113749e41be286b3645c9d63971f8121 Mon Sep 17 00:00:00 2001 From: Sabrina Dubroca Date: Thu, 1 Oct 2026 09:57:28 +0200 Subject: [PATCH] net: strparser: removed the aborted bit and aborts counter strp->aborted is never set, so the aborts counter is also never updated. Remove them, and hard-code a 0 in kcm_stats_seq_show() to preserve the user-visible format. Signed-off-by: Sabrina Dubroca Link: https://patch.msgid.link/53d83ac52f192a7cf2a8decaf72d454cbb86211a.1790702233.git.sd@queasysnail.net Signed-off-by: Jakub Kicinski --- include/net/strparser.h | 5 ----- net/kcm/kcmproc.c | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/include/net/strparser.h b/include/net/strparser.h index a72dff8e6a3f..3c9c8ca08828 100644 --- a/include/net/strparser.h +++ b/include/net/strparser.h @@ -32,7 +32,6 @@ struct strp_aggr_stats { unsigned int msg_too_big; unsigned int msg_timeouts; unsigned int bad_hdr_len; - unsigned int aborts; unsigned int interrupted; unsigned int unrecov_intr; }; @@ -90,7 +89,6 @@ struct strparser { u32 stopped : 1; u32 paused : 1; - u32 aborted : 1; u32 interrupted : 1; u32 unrecov_intr : 1; @@ -128,8 +126,6 @@ static inline void save_strp_stats(struct strparser *strp, SAVE_PSOCK_STATS(bad_hdr_len); #undef SAVE_PSOCK_STATS - if (strp->aborted) - agg_stats->aborts++; if (strp->interrupted) agg_stats->interrupted++; if (strp->unrecov_intr) @@ -147,7 +143,6 @@ static inline void aggregate_strp_stats(struct strp_aggr_stats *stats, SAVE_PSOCK_STATS(msg_too_big); SAVE_PSOCK_STATS(msg_timeouts); SAVE_PSOCK_STATS(bad_hdr_len); - SAVE_PSOCK_STATS(aborts); SAVE_PSOCK_STATS(interrupted); SAVE_PSOCK_STATS(unrecov_intr); #undef SAVE_PSOCK_STATS diff --git a/net/kcm/kcmproc.c b/net/kcm/kcmproc.c index 25c1007f1098..f065406f57a8 100644 --- a/net/kcm/kcmproc.c +++ b/net/kcm/kcmproc.c @@ -332,7 +332,7 @@ static int kcm_stats_seq_show(struct seq_file *seq, void *v) psock_stats.tx_bytes, psock_stats.reserved, psock_stats.unreserved, - strp_stats.aborts, + 0, strp_stats.interrupted, strp_stats.unrecov_intr, strp_stats.mem_fail,