mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
netdev_tstamp_prequeue is used in rx path. 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-4-edumazet@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
18 lines
446 B
C
18 lines
446 B
C
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
#include <net/hotdata.h>
|
|
#include <linux/cache.h>
|
|
#include <linux/jiffies.h>
|
|
#include <linux/list.h>
|
|
|
|
|
|
struct net_hotdata net_hotdata __cacheline_aligned = {
|
|
.offload_base = LIST_HEAD_INIT(net_hotdata.offload_base),
|
|
.gro_normal_batch = 8,
|
|
|
|
.netdev_budget = 300,
|
|
/* Must be at least 2 jiffes to guarantee 1 jiffy timeout */
|
|
.netdev_budget_usecs = 2 * USEC_PER_SEC / HZ,
|
|
|
|
.tstamp_prequeue = 1,
|
|
};
|