]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: mctp: perform source address lookups when we populate our dst
authorJeremy Kerr <jk@codeconstruct.com.au>
Tue, 31 Mar 2026 07:41:06 +0000 (15:41 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 2 Apr 2026 11:31:36 +0000 (13:31 +0200)
commit22cb45afd221b9e4f2a1dcc74a8ff645b7293aa1
treecec807a8205bc451ef473809985035d27dc26ab4
parentae04bff949c50921c2af2a14def112a2c47e649d
net: mctp: perform source address lookups when we populate our dst

Rather than querying the output device for its address in
mctp_local_output, set up the source address when we're populating the
dst structure. If no address is assigned, use MCTP_ADDR_NULL.

This will allow us more flexibility when routing for NULL-source-eid
cases. For now though, we still reject a NULL source address in the
output path.

We need to update the tests a little, so that addresses are assigned
before we do the dst lookups.

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
Link: https://patch.msgid.link/20260331-dev-mctp-null-eids-v1-1-b4d047372eaf@codeconstruct.com.au
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
include/net/mctp.h
net/mctp/route.c
net/mctp/test/route-test.c
net/mctp/test/utils.c
net/mctp/test/utils.h