mctp: tests: Add key state tests
authorJeremy Kerr <jk@codeconstruct.com.au>
Wed, 9 Feb 2022 04:05:54 +0000 (12:05 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Feb 2022 12:00:11 +0000 (12:00 +0000)
commitc5755214623dd7aaafc5204458a0a30b7469850c
tree63f5690c4946f967cf677135d2232c45dc639a19
parent62a2b005c6d639b6bd7a63fe2f0a96eaf06f0057
mctp: tests: Add key state tests

This change adds a few more tests to check the key/tag lookups on route
input. We add a specific entry to the keys lists, route a packet with
specific header values, and check for key match/mismatch.

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