Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3041853rwb; Fri, 11 Nov 2022 20:46:39 -0800 (PST) X-Google-Smtp-Source: AA0mqf44NJsk7zogsuXhQB/niOTlvrUSom9xPf87R16bJhUDxihefnBP0Ixe/PA/OLMcGkDMu+iQ X-Received: by 2002:a17:902:f20c:b0:186:fe2d:f3cb with SMTP id m12-20020a170902f20c00b00186fe2df3cbmr5356659plc.132.1668228399498; Fri, 11 Nov 2022 20:46:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668228399; cv=none; d=google.com; s=arc-20160816; b=SAmZw+HOtUeAFq1PVqdSjE37CKyGj6v5nTxSQACeEPq+rjHgA4LksBYz3EAL3j55rX 57OT4IiI+5mMXFTYBDGz0l9+9Wa/Gietr5BOEDF4ipFabOnX0w2amWwTOu+dUfvlEOEx uCXR/z8Et/7FpGT18fL9Cra56PiPeMVkeJj54qribEK6SySpsYipDukK85O2DNLjc3pX WmR4bXh+9Ji1G7/6bCfbqmpWjZTWx453KO+xvq8B2CpMsIDwYI/HTkcMgCWCWc/xNPk7 FE0R7b55qUBDCeevqZhrEO95kLG0gg8iYk0QPiTAJTuTci22NTwG7oewicJa1Vd0CkFw w7aQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=EBlCpgBnNdI9ZinSRuVqiqhM75tqO7ekqihYJFVrp+k=; b=wuBQBPU0vF7gB+A5P98dgEhkTckFCIjkGQwOjVfoIgAuDfPtBbkeo2eyxRiFQR+zYQ XbuWBEWoKeolqdIkD0eiwsrtMBHiTq/znvIA6Ou1LnhZfapCeeROSM8OIa4EMEiZopxG a5hMpH1IGPbRGaNtsEZeyIhupmn/4+OQmFZh1uRwom7b/jr31Gi2CZDG3iBNc0VOtWSA +q4bJ4YXUwGD0dFYvP2Ne9Ha/4dEX7qnITkrqYQ0Y1/q81ooF3j5ccWmH6LTBfgN1ELI 2qh8CsyVio4MmmGCgXeshctdvU622vZ5k3ANBbyEfI9dWrrbk2Gg6DKws/kSk47V2DL5 BKBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="f/xiNtX4"; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y31-20020a634b1f000000b004612e8df649si4175518pga.784.2022.11.11.20.46.28; Fri, 11 Nov 2022 20:46:39 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b="f/xiNtX4"; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234090AbiKLElP (ORCPT + 90 others); Fri, 11 Nov 2022 23:41:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232918AbiKLElN (ORCPT ); Fri, 11 Nov 2022 23:41:13 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3E15BCB7; Fri, 11 Nov 2022 20:41:02 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id A4332B827CF; Sat, 12 Nov 2022 04:41:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC4C2C433D6; Sat, 12 Nov 2022 04:40:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668228060; bh=EBlCpgBnNdI9ZinSRuVqiqhM75tqO7ekqihYJFVrp+k=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=f/xiNtX4Y50G+0xNYtowYC7HvTdUZlT0DNORQFM06QZtnaVlGTD2LDvTVqdwDCxqb lFRkbDv26tjKFpkcBJNgX4OHlbvHqZEOOHnQCNsdypSJwLkSyX7X6f2SE/B+/IdgOx Rer1opj26libyYPSIxEQbyqQhBPdnUK3os+vjD2CuEo/14IXoJnE7ssF+D6UAFE8jR jIZpspMjWx5HpUPgwq3y8fOK+0jLTR5HYFcBHKAs9a7a5OORYXxUY3MAiozkN38U/7 klRZXQZgRGgplZnrMG8hRPXGMriyGPtggRDf9lRIVmJ9zaiGITQXYPODcIInIbj0il tGaf1u52ihFxw== Date: Fri, 11 Nov 2022 20:40:59 -0800 From: Jakub Kicinski To: Vladimir Oltean Cc: Felix Fietkau , netdev@vger.kernel.org, "David S. Miller" , Eric Dumazet , Paolo Abeni , Andrew Lunn , Vivien Didelot , Florian Fainelli , linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v3 1/4] net: dsa: add support for DSA rx offloading via metadata dst Message-ID: <20221111204059.17b8ce95@kernel.org> In-Reply-To: <20221111233714.pmbc5qvq3g3hemhr@skbuf> References: <20221110212212.96825-1-nbd@nbd.name> <20221110212212.96825-2-nbd@nbd.name> <20221111233714.pmbc5qvq3g3hemhr@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 On Sat, 12 Nov 2022 01:37:14 +0200 Vladimir Oltean wrote: > Jakub, what do you think? Refcounting or no refcounting? I would not trust my word over Felix's.. but since you asked I'd vote for refcounted. There's probably a handful of low level redirects (generic XDP, TC, NFT) that can happen and steal the packet, and keep it alive for a while. I don't think they will all necessarily clear the dst.