From: Roopa Prabhu <[email protected]>
The first patch refactors some fib rule common add del netlink
processing code. fibrule selftest uses route get, so this
patch extends route get with a few matches.
Roopa Prabhu (5):
fib_rules: move common handling of newrule delrule msgs into
fib_nl2rule
net: fib_rules: add extack support
ipv4: support sport, dport and ip protocol in RTM_GETROUTE
ipv6: support sport, dport and ip protocol in RTM_GETROUTE
selftests: net: initial fib rule tests
include/net/fib_rules.h | 3 +-
include/uapi/linux/rtnetlink.h | 3 +
net/core/fib_rules.c | 469 ++++++++++++--------------
net/ipv4/fib_rules.c | 7 +-
net/ipv4/route.c | 75 +++-
net/ipv6/fib6_rules.c | 7 +-
net/ipv6/route.c | 29 ++
tools/testing/selftests/net/Makefile | 2 +-
tools/testing/selftests/net/fib_rule_tests.sh | 208 ++++++++++++
9 files changed, 535 insertions(+), 268 deletions(-)
create mode 100755 tools/testing/selftests/net/fib_rule_tests.sh
--
2.1.4