]> git.ipfire.org Git - thirdparty/linux.git/commit
net: mctp: don't use source cb data when forwarding, ensure pkt_type is set
authorJeremy Kerr <jk@codeconstruct.com.au>
Wed, 2 Jul 2025 06:20:01 +0000 (14:20 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 8 Jul 2025 10:39:23 +0000 (12:39 +0200)
commite0f3c79cc0bbf4925de1afde5abf148b7f7f4398
tree26967884feed65ed999873b938e21b2075e3446d
parent05cc60ef27c9b7fb46972223e04ef3f797940154
net: mctp: don't use source cb data when forwarding, ensure pkt_type is set

In the output path, only check the skb->cb data when we know it's from
a local socket; input packets will have source address information there
instead.

In order to detect when we're forwarding, set skb->pkt_type on
input/output.

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
Link: https://patch.msgid.link/20250702-dev-forwarding-v5-1-1468191da8a4@codeconstruct.com.au
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/mctp/route.c