Return-Path: Received: from mail-wm0-f66.google.com ([74.125.82.66]:55467 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752478AbeB1NNa (ORCPT ); Wed, 28 Feb 2018 08:13:30 -0500 Received: by mail-wm0-f66.google.com with SMTP id q83so4906699wme.5 for ; Wed, 28 Feb 2018 05:13:29 -0800 (PST) Subject: Re: [PATCH net-next v2 4/5] ipv4: route: dissect flow in input path if fib rules need it To: Roopa Prabhu , davem@davemloft.net, netdev@vger.kernel.org Cc: dsa@cumulusnetworks.com, idosch@mellanox.com, pabeni@redhat.com References: <1519789965-3465-1-git-send-email-roopa@cumulusnetworks.com> <1519789965-3465-5-git-send-email-roopa@cumulusnetworks.com> From: Nikolay Aleksandrov Message-ID: <19cbfbe7-935a-c89e-2f7c-5e261012a2e2@cumulusnetworks.com> Date: Wed, 28 Feb 2018 15:13:27 +0200 MIME-Version: 1.0 In-Reply-To: <1519789965-3465-5-git-send-email-roopa@cumulusnetworks.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: netdev-owner@vger.kernel.org List-ID: On 28/02/18 05:52, Roopa Prabhu wrote: > From: Roopa Prabhu > > Dissect flow in fwd path if fib rules require it. Controlled by > a flag to avoid penatly for the common case. Flag is set when fib > rules with sport, dport and proto match that require flow dissect > are installed. Also passes the dissected hash keys to the multipath > hash function when applicable to avoid dissecting the flow again. > icmp packets will continue to use inner header for hash > calculations (Thanks to Nikolay Aleksandrov for some review here). > > Signed-off-by: Roopa Prabhu > --- > include/net/ip_fib.h | 27 ++++++++++++++++++++++++++- > include/net/netns/ipv4.h | 1 + > net/ipv4/fib_rules.c | 8 ++++++++ > net/ipv4/fib_semantics.c | 2 +- > net/ipv4/route.c | 43 +++++++++++++++++++++++++++++-------------- > 5 files changed, 65 insertions(+), 16 deletions(-) > Acked-by: Nikolay Aleksandrov