linux-stable/net/mctp
Jeremy Kerr 99ce45d5e7 mctp: Implement extended addressing
This change allows an extended address struct - struct sockaddr_mctp_ext
- to be passed to sendmsg/recvmsg. This allows userspace to specify
output ifindex and physical address information (for sendmsg) or receive
the input ifindex/physaddr for incoming messages (for recvmsg). This is
typically used by userspace for MCTP address discovery and assignment
operations.

The extended addressing facility is conditional on a new sockopt:
MCTP_OPT_ADDR_EXT; userspace must explicitly enable addressing before
the kernel will consume/populate the extended address data.

Includes a fix for an uninitialised var:
Reported-by: kernel test robot <lkp@intel.com>

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-10-26 14:58:45 +01:00
..
test mctp: Add input reassembly tests 2021-10-03 14:35:41 +01:00
af_mctp.c mctp: Implement extended addressing 2021-10-26 14:58:45 +01:00
device.c mctp: Warn if pointer is set for a wrong dev type 2021-09-29 11:00:12 +01:00
Kconfig mctp: Add initial test structure and fragmentation test 2021-10-03 14:35:41 +01:00
Makefile mctp: Add test utils 2021-10-03 14:35:41 +01:00
neigh.c mctp: Add refcounts to mctp_dev 2021-09-29 11:00:11 +01:00
route.c mctp: Implement extended addressing 2021-10-26 14:58:45 +01:00