From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Ahern Subject: [PATCH net-next 0/3] net: flush neighbor entries when carrier is off Date: Sun, 5 Nov 2017 22:57:50 -0800 Message-ID: <1509951473-25990-1-git-send-email-dsahern@gmail.com> Cc: jhs@mojatatu.com, David Ahern To: netdev@vger.kernel.org Return-path: Received: from mail-pg0-f66.google.com ([74.125.83.66]:46380 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750727AbdKFG6C (ORCPT ); Mon, 6 Nov 2017 01:58:02 -0500 Received: by mail-pg0-f66.google.com with SMTP id k7so7507456pga.3 for ; Sun, 05 Nov 2017 22:58:02 -0800 (PST) Sender: netdev-owner@vger.kernel.org List-ID: Commit a6db4494d218c ("net: ipv4: Consider failed nexthops in multipath routes") added support for checking neighbor state when selecting a path for multipath route lookups. It works but incurs a delay waiting for the neighbor entry to timeout. Improve the path selection by flushing non-permanent neighbor entries when carrier is off. David Ahern (3): net: neigh: Add helper to flush entries on carrier down net: ipv4: flush neighbor entries when carrier is off net: ipv6: flush neighbor entries when carrier is off include/net/neighbour.h | 1 + net/core/neighbour.c | 26 ++++++++++++++++++++++---- net/ipv4/fib_frontend.c | 7 +++++-- net/ipv6/addrconf.c | 3 +++ 4 files changed, 31 insertions(+), 6 deletions(-) -- 2.1.4