mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-15 09:34:17 +00:00
0b91fa4bfb
ptype_all is used in rx/tx fast paths. Move it to net_hotdata 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-5-edumazet@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
20 lines
425 B
C
20 lines
425 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
#ifndef _NET_HOTDATA_H
|
|
#define _NET_HOTDATA_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
/* Read mostly data used in network fast paths. */
|
|
struct net_hotdata {
|
|
struct list_head offload_base;
|
|
struct list_head ptype_all;
|
|
int gro_normal_batch;
|
|
int netdev_budget;
|
|
int netdev_budget_usecs;
|
|
int tstamp_prequeue;
|
|
};
|
|
|
|
extern struct net_hotdata net_hotdata;
|
|
|
|
#endif /* _NET_HOTDATA_H */
|