[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20151213.235948.2125623235400954469.davem@davemloft.net>
Date: Sun, 13 Dec 2015 23:59:48 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: dsa@...ulusnetworks.com
Cc: netdev@...r.kernel.org, ja@....bg
Subject: Re: [PATCH net v2] net: Flush local routes when device changes vrf
association
From: David Ahern <dsa@...ulusnetworks.com>
Date: Thu, 10 Dec 2015 10:25:24 -0800
> The VRF driver cycles netdevs when an interface is enslaved or released:
> the down event is used to flush neighbor and route tables and the up
> event (if the interface was already up) effectively moves local and
> connected routes to the proper table.
>
> As of 4f823defdd5b the local route is left hanging around after a link
> down, so when a netdev is moved from one VRF to another (or released
> from a VRF altogether) local routes are left in the wrong table.
>
> Fix by handling the NETDEV_CHANGEUPPER event. When the upper dev is
> an L3mdev then call fib_disable_ip to flush all routes, local ones
> to.
>
> Fixes: 4f823defdd5b ("ipv4: fix to not remove local route on link down")
> Cc: Julian Anastasov <ja@....bg>
> Signed-off-by: David Ahern <dsa@...ulusnetworks.com>
Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists