OSDN Git Service

selftests: net: initial fib rule tests
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Tue, 22 May 2018 21:03:29 +0000 (14:03 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 May 2018 19:14:12 +0000 (15:14 -0400)
commit65b2b4939a643861ed1660eccd6dc0b5d8c78afa
tree77f7967d170900bd5a53c153f724d63d45d37386
parenteacb9384a3fec5ea1fd227f37d2b3bcd153d73a2
selftests: net: initial fib rule tests

This adds a first set of tests for fib rule match/action for
ipv4 and ipv6. Initial tests only cover action lookup table.
can be extended to cover other actions in the future.
Uses ip route get to validate the rule lookup.

Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/Makefile
tools/testing/selftests/net/fib_rule_tests.sh [new file with mode: 0755]