aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/dev.h
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2025-04-07 16:36:02 +0000
committerJakub Kicinski <[email protected]>2025-04-08 19:30:55 +0000
commit0a7de4a8f898c480ffafe024c4a0a8b8819597f1 (patch)
tree0674f8c736e7e30014e6566d63ec9c4c026af0a6 /net/core/dev.h
parentnet: add data-race annotations in softnet_seq_show() (diff)
downloadkernel-0a7de4a8f898c480ffafe024c4a0a8b8819597f1.tar.gz
kernel-0a7de4a8f898c480ffafe024c4a0a8b8819597f1.zip
net: rps: remove kfree_rcu_mightsleep() use
Add an rcu_head to sd_flow_limit and rps_sock_flow_table structs to use the more conventional and predictable k[v]free_rcu(). Signed-off-by: Eric Dumazet <[email protected]> Reviewed-by: Willem de Bruijn <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/core/dev.h')
-rw-r--r--net/core/dev.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/dev.h b/net/core/dev.h
index e855e1cb43fd..710abc05ebdb 100644
--- a/net/core/dev.h
+++ b/net/core/dev.h
@@ -15,6 +15,7 @@ struct cpumask;
/* Random bits of netdevice that don't need to be exposed */
#define FLOW_LIMIT_HISTORY (1 << 7) /* must be ^2 and !overflow buckets */
struct sd_flow_limit {
+ struct rcu_head rcu;
unsigned int count;
u8 log_buckets;
unsigned int history_head;