linux/net/mctp/test
Jeremy Kerr 43e6795574 net: mctp: separate key correlation across nets
Currently, we lookup sk_keys from the entire struct net_namespace, which
may contain multiple MCTP net IDs. In those cases we want to distinguish
between endpoints with the same EID but different net ID.

Add the net ID data to the struct mctp_sk_key, populate on add and
filter on this during route lookup.

For the ioctl interface, we use a default net of
MCTP_INITIAL_DEFAULT_NET (ie., what will be in use for single-net
configurations), but we'll extend the ioctl interface to provide
net-specific tag allocation in an upcoming change.

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2024-02-22 13:32:55 +01:00
..
route-test.c net: mctp: separate key correlation across nets 2024-02-22 13:32:55 +01:00
utils.c net: mctp: tests: create test skbs with the correct net and device 2024-02-22 13:32:55 +01:00
utils.h mctp: Add test utils 2021-10-03 14:35:41 +01:00