]> git.baikalelectronics.ru Git - kernel.git/commit
mctp: Add helper for address match checking
authorJeremy Kerr <jk@codeconstruct.com.au>
Wed, 9 Feb 2022 04:05:55 +0000 (12:05 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Feb 2022 12:00:11 +0000 (12:00 +0000)
commita7b35c9bebb4588e37951241e0cbed2dd5f7b286
tree72fcc88a0c017ae74d453941469c34c1ed38ab52
parentb8dd9dda25d53d10b0910be037b48387311ad3bf
mctp: Add helper for address match checking

Currently, we have a couple of paths that check that an EID matches, or
the match value is MCTP_ADDR_ANY.

Rather than open coding this, add a little helper.

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