• Jeremy Kerr's avatar
    mctp: replace mctp_address_ok with more fine-grained helpers · cb196b72
    Jeremy Kerr authored
    Currently, we have mctp_address_ok(), which checks if an EID is in the
    "valid" range of 8-254 inclusive. However, 0 and 255 may also be valid
    addresses, depending on context. 0 is the NULL EID, which may be set
    when physical addressing is used. 255 is valid as a destination address
    for broadcasts.
    
    This change renames mctp_address_ok to mctp_address_unicast, and adds
    similar helpers for broadcast and null EIDs, which will be used in an
    upcoming commit.
    Signed-off-by: default avatarJeremy Kerr <jk@codeconstruct.com.au>
    Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
    cb196b72
device.c 11.7 KB