aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/net/core/gro_cells.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2024-03-06 16:00:18 +0000
committerJakub Kicinski <kuba@kernel.org>2024-03-07 21:12:42 -0800
commitedbc666cdcbf4a80ada4311c272a2078af87b880 (patch)
tree61104dd905b4d0eb4e81c7b88e56fc6be31f3f21 /net/core/gro_cells.c
parentnet: move ptype_all into net_hotdata (diff)
downloadwireguard-linux-edbc666cdcbf4a80ada4311c272a2078af87b880.tar.xz
wireguard-linux-edbc666cdcbf4a80ada4311c272a2078af87b880.zip
net: move netdev_max_backlog to net_hotdata
netdev_max_backlog is used in rx fat path. Move it to net_hodata for better cache locality. Signed-off-by: Eric Dumazet <edumazet@google.com> Acked-by: Soheil Hassas Yeganeh <soheil@google.com> Reviewed-by: David Ahern <dsahern@kernel.org> Link: https://lore.kernel.org/r/20240306160031.874438-6-edumazet@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/core/gro_cells.c')
-rw-r--r--net/core/gro_cells.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/core/gro_cells.c b/net/core/gro_cells.c
index ed5ec5de47f6..ff8e5b64bf6b 100644
--- a/net/core/gro_cells.c
+++ b/net/core/gro_cells.c
@@ -3,6 +3,7 @@
#include <linux/slab.h>
#include <linux/netdevice.h>
#include <net/gro_cells.h>
+#include <net/hotdata.h>
struct gro_cell {
struct sk_buff_head napi_skbs;
@@ -26,7 +27,7 @@ int gro_cells_receive(struct gro_cells *gcells, struct sk_buff *skb)
cell = this_cpu_ptr(gcells->cells);
- if (skb_queue_len(&cell->napi_skbs) > READ_ONCE(netdev_max_backlog)) {
+ if (skb_queue_len(&cell->napi_skbs) > READ_ONCE(net_hotdata.max_backlog)) {
drop:
dev_core_stats_rx_dropped_inc(dev);
kfree_skb(skb);