]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: mctp: Use hashtable for binds
authorMatt Johnston <matt@codeconstruct.com.au>
Thu, 10 Jul 2025 08:55:58 +0000 (16:55 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 15 Jul 2025 10:08:39 +0000 (12:08 +0200)
commit1aeed732f4f885ad36280ca4afb331fa42bf7263
tree3dba6739897c5d804057e8f20acd98054ef32ceb
parent4ec4b7fc04a7217a6a581ac132bd0fb6abc2f4d5
net: mctp: Use hashtable for binds

Ensure that a specific EID (remote or local) bind will match in
preference to a MCTP_ADDR_ANY bind.

This adds infrastructure for binding a socket to receive messages from a
specific remote peer address, a future commit will expose an API for
this.

Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
Link: https://patch.msgid.link/20250710-mctp-bind-v4-5-8ec2f6460c56@codeconstruct.com.au
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
include/net/netns/mctp.h
net/mctp/af_mctp.c
net/mctp/route.c