From: Sabrina Dubroca <sd@queasysnail.net>
To: netdev@vger.kernel.org
Cc: Sabrina Dubroca <sd@queasysnail.net>
Subject: [PATCH net-next 4/5] net: strparser: removed the aborted bit and aborts counter
Date: Thu, 1 Oct 2026 09:57:28 +0200 [thread overview]
Message-ID: <53d83ac52f192a7cf2a8decaf72d454cbb86211a.1790702233.git.sd@queasysnail.net> (raw)
In-Reply-To: <cover.1790702233.git.sd@queasysnail.net>
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 <sd@queasysnail.net>
---
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,
--
2.55.0
next prev parent reply other threads:[~2026-10-01 7:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-01 7:57 [PATCH net-next 0/5] strparser: remove general mode Sabrina Dubroca
2026-10-01 7:57 ` [PATCH net-next 1/5] net: strparser: remove unused abort_parser/lock/unlock callbacks Sabrina Dubroca
2026-10-01 7:57 ` [PATCH net-next 2/5] net: strparser: remove strp->sk NULL checks Sabrina Dubroca
2026-10-01 7:57 ` [PATCH net-next 3/5] net: strparser: remove strp_process() Sabrina Dubroca
2026-10-01 7:57 ` Sabrina Dubroca [this message]
2026-10-01 7:57 ` [PATCH net-next 5/5] docs: networking: strparser: remove general mode Sabrina Dubroca
2026-10-05 23:10 ` [PATCH net-next 0/5] " patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53d83ac52f192a7cf2a8decaf72d454cbb86211a.1790702233.git.sd@queasysnail.net \
--to=sd@queasysnail.net \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox