From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net] ipv6: Honor specified parameters in fibmatch lookup Date: Thu, 21 Dec 2017 11:51:43 -0500 (EST) Message-ID: <20171221.115143.1125618919502623494.davem@davemloft.net> References: <20171220102825.28234-1-idosch@mellanox.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, roopa@cumulusnetworks.com, dsahern@gmail.com, mlxsw@mellanox.com To: idosch@mellanox.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:55348 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755149AbdLUQvp (ORCPT ); Thu, 21 Dec 2017 11:51:45 -0500 In-Reply-To: <20171220102825.28234-1-idosch@mellanox.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Ido Schimmel Date: Wed, 20 Dec 2017 12:28:25 +0200 > Currently, parameters such as oif and source address are not taken into > account during fibmatch lookup. Example (IPv4 for reference) before > patch: ... > The problem stems from the fact that the necessary route lookup flags > are not set based on these parameters. > > Instead of duplicating the same logic for fibmatch, we can simply > resolve the original route from its copy and dump it instead. > > Fixes: 18c3a61c4264 ("net: ipv6: RTM_GETROUTE: return matched fib result when requested") > Signed-off-by: Ido Schimmel Applied and queued up for -stable, thanks.