Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp8241451rwi; Tue, 25 Oct 2022 04:25:16 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7WIBbwz4YaNj1kdh+mrIPKADGtF2CRtEjlmmbcUCgewJDsAQ1RwtsCST5eMNYh2XrR1lI7 X-Received: by 2002:a17:906:fe45:b0:791:9624:9e9f with SMTP id wz5-20020a170906fe4500b0079196249e9fmr32148758ejb.86.1666697105605; Tue, 25 Oct 2022 04:25:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666697105; cv=none; d=google.com; s=arc-20160816; b=RwP2Vp/Dt6AtElNE4DZH+cZVXC99nwhWdxNlBNmgwkua20qkwW2YZkfgZKA/nFBiza dM8OYMj87zKQxwI+F2Je0ALKwFI4X7Hxa2eSyZ6b4K35R8g+DUDQplzngPr+KnWNIY5k qppbyJk201ZhrBj4cc8mNzcDWTFmHy5BV86I4DZfPPXnLkBsLHvgFB9+1WdBmu0cAxVh duOZg9zt2hh/TsvbXkRmK0IEDdkWa+3asE4/at4m6st7CqMA/sDti4JXIpavl5DP4v9S eu59y7hhzWi8/tP3swasL45QA5dNMAOuqdwENylWVyjMUQev8K9LY/w8rfRljt7/fQvB 9zwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=BexgT44viOEsEG3WmoUw9Re1M0crRIKWrV63D3Vo0l0=; b=OgfLKQvKC3sja2LwEw2F1yeoAva87fylCZ/XWr5mbqi9a4J0pD5JyphjugRS0hh32B BmOBTHS1MYQru9w3uYnRwAbz+0dKCK+hpXnEnblIf5FXAb8KM+MEYoDIv8fiEp515DN7 uxbnujrIvqZxwcSFzm9iMAGoF3XF2uYu20eCKZ/oj87/osbpNFP9Fw9Vtl9rveNbg2uM /yQ5+mS3PqQ/lMNTzKoQDR3eURPzb94bPBPF8r3bZns/u1qyosOwA6xSW3DDjRAI7iQI nuATI/aHMUbN/lLAyQEhXHHvUsiUSSLB+/goHz57TnaJbSZ2h41aItxIPWOvoisMK5WW 271A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b15-20020a056402278f00b0045907cec72dsi2697888ede.320.2022.10.25.04.24.40; Tue, 25 Oct 2022 04:25:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232257AbiJYLF1 (ORCPT + 99 others); Tue, 25 Oct 2022 07:05:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231751AbiJYLFY (ORCPT ); Tue, 25 Oct 2022 07:05:24 -0400 Received: from mail.netfilter.org (mail.netfilter.org [217.70.188.207]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7C2DE7AB3D; Tue, 25 Oct 2022 04:05:12 -0700 (PDT) Date: Tue, 25 Oct 2022 13:05:08 +0200 From: Pablo Neira Ayuso To: Michael Lilja Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jonathan Corbet , Jozsef Kadlecsik , Florian Westphal , netdev@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org Subject: Re: [PATCH] Periodically flow expire from flow offload tables Message-ID: References: <20221023171658.69761-1-michael.lilja@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20221023171658.69761-1-michael.lilja@gmail.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Sun, Oct 23, 2022 at 07:16:58PM +0200, Michael Lilja wrote: > When a flow is added to a flow table for offload SW/HW-offload > the user has no means of controlling the flow once it has > been offloaded. If a number of firewall rules has been made using > time schedules then these rules doesn't apply for the already > offloaded flows. Adding new firewall rules also doesn't affect > already offloaded flows. > > This patch handle flow table retirement giving the user the option > to at least periodically get the flow back into control of the > firewall rules so already offloaded flows can be dropped or be > pushed back to flow offload tables. > > The flow retirement is disabled by default and can be set in seconds > using sysctl -w net.netfilter.nf_flowtable_retire How does your ruleset look like? Could you detail your usecase? Thanks.