From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Ahern Subject: Re: [PATCH net] ipv6: no need to return rt->dst.error if it is not null entry. Date: Wed, 26 Jul 2017 12:49:53 -0600 Message-ID: <64377a01-38df-6d43-16a4-401d426fb9b2@gmail.com> References: <1500562286-14312-1-git-send-email-liuhangbin@gmail.com> <20170724030907.GC2938@leo.usersys.redhat.com> <20170725000849.GD2938@leo.usersys.redhat.com> <01b1cd24-ab81-3276-f253-70eef20e550b@gmail.com> <20170725073202.GE2938@leo.usersys.redhat.com> <9e198c2a-c026-f4bd-f190-8d5a887efe7f@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: Hangbin Liu , Cong Wang , network dev To: Roopa Prabhu Return-path: Received: from mail-pg0-f46.google.com ([74.125.83.46]:36171 "EHLO mail-pg0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751053AbdGZStz (ORCPT ); Wed, 26 Jul 2017 14:49:55 -0400 Received: by mail-pg0-f46.google.com with SMTP id 125so87826761pgi.3 for ; Wed, 26 Jul 2017 11:49:55 -0700 (PDT) In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On 7/26/17 12:27 PM, Roopa Prabhu wrote: > agreed...so looks like the check in v3 should be > > > + if ( rt == net->ipv6.ip6_null_entry || > + (rt->dst.error && > + #ifdef CONFIG_IPV6_MULTIPLE_TABLES > + rt != net->ipv6.ip6_prohibit_entry && > + rt != net->ipv6.ip6_blk_hole_entry && > +#endif > + )) { > err = rt->dst.error; > ip6_rt_put(rt); > goto errout; > I don't think so. If I add a prohibit route and use the fibmatch attribute, I want to see the route from the FIB that was matched.