mctp: Allow keys matching any local address
authorJeremy Kerr <jk@codeconstruct.com.au>
Wed, 9 Feb 2022 04:05:56 +0000 (12:05 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Feb 2022 12:00:11 +0000 (12:00 +0000)
commit0de55a7d1133d0ab1acad5d91eea6ccd8cf6d448
treeb55293885a7f9ae8293cc93a2408bd46458bda21
parent8069b22d656f6e1922352bff90ab78e6fab73779
mctp: Allow keys matching any local address

Currently, we require an exact match on an incoming packet's dest
address, and the key's local_addr field.

In a future change, we may want to set up a key before packets are
routed, meaning we have no local address to match on.

This change allows key lookups to match on local_addr = MCTP_ADDR_ANY.

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mctp/route.c
net/mctp/test/route-test.c