mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-10-26 10:57:38 +08:00
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 <sd@queasysnail.net> Link: https://patch.msgid.link/53d83ac52f192a7cf2a8decaf72d454cbb86211a.1790702233.git.sd@queasysnail.net Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
1 parent
b5e153a5c8
commit
02fd0a2111
2 files changed
+1
-6
No files matched your search
@@ -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
|
||||
|
||||
+1
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user