Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp667741lql; Mon, 11 Mar 2024 13:44:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV+YBfhVucgGdIlyLZ9KKv283ub/MS0YCXh9LrBWquEbxoxMQjgk2a9RFYW10/0TIs+HpJKOkqhNIw096W0b8S5PuXWoEBfJV4yKIwG6Q== X-Google-Smtp-Source: AGHT+IGX0t2m+D9dHbErVmYTgXNLts1oqhDbSf7xlVqqg8hse0pV7u9Hupv4L+/cvl5hWaOTYnYO X-Received: by 2002:a17:902:d486:b0:1dd:7d20:63ef with SMTP id c6-20020a170902d48600b001dd7d2063efmr8337561plg.11.1710189886972; Mon, 11 Mar 2024 13:44:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710189886; cv=pass; d=google.com; s=arc-20160816; b=IIIRbldeLhAJjbZ5b3KnsHhNmR0trQS3t8ZRf3Eq0unSLccyAu/dmHsOl5NlsjmQhy Y/nKGPOESiIIFPw3KF77Mc3SlSm36go2p1FQaw2JE65FX6F3v4sxrhhlhcLDpU0NcY07 I2I0fOu90sxv4hRyEDtKAAzfNO88MkLwxeuM/O7DDGJlIDMGZYdk7+7A0u/RN9itP4Uf BPXiAFv6uUFIPS2EF08Olqw0A7+7NtAtsnFFqUm2VaQ87PJwV0R9djJzf/OatGtjVg60 SB6rGBVXipgZxoByYYzCrEPAzNyDiyrCJ3yQI/zH+io1MVlv7nyc0Kd5fFlTaJtgbxwy N3hQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=v9mnrmGQ2ODVs4tHc0LT+f2J+naNPQ7p7iebES1a3Xg=; fh=zrh6i9LvCzlpKMEOeQpfBwL3rZi6D80BSInWJ3yR+F0=; b=atXtgShr3n4554jv/upgbyxuQwOpC43Na1WBAVcud5u8GoloLVip9ae0BP4hf5H6jC 1s1aojQiqdhN2h0p2plWIDnmigKRgd4ONLN+L6NYGx00z+ir7JMikbueEyBPzqV9mutZ y1XterI3ZnLKGLWP0ebU+TF+zBMN7Y2lt1EHjaTEyv1lqYjBU/KGMqnxzvi8ZvGJi0a/ YNGd4R1wriURas2b5gxNwXsdQk35x7X1NyA4iRyGDFyAYpmRNb695z1xR2rpmWfSYhAH pGQkclehZ/FN6MmQuLZWbDdh5oiA8v3lOVuYoTdVqjQkvDfPJdxYDo4s0bk+YbbLJ0Kh 5ggQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="HKI/BRla"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-99529-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99529-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id n8-20020a170902d2c800b001dd0803a2fcsi5704622plc.58.2024.03.11.13.44.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 13:44:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-99529-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="HKI/BRla"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-99529-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99529-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id A3F7C281A01 for ; Mon, 11 Mar 2024 20:44:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B85D754744; Mon, 11 Mar 2024 20:44:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HKI/BRla" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DAB6D3C0C; Mon, 11 Mar 2024 20:44:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710189877; cv=none; b=FCToJvoTGTp6TRf1v8z9yK/xu5QehBjFR8S0DuFLGxdrt5rR9UjCKyuGIBpjRGulEjJkSzJ5gQ4SKk03qMY9ETMFG+kT05Ss7nfTX8iuqyjzcwSqKCYLY14x1DdBHuHUVZI6APQclAIE0ITWXHA8nRxDY4LTv9cOmIrYesK3Yvk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710189877; c=relaxed/simple; bh=fcJhJ0MWCqBw8chXp9vtaAHiJeUJVUgJd4Am03lKKY8=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=tPsGWd7BEwu5aQbsyPH74y2iu7LKZJIJWNTiiL2crUZalC/g/4w/GumNOg+crP4P9uw72/i4E7SL+8QbMsxKKWOMlm4aQ9DVBxuvwTcI2Pg7rE5mYX0fODgbOnMbpGMAq/9vjK1AXjYhZQ7HkVrL+l2wzKc1vVtR2a14pV5T4YQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HKI/BRla; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6510AC433C7; Mon, 11 Mar 2024 20:44:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710189876; bh=fcJhJ0MWCqBw8chXp9vtaAHiJeUJVUgJd4Am03lKKY8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=HKI/BRlaYOLgO54Igy/9p4OLYto4NXnD0zMA2B+E6q9lunvb+oDIz/ttQoiSnPfMg xpPgG/W7cTne0xDiMcRLUBh5IcD65aAbWFyVdS5g8TEdYfr3dD8KZCBvd8YF0//cPm zeVzTK3wkjox4uGnlE5vT/yMJasMJY3D9rSRfEVS6wLgCPAoXUTSMzrbUkNSxwE3Kc R2yIxFi6LbcRsD7KJuns4iHm/AB8rRiCy7Cln/00OYyB6wlHvCjeOhx7jYq2e5EXVK J2e8Pk/Cv5YIWdFh8+xwkwlFFQbA6ki1mLYc06+hpBjlwXmydC3OOnp1tK6H3BsDZV 4NYG91Gx6B2dg== Date: Mon, 11 Mar 2024 13:44:35 -0700 From: Jakub Kicinski To: =?UTF-8?B?QXNiasO4cm4=?= Sloth =?UTF-8?B?VMO4bm5lc2Vu?= Cc: Jamal Hadi Salim , Cong Wang , Jiri Pirko , Daniel Borkmann , Vlad Buslov , Marcelo Ricardo Leitner , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, llu@fiberby.dk Subject: Re: [PATCH net-next v3 0/3] make skip_sw actually skip software Message-ID: <20240311134435.19393f98@kernel.org> In-Reply-To: <20240306165813.656931-1-ast@fiberby.net> References: <20240306165813.656931-1-ast@fiberby.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, 6 Mar 2024 16:58:08 +0000 Asbj=C3=B8rn Sloth T=C3=B8nnesen wrote: > During development of flower-route[1], which I > recently presented at FOSDEM[2], I noticed that > CPU usage, would increase the more rules I installed > into the hardware for IP forwarding offloading. >=20 > Since we use TC flower offload for the hottest > prefixes, and leave the long tail to the normal (non-TC) > Linux network stack for slow-path IP forwarding. > We therefore need both the hardware and software > datapath to perform well. >=20 > I found that skip_sw rules, are quite expensive > in the kernel datapath, since they must be evaluated > and matched upon, before the kernel checks the > skip_sw flag. >=20 > This patchset optimizes the case where all rules > are skip_sw, by implementing a TC bypass for these > cases, where TC is only used as a control plane > for the hardware path. Linus tagged v6.8 and the merge window for v6.9 has started. This feels a bit too risky for me to apply last minute, could you repost in 2 weeks once the merge window is over? --=20 pw-bot: defer