]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: forwarding: router: Add test case for multicast destination MAC mismatch
authorAmit Cohen <amitc@mellanox.com>
Sun, 5 Jan 2020 16:20:53 +0000 (18:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Jan 2020 21:38:36 +0000 (13:38 -0800)
commit510668962e27c32b3855fc9ae44c6535e73e8328
tree22e46cd78c2a2542dc529556a3435f553d2ab447
parentea1303aa33309c5ce1d32683aa8eedec590d2780
selftests: forwarding: router: Add test case for multicast destination MAC mismatch

Add test case to check that packets are not dropped when they need to be
routed and their multicast MAC mismatched to their multicast destination
IP.

i.e., destination IP is multicast and
* for IPV4: DMAC !=  {01-00-5E-0 (25 bits), DIP[22:0]}
* for IPV6: DMAC !=  {33-33-0 (16 bits), DIP[31:0]}

Signed-off-by: Amit Cohen <amitc@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/router.sh