Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1815919imm; Tue, 2 Oct 2018 14:36:07 -0700 (PDT) X-Google-Smtp-Source: ACcGV61jMLA+OzVIM4/8pCoIGCWVMwXLY4PhAK/WBh/7m2acFj4hLqOi7Pd1L/3d0YEQCwk9Z1vs X-Received: by 2002:a63:9752:: with SMTP id d18-v6mr16262038pgo.405.1538516167195; Tue, 02 Oct 2018 14:36:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538516167; cv=none; d=google.com; s=arc-20160816; b=gF+deDmnq/wSUNq1zEskKx9TAiyfKS+8IQVPVYygRqngk88vBYIMnDX/4jVPRQXoCr VkxyKE3JAAZ3FBdTEnVbMnSGLuL/Y4v7AljL+vxbMx0o0u8s3hpJMfd7/5blGiFd409F Lt4/yLbV8pfpd+wW7FT3ORUYiDqN2aLw+a4zpxjkbjQC7EG8z9DK1Ew2KDZk3P9MFa80 Z7ZwRn6Gxg5ZKjbLyrRqVSoEmIhhYIH9K1JGMEAehkIfWItoxxBY5foljBSJntnymwN4 KqCnb6U5Yv+V7G7fkGGQ/ms61FV6ekPzOdc8AWFw/B1FLIevV/Ufy1nY+XomJH3pJBVU JnMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=MkpptIR46AaMmM4M7ZgkD3jcQMlx3VK209gZvad9kbg=; b=qg7yBiwqNsin1ZpFHuMo0KQEznldoKK1NKLoGGBIz7MTZDYnAUK+96pBuIXzN11e7r YL9ffTpQYYt25Y1FY52BL50FovkcQ8ukAxUmMJTCRpKXZObkxrZxs3bMbV/7DfDNrlLX SPIc6xoyQrq6oKnWmy9JTpLM4SEY99OweBPIC/iEhzOvCvF2oXXKxIffV8aPUgRJYeL4 7Xe+NEdA+D+FnLAsoTjEQaLNnrvd/C1jcOODAZv0+uf5Vu2Ovdw0d7VYxlqlbv1pkPSO FLDgZdfQ0UePv4PEFjOhVMFUTZ16bFyexoEKGmuhQc9Tlv2MvqeYERdpbh6CVpypqI62 cj0g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c8-v6si15443710pgd.379.2018.10.02.14.35.51; Tue, 02 Oct 2018 14:36:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728682AbeJCEVG (ORCPT + 99 others); Wed, 3 Oct 2018 00:21:06 -0400 Received: from Chamillionaire.breakpoint.cc ([146.0.238.67]:39054 "EHLO Chamillionaire.breakpoint.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726862AbeJCEVF (ORCPT ); Wed, 3 Oct 2018 00:21:05 -0400 Received: from fw by Chamillionaire.breakpoint.cc with local (Exim 4.89) (envelope-from ) id 1g7SKO-0006eK-V0; Tue, 02 Oct 2018 23:35:37 +0200 Date: Tue, 2 Oct 2018 23:35:36 +0200 From: Florian Westphal To: Wolfgang Walter Cc: Florian Westphal , Steffen Klassert , David Miller , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, christophe.gouault@6wind.com Subject: Re: Regression: kernel 4.14 an later very slow with many ipsec tunnels Message-ID: <20181002213536.sgjansduqenps2md@breakpoint.cc> References: <20180913135844.3ut6fxgx67t6ndtu@breakpoint.cc> <4708967.r5gU1pxIcW@stwm.de> <20181002145616.pwdhbmafgsihbxvm@breakpoint.cc> <4327972.7bla238zOs@stwm.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4327972.7bla238zOs@stwm.de> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Wolfgang Walter wrote: > Am Dienstag, 2. Oktober 2018, 16:56:16 schrieb Florian Westphal: > > I'm experimenting with per-dst inexact lists in an rbtree but > > this will take time. > > Hmm, I doubt that this is worth the effort. And certainly not that easy Well, I'm not going to send a revert of the flowcache removal. I'm willing to experiment with alternatives to a full iteration of the inexact list but thats it. > correctly done, as it still would have to obey the original order of the rules > (their priority). Except that neither the priority or the order in which it was added matters in case the selector doesn't match. I see no reason why we can't have inexact lists done per dst<->src pairs. > You may have a lot of rules of the form say > > 10.0.0.0/16 <=> 10.1.0.0/29 encrypt .... > 10.0.0.0/16 <=> 10.1.0.8/29 encrypt .... Sure. > Also, you get something like that > > 10.0.1.0/24 <=> 10.0.2.0/29 allow > 10.0.0.0/16 <=> 10.0.2.0/24 encrypt > 0.0.0.0 <=> 10.0.2.0/16 block > > And people may use source port and/or destination port or protocol > (tcp/udp/imcp) to further tailor there ruleset. Yes. 0.0.0.0/0 handling will require some extra consideration. So far I have not seen a show-stopper however.