]> 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)
commit78bb3f6cb7cb88c9523f3b1a8ab8e24c8c41d7f1
treeb55293885a7f9ae8293cc93a2408bd46458bda21
parenta7b35c9bebb4588e37951241e0cbed2dd5f7b286
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