From: David Ahern Subject: Re: [PATCH RFC net-next 1/4] ipv4: fib_rules: support match on sport, dport and ip proto Date: Mon, 12 Feb 2018 16:03:38 -0700 Message-ID: <4aeb39b9-e219-675d-7da3-c813cfa669a3@cumulusnetworks.com> References: <1518387989-33735-1-git-send-email-roopa@cumulusnetworks.com> <1518387989-33735-2-git-send-email-roopa@cumulusnetworks.com> <1518468573.3715.163.camel@gmail.com> <20180212.160510.620630476824737121.davem@davemloft.net> <1518472499.3715.165.camel@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: roopa@cumulusnetworks.com, netdev@vger.kernel.org, nikolay@cumulusnetworks.com To: Eric Dumazet , David Miller Return-path: Received: from mail-it0-f50.google.com ([209.85.214.50]:55557 "EHLO mail-it0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932336AbeBLXDl (ORCPT ); Mon, 12 Feb 2018 18:03:41 -0500 Received: by mail-it0-f50.google.com with SMTP id b66so8816189itd.5 for ; Mon, 12 Feb 2018 15:03:40 -0800 (PST) In-Reply-To: <1518472499.3715.165.camel@gmail.com> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 2/12/18 2:54 PM, Eric Dumazet wrote: > On Mon, 2018-02-12 at 16:05 -0500, David Miller wrote: >> From: Eric Dumazet >> Date: Mon, 12 Feb 2018 12:49:33 -0800 >> >>> Any setup with about 20 rules to be evaluated (per packet cost) will >>> feel the pain... >>> >>> I wonder if we could JIT/eBPF this thing. >> >> That's true for the software implementation angle. >> >> But I bet anyone actually using this thing will get it hardware >> offloaded. > > I wish :) > > We had project/teams using different routing tables for each vlan they > setup :/ VRF per VLAN, only 1 rule needed > > Setups with tunnels are doubly impacted, it is really easy to reach 20 > evaluated rules per incoming and outgoing packet. > >