]> 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)
commit7afd9b17b67d8b5f926facab5405cca2610b6488
tree22e46cd78c2a2542dc529556a3435f553d2ab447
parentc47545fb48e9d07fe68b19c3651e6df9e0ce9eac
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