All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next v3 0/3] fib rule selftest
@ 2018-05-16  3:55 Roopa Prabhu
  2018-05-16  3:55 ` [PATCH net-next v3 1/3] ipv4: support sport, dport and ip_proto in RTM_GETROUTE Roopa Prabhu
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Roopa Prabhu @ 2018-05-16  3:55 UTC (permalink / raw)
  To: davem; +Cc: netdev, dsa, nikolay, idosch

From: Roopa Prabhu <roopa@cumulusnetworks.com>

This series adds a new test to test fib rules.
ip route get is used to test fib rule matches.
This series also extends ip route get to match on
sport and dport to test recent support of sport
and dport fib rule match.

v2 - address ido's commemt to make sport dport
ip route get to work correctly for input route
get. I don't support ip route get on ip-proto match yet.
ip route get creates a udp packet and i have left
it at that. We could extend ip route get to support
a few ip proto matches in followup patches.

v3 - Support ip_proto (tcp, udp and icmp) match in getroute.
dropped printing of new match attrs in ip route get, 
because ipv6 does not print it. And ipv6 currrently shares
the dump api with ipv6 notify and its better to not add them
to the notify api. dropped it to keep the api consistent between
ipv4 and ipv6 (though uid is already printed in the ipv4 case).

I am signing up for fib_rule_get test next :). Will probably need
some fixes around that area for consistency between ipv4 and ipv6.

Roopa Prabhu (3):
  ipv4: support sport, dport and ip_proto in RTM_GETROUTE
  ipv6: support sport, dport and ip_proto in RTM_GETROUTE
  selftests: net: initial fib rule tests

 include/uapi/linux/rtnetlink.h                |   2 +
 net/ipv4/route.c                              | 152 ++++++++++++-----
 net/ipv6/route.c                              |  25 +++
 tools/testing/selftests/net/Makefile          |   2 +-
 tools/testing/selftests/net/fib_rule_tests.sh | 224 ++++++++++++++++++++++++++
 5 files changed, 366 insertions(+), 39 deletions(-)
 create mode 100644 tools/testing/selftests/net/fib_rule_tests.sh

-- 
2.1.4

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2018-05-22 16:01 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-16  3:55 [PATCH net-next v3 0/3] fib rule selftest Roopa Prabhu
2018-05-16  3:55 ` [PATCH net-next v3 1/3] ipv4: support sport, dport and ip_proto in RTM_GETROUTE Roopa Prabhu
2018-05-16 18:37   ` David Miller
2018-05-16 20:30     ` Roopa Prabhu
2018-05-17  2:36       ` David Miller
2018-05-17 13:58         ` Roopa Prabhu
2018-05-16  3:55 ` [PATCH net-next v3 2/3] ipv6: " Roopa Prabhu
2018-05-16  3:55 ` [PATCH net-next v3 3/3] selftests: net: initial fib rule tests Roopa Prabhu
2018-05-22  5:15   ` [lkp-robot] [selftests] 3f45449746: kernel_selftests.net.fib_rule_tests.sh.fail kernel test robot
2018-05-22  5:15     ` kernel test robot
2018-05-22 16:01     ` Roopa Prabhu
2018-05-22 16:01       ` Roopa Prabhu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.