]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: forwarding: Add multicast routing test
authorNir Dotan <nird@mellanox.com>
Mon, 10 Dec 2018 07:11:46 +0000 (07:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Dec 2018 07:01:33 +0000 (23:01 -0800)
commitdeb5e22c949de7f41f2c3e582e7f59c8e9d4e25c
tree837a93287c1714bbd80c573e4d04284d64a9866b
parente2734a9b5f8169d2a22dfca95d45f1e969459a7e
selftests: forwarding: Add multicast routing test

Introduce basic testing for both IPv4 and IPv6 multicast. The test creates
an (S,G) type route, sends traffic and verifies traffic arrives when the
route is present and then verifies traffic does not arrive after deleting
the route.
This test requires smcroute - https://github.com/troglobit/smcroute which
is a tool that allows creation of static multicast routes.

Signed-off-by: Nir Dotan <nird@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/lib.sh
tools/testing/selftests/net/forwarding/router_multicast.sh [new file with mode: 0755]