]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: Cache hash and flow_id to avoid recalculation
authorKrishna Kumar <krikku@gmail.com>
Mon, 25 Aug 2025 03:10:05 +0000 (08:40 +0530)
committerJakub Kicinski <kuba@kernel.org>
Thu, 28 Aug 2025 01:24:20 +0000 (18:24 -0700)
commit48aa30443e52c9666d5cd5e67532e475f212337e
treef7d2eb1ee55f69d071264ed6ae368109de4eae5e
parent97bcc5b6f45425ac56fb04b0893cdaa607ec7e45
net: Cache hash and flow_id to avoid recalculation

get_rps_cpu() can cache flow_id and hash as both are required by
set_rps_cpu() instead of recalculating them twice.

Signed-off-by: Krishna Kumar <krikku@gmail.com>
Link: https://patch.msgid.link/20250825031005.3674864-3-krikku@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/dev.c