summaryrefslogtreecommitdiff
path: root/include/linux/kernel.h
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2026-03-02 21:14:29 +0300
committerJakub Kicinski <kuba@kernel.org>2026-03-05 03:54:09 +0300
commitdd378109d20ff6789091fa3558607c1d242d80ad (patch)
tree45595854374fd90b3474ed54673e5b18b1683672 /include/linux/kernel.h
parent9cde131cdd888873363b5d9dfd8d4d4c1fae6986 (diff)
downloadlinux-dd378109d20ff6789091fa3558607c1d242d80ad.tar.xz
net-sysfs: use rps_tag_ptr and remove metadata from rps_sock_flow_table
Instead of storing the @mask at the beginning of rps_sock_flow_table, use 5 low order bits of the rps_tag_ptr to store the log of the size. This removes a potential cache line miss to fetch @mask. More importantly, we can switch to vmalloc_huge() without wasting memory. Tested with: numactl --interleave=all bash -c "echo 4194304 >/proc/sys/net/core/rps_sock_flow_entries" Signed-off-by: Eric Dumazet <edumazet@google.com> Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com> Link: https://patch.msgid.link/20260302181432.1836150-5-edumazet@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/kernel.h')
0 files changed, 0 insertions, 0 deletions