]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mptcp: pass right struct to subflow_hmac_valid
authorMatthieu Baerts (NGI0) <matttbe@kernel.org>
Sun, 13 Apr 2025 09:34:35 +0000 (11:34 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Apr 2025 15:21:47 +0000 (08:21 -0700)
commit60cbf3158513ae35ab38a2593b07ce679825d425
tree01af44b303ee2e40482fb6642a0e034319babe78
parentdef9d0958befc7dfbda5fc1f22e17fbab912bc62
mptcp: pass right struct to subflow_hmac_valid

subflow_hmac_valid() needs to access the MPTCP socket and the subflow
request, but not the request sock that is passed in argument.

Instead, the subflow request can be directly passed to avoid getting it
via an additional cast.

Reviewed-by: Geliang Tang <geliang@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20250413-net-next-mptcp-sched-mib-sft-misc-v2-4-0f83a4350150@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/subflow.c