From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julian Anastasov Subject: [PATCHv2 net 0/2] ipv4: fix problems from the RTNH_F_LINKDOWN introduction Date: Mon, 26 Oct 2015 23:59:11 +0200 Message-ID: <1445896753-14464-1-git-send-email-ja@ssi.bg> Cc: netdev@vger.kernel.org, Andy Gospodarek To: David Miller Return-path: Received: from ja.ssi.bg ([178.16.129.10]:34393 "EHLO ja.ssi.bg" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751626AbbJZV7n (ORCPT ); Mon, 26 Oct 2015 17:59:43 -0400 Sender: netdev-owner@vger.kernel.org List-ID: Fix two problems from the change that introduced RTNH_F_LINKDOWN flag. The first patch deals with the removal of local route on DOWN event. The second patch makes sure the RTNH_F_LINKDOWN flag is properly updated on UP event because the DOWN event sets it in all cases. v1->v2: - forgot to add ifconfig dummy0 down in the test case - split to 2 patches Julian Anastasov (2): ipv4: fix to not remove local route on link down ipv4: update RTNH_F_LINKDOWN flag on UP event include/net/ip_fib.h | 2 +- net/ipv4/fib_frontend.c | 13 +++++++------ net/ipv4/fib_semantics.c | 18 +++++++++++++++--- 3 files changed, 23 insertions(+), 10 deletions(-) -- 1.9.3