From: Eric Dumazet Subject: Re: [Patch net] ipv4: restore rt->fi for reference counting Date: Tue, 09 May 2017 15:52:47 -0700 Message-ID: <1494370367.7796.92.camel@edumazet-glaptop3.roam.corp.google.com> References: <1493934857-6693-1-git-send-email-xiyou.wangcong@gmail.com> <20170508.143557.105629611489969352.davem@davemloft.net> <1494288080.7796.59.camel@edumazet-glaptop3.roam.corp.google.com> <20170508.212211.1291611254198273979.davem@davemloft.net> <1494296302.7796.61.camel@edumazet-glaptop3.roam.corp.google.com> <1494348962.7796.88.camel@edumazet-glaptop3.roam.corp.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: David Miller , Linux Kernel Network Developers , Andrey Konovalov , Eric Dumazet To: Cong Wang Return-path: Received: from mail-pg0-f66.google.com ([74.125.83.66]:33232 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751040AbdEIWwt (ORCPT ); Tue, 9 May 2017 18:52:49 -0400 Received: by mail-pg0-f66.google.com with SMTP id s62so1666383pgc.0 for ; Tue, 09 May 2017 15:52:49 -0700 (PDT) In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On Tue, 2017-05-09 at 15:07 -0700, Cong Wang wrote: > On Tue, May 9, 2017 at 1:56 PM, Cong Wang wrote: > > Wait... if we transfer dst->dev to loopback_dev because we don't > > want to block unregister path, then we might have a similar problem > > for rt->fi too, fib_info is still referenced by dst, so these nh_dev's still > > hold the dev references... > > > > I finally come up with the attach patch... Do you mind to give it a try? I will, but this might be delayed by a few hours. In the mean time, it looks like you could try adding the following to your .config ;) CONFIG_IP_ROUTE_MULTIPATH=y