• Jeremy Kerr's avatar
    net: mctp: separate key correlation across nets · 43e67955
    Jeremy Kerr authored
    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: default avatarJeremy Kerr <jk@codeconstruct.com.au>
    Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
    43e67955
mctp.h 8.05 KB