Commit 235aa081 authored by David Wei's avatar David Wei Committed by Greg Kroah-Hartman
Browse files

tcp: fix passive TFO socket having invalid NAPI ID



[ Upstream commit dbe0ca8d ]

There is a bug with passive TFO sockets returning an invalid NAPI ID 0
from SO_INCOMING_NAPI_ID. Normally this is not an issue, but zero copy
receive relies on a correct NAPI ID to process sockets on the right
queue.

Fix by adding a sk_mark_napi_id_set().

Fixes: e5907459 ("tcp: Record Rx hash and NAPI ID in tcp_child_process")
Signed-off-by: default avatarDavid Wei <dw@davidwei.uk>
Reviewed-by: default avatarKuniyuki Iwashima <kuniyu@google.com>
Reviewed-by: default avatarEric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20250617212102.175711-5-dw@davidwei.uk


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent d3dfe821
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment