From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roopa Prabhu Subject: [PATCH net-next v2 0/3] fib rule selftest Date: Sun, 6 May 2018 17:59:44 -0700 Message-ID: <1525654787-21990-1-git-send-email-roopa@cumulusnetworks.com> Cc: netdev@vger.kernel.org, dsa@cumulusnetworks.com, nikolay@cumulusnetworks.com, idosch@mellanox.com To: davem@davemloft.net Return-path: Received: from mail-pf0-f194.google.com ([209.85.192.194]:39793 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751880AbeEGA7w (ORCPT ); Sun, 6 May 2018 20:59:52 -0400 Received: by mail-pf0-f194.google.com with SMTP id a22so7378511pfn.6 for ; Sun, 06 May 2018 17:59:52 -0700 (PDT) Sender: netdev-owner@vger.kernel.org List-ID: From: Roopa Prabhu 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. Roopa Prabhu (3): ipv4: support sport and dport in RTM_GETROUTE ipv6: support sport and dport 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