From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xin Long Subject: [PATCHv3 net-next 0/2] route: add support and selftests for directed broadcast forwarding Date: Mon, 23 Jul 2018 19:51:52 +0800 Message-ID: Cc: davem@davemloft.net, David Ahern , Davide Caratti , idosch@idosch.org To: network dev Return-path: Received: from mail-pg1-f194.google.com ([209.85.215.194]:40779 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387816AbeGWMww (ORCPT ); Mon, 23 Jul 2018 08:52:52 -0400 Received: by mail-pg1-f194.google.com with SMTP id x5-v6so210646pgp.7 for ; Mon, 23 Jul 2018 04:52:02 -0700 (PDT) Sender: netdev-owner@vger.kernel.org List-ID: Patch 1/2 is the feature and 2/2 is the selftest. Check the changelog on each of them to know the details. v1->v2: - fix a typo in changelog. - fix an uapi break that Davide noticed. - flush route cache when bc_forwarding is changed. - add the selftest for this patch as Ido's suggestion. v2->v3: - fix an incorrect 'if check' in devinet_conf_proc as David Ahern noticed. - extend the selftest after one David Ahern fix for vrf. Xin Long (2): route: add support for directed broadcast forwarding selftests: add a selftest for directed broadcast forwarding include/linux/inetdevice.h | 1 + include/uapi/linux/ip.h | 1 + include/uapi/linux/netconf.h | 1 + net/ipv4/devinet.c | 11 ++ net/ipv4/route.c | 6 +- .../selftests/net/forwarding/router_broadcast.sh | 215 +++++++++++++++++++++ 6 files changed, 234 insertions(+), 1 deletion(-) create mode 100755 tools/testing/selftests/net/forwarding/router_broadcast.sh -- 2.1.0