Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1112012rwi; Wed, 26 Oct 2022 10:54:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6ZB0QLwpfyUnN+KWOSN39W/cVGikgApeJZ5SYYugXsQKZSlwZ8m5dvSj921Dlt7SIiOQ39 X-Received: by 2002:a05:6a00:150b:b0:56b:e358:5c08 with SMTP id q11-20020a056a00150b00b0056be3585c08mr15384630pfu.37.1666806898663; Wed, 26 Oct 2022 10:54:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666806898; cv=none; d=google.com; s=arc-20160816; b=LbZROBVf/1EpJbofI2JiBMbKAtfwgrBn8Pk14M9/Qp0RNAQ5NxLQaNzXueVJ+QW7yc UX0UogJPOG7qRaqYjZa0nacqdxq433bWfX0V25eiV6c7ePZYXQErh3bJd0vJ8ty5k65s lQh4LUNDqIglTTiYPUetz/VlCp87VrZRYVrrgy6WDoWdZracFNjMFDJTq2iQMdbIB8ii wHjHmiF7v/iZSFdhBOAQub/bhpGCwE5x398r4D40wwrkJKI0tx1wtLn+ZI257N2U57TM sbkeh2cFRCPfZFw6iFQCZ8QJ/9b5Nr9awzzBnw5oDVLfEvux41nr2RoK0ICtOmuIzYJK T+1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=GOBxO2vTj4pQ4aIbyzSDDJOcDDeM1TEViOD8cCWt4BY=; b=WAdai3N/oD9EXqks/3xi9Fb7Nu0jV6/VdABjNGW6H3ZJyLaLQvZRtdgRL6oLMcyjEX cJbe+DNENAuFRLJXO+pFbG/mypwVqybzjF76E8XKyQpSUpxx0gOcT984XJATIOzN9tTx KApD5FqTwyXKW0+Q+iCsIlFoKGV1h+5MD8lUZWqJfiFyOt9Wv+gzuiDOf9+vFUPAYfyD u6oUUoMx4AEqBO6+i7iS8qPxZK4YMmvX3vowuwPaBEysGss7splf8LVfORRFOcZTINiL XqqeRpi44ZvqhIXA9Yqyc825ChHIQpIvS8y3Ik99181yhWPR3YOzLH8Pqp0mX2ChGA6J 4U/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="YJ/QJUMu"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k186-20020a6384c3000000b0041c8dfb29f0si6542115pgd.705.2022.10.26.10.54.47; Wed, 26 Oct 2022 10:54:58 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b="YJ/QJUMu"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233745AbiJZRgj (ORCPT + 99 others); Wed, 26 Oct 2022 13:36:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233672AbiJZRgi (ORCPT ); Wed, 26 Oct 2022 13:36:38 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13DB36567; Wed, 26 Oct 2022 10:36:37 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id o12so30192016lfq.9; Wed, 26 Oct 2022 10:36:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=GOBxO2vTj4pQ4aIbyzSDDJOcDDeM1TEViOD8cCWt4BY=; b=YJ/QJUMubvUEs1kkmB6WihInHwiD6FV3O6Ifh2QzAVOjzezDSzxfJaTKgNMNDwLMys Kz2vIYoYk8dgxtvyDC4LG08oOCwqHN3+gMG03ZUh/0YNSXHkO/2CAEkE0mlkUoDiQUaq goBalu2lRkjO5rGdTuyGLGWkViMOJvy40eVncP5EroDYj/D82rZhIrX/0qCvX6TyDYGM 6kONH+kWwAgIIGvK/gHX5BS/68BAMEaR8zLf/KE6AnS2R/ROydwimiNKLrQWUz7+YLSl YYeQoZyooY+uclKbVkxI21Da5qQw6TlRSzQPv+cZIeDTPKQf3KEf1npycUj9yUgdkTHY mIkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GOBxO2vTj4pQ4aIbyzSDDJOcDDeM1TEViOD8cCWt4BY=; b=1ih6LN/A0v3K4BISmeb2GP+06Ltf5Fb8KAZ7vifXLj4WwkNxJnBy1ObY6wl23lTOyO v9yFONbQyuaMOLCDKboLBtxGjknQlgzOGucjLl4POWjkRgYBYOeWuEMUYv+2NME/qetn jaoxsj3GS5/6ou2FE4svUgIe6s8qyIbNUONDXvpGygW+IllZZtG6TE4QIPbJvmEFXxNH 28huO5TOUcfIR2YUNEvdRorIt2Nibhot3Z25t86DtMMv/YQ2ErpAWR089SJIyrEeQ2kc IdY9pSzvAtIzmblNUlTpXORfQei3N/0ip4/cCqcFhLnTe4CEt3vVBgwu8724znC0cUet CT2A== X-Gm-Message-State: ACrzQf08dv2H8E6HXv1YzgpcGnguG5Gm0fkU4shoLMBfjazrGlGWxIBu GFHI5dZGes4V0gAecvmK9oI= X-Received: by 2002:ac2:4c82:0:b0:4a0:5825:a0ac with SMTP id d2-20020ac24c82000000b004a05825a0acmr15859970lfl.660.1666805795020; Wed, 26 Oct 2022 10:36:35 -0700 (PDT) Received: from smtpclient.apple (188-177-109-202-dynamic.dk.customer.tdc.net. [188.177.109.202]) by smtp.gmail.com with ESMTPSA id a11-20020a19e30b000000b0048a757d1303sm911652lfh.217.2022.10.26.10.36.33 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Oct 2022 10:36:34 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.200.110.1.12\)) Subject: Re: [PATCH] Periodically flow expire from flow offload tables From: Michael Lilja In-Reply-To: Date: Wed, 26 Oct 2022 19:36:22 +0200 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 Content-Transfer-Encoding: quoted-printable Message-Id: <25246B91-B5BE-43CA-9D98-67950F17F0A1@gmail.com> References: <20221023171658.69761-1-michael.lilja@gmail.com> <381FF5B6-4FEF-45E9-92D6-6FE927A5CC2D@gmail.com> To: Pablo Neira Ayuso X-Mailer: Apple Mail (2.3731.200.110.1.12) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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, I will look to use the flowable netlink interface. I have not yet, but = does this possible give the option of doing something like this: flowtable ft { hook ingress priority filter devices =3D { lan1, lan2, wan } flags offload, timeout } I would say the above it the most flexible, I just didn=E2=80=99t = explore that, it would kinda be like with =E2=80=99sets=E2=80=99 where = you can specify a timeout on when the entries should expire? With regards to the IPS_OPPLOAD clear in flow_offload_del() then I added = that because I saw some weird timeout side effects due to = flow_offload_fixup_ct(), but I can re-investigate, it could be that it = was early in my investigations and some of the other changes I made has = made it obsolete. Thanks Michael