]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net-sysfs: use rps_tag_ptr and remove metadata from rps_dev_flow_table
authorEric Dumazet <edumazet@google.com>
Mon, 2 Mar 2026 18:14:32 +0000 (18:14 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 5 Mar 2026 00:54:10 +0000 (16:54 -0800)
commita435163d3100b044d620990772a5ce1684ff02ca
tree40ce3bd11cefc6f440d0664f68a0d62853630243
parentb2cc61857e3cf7e103089dd54c0548d54a6ae381
net-sysfs: use rps_tag_ptr and remove metadata from rps_dev_flow_table

Instead of storing the @log at the beginning of rps_dev_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 (for light traffic).

This allows us to switch to one high-order allocation instead of vmalloc()
when CONFIG_RFS_ACCEL is not set.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20260302181432.1836150-8-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/netdev_rx_queue.h
include/net/rps.h
net/core/dev.c
net/core/net-sysfs.c