]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf34abce7b66bbf87d2736f6c48d7a575b1acb078
treeb55293885a7f9ae8293cc93a2408bd46458bda21
parent6b67bc3e3320f92387aad5f71d163f9dcb59e847
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