Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp565477rda; Sat, 21 Oct 2023 23:21:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHPZd0RpE352/krarIAeQH/jquHsEQU0/YPcuwlyBewiBu6xDJy3LZ/3oHf79vfMPrAiugZ X-Received: by 2002:a05:6870:648c:b0:1e9:934d:514c with SMTP id cz12-20020a056870648c00b001e9934d514cmr8972809oab.50.1697955677034; Sat, 21 Oct 2023 23:21:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697955676; cv=none; d=google.com; s=arc-20160816; b=Jrc3ARtOmQHcd61BS3iP//OngxzGqJ+2qtCOc3DVuED56HUD9id33vVnoFVUvXtNu5 c50lxVP0pMlGXVHKRIGsCV9lNtt+DhRbt85tHcP4kYSH3bFNz1juCw8ddNpb+sRaqru6 0mX3ZlTdjJ13x4kjTRTbI3FQTUn7hWp0Z0+pAyxjLZV0uBYWWdwMVmt3NnQ6/RHXH47u eRqvqSim+YmVQEay3ks7XPubGb9duFRLnM8uKYbaGg0oEd7KdjUsym/jxXhf8d2L/iNq UiZ7u4by6Jnb8ekjf8z2axuWX4ghoDzuhFlvgLv6n14QgqMV5sOs2E0g/dXJuQYBWnit X6yQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=KmTFA4Fe0lNk5XVCq7JFR5JNdHnS2vqAdz0xdH5/1WE=; fh=jMs/ibjVoqazJuo3OO5t5uR27rrQyhUB03wAQSLfsJ8=; b=HOM6M67I//KeEJQufzRWfRHVTdVBZ1eRyJnT1VA8Rwhq8cFdpuP9I+fn0Lb+jAWw2f sI50+nMkHUK/kKSrAbSVFPXDQeo93JLcEIbglhaEfs3adzj0P2BYQPphQYEzdAIqGWNb 8VgrgySKcEIPB16Ivs/FRPwRPr7YMLLxDZeJOTeSaGLsSOpYVfv+dR+vNJbuaPRfhHGO 0hHxkY4Zcy5jRLMBl37lQWv5qhUCP2EV+JhjpveNarJEPViulLWp6GZ3sTVqG598OxeY 9q8/Lam9LBdHZWyu/CZdqNNZqCJm9+m7CCz1FC6h3iRKOcX2MahctJaY16TBv4hbsCIw 82FA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jnY+vqL1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id ne9-20020a17090b374900b0027d7eebd4c0si4370492pjb.109.2023.10.21.23.21.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Oct 2023 23:21:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jnY+vqL1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 9B9D6804C51E; Sat, 21 Oct 2023 23:21:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231481AbjJVFxj (ORCPT + 99 others); Sun, 22 Oct 2023 01:53:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbjJVFxi (ORCPT ); Sun, 22 Oct 2023 01:53:38 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB60E126; Sat, 21 Oct 2023 22:53:35 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-507ac66a969so2851216e87.3; Sat, 21 Oct 2023 22:53:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697954014; x=1698558814; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=KmTFA4Fe0lNk5XVCq7JFR5JNdHnS2vqAdz0xdH5/1WE=; b=jnY+vqL1GDxEdxG0KiXeInpoB298qJkNKrinzzRQDl5nk7szxuVMDiP2PoCfbClXr3 tXXZEguDzGWMmih2q9+uoFdU6n29KSbQndMbKk9YurQNb2Ii8zx9BzdYkvoiyekv6Ibb Dxx9KfGiv2+SOhtf13OYPcZfbPAeh7K42ULfkopes03CmDhh3OWYdb2Gtxm9ND86UJQx bBU+5n8l6yUMyqaaO3EfyIy9BPWNzcHPpKRUCpqEt2qo9Jww2RAz0XVWSy4arUM37Z+T pZcWmiUIWF7KFw95CGyArhO2ejNEqSPjMt5DRrzIdhQeltDg470AI3Ofk89vyMsHY+aU Qn1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697954014; x=1698558814; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KmTFA4Fe0lNk5XVCq7JFR5JNdHnS2vqAdz0xdH5/1WE=; b=KFa9sv2K23OugebO3RqLB4YSZ3vGXJlJRLoZXNi2b2oH++ULBzDThqP8bVcTP4p/fG HGZf8i+fYcPxqZeqpm+e34p0UilzkfWT7i+AU/eU5oWA6jbAHGgrgTlcQEkxa9bKoQjh 6cs5BkxSqaCvXRMef3Sc594cbMscbaIEfraj7WU6PMapA48ClDIyHNgdBiv5732PZU29 2GawH73lnPRdlYK1D2zPQmgl/AY/K1+WotdHAJuKHa3oyk54B+aWQB/0KqKpjAaKzwsD UfyZ5utnur2iQSo8A00DjZ5ef+ZyeFQ4OwVs8y0a5VA/ozEKhDwr4fH6yE3+prmHQasv F0mQ== X-Gm-Message-State: AOJu0YxYGouBBfwM3TUzbQegwX3YfeWL70Pc/9hVeRFFmbbJbCTg+nkr APopM6hlCRB4eZhjkGTCeXkfNqEjN6QC5m/jW8g= X-Received: by 2002:ac2:5046:0:b0:507:cd53:5847 with SMTP id a6-20020ac25046000000b00507cd535847mr3555991lfm.56.1697954013635; Sat, 21 Oct 2023 22:53:33 -0700 (PDT) MIME-Version: 1.0 References: <20231020061158.6716-1-hkelam@marvell.com> <0329924b-a868-49b9-ab98-0b3f8bd545cb@intel.com> In-Reply-To: <0329924b-a868-49b9-ab98-0b3f8bd545cb@intel.com> From: Sunil Kovvuri Date: Sun, 22 Oct 2023 11:23:22 +0530 Message-ID: Subject: Re: [net-next] net: sched: extend flow action with RSS To: "Nambiar, Amritha" Cc: Hariprasad Kelam , Jamal Hadi Salim , "sridhar.samudrala@intel.com" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "kuba@kernel.org" , Sunil Kovvuri Goutham , "edumazet@google.com" , "pabeni@redhat.com" , "xiyou.wangcong@gmail.com" , "jiri@resnulli.us" , "David S. Miller" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Sat, 21 Oct 2023 23:21:14 -0700 (PDT) On Sat, Oct 21, 2023 at 1:43=E2=80=AFAM Nambiar, Amritha wrote: > > >> On Fri, Oct 20, 2023 at 2:12=E2=80=AFAM Hariprasad Kelam > >> wrote: > >>> > >>> This patch extends current flow action with RSS, such that the user > >>> can install flower offloads with action RSS followed by a group id. > >>> Since this is done in hardware skip_sw flag is enforced. > >> > >> Our typical rule for TC is we need s/w equivalence for offloads. How w= ould > >> this work in absence of offload? > >> > > [Hari] > > Our typical rule for TC is we need s/w equivalence for offloads. How wo= uld this work in absence of offload? > > > > This patch we added as an extension to receive queue selection in hardw= are. > > This patch "act_skbedit: skbedit queue mapping for receive queue" enabl= ed receive queue selection in hardware > > and skip_sw is enforced. > > > > Adding stakeholders of this patch, to get their opinion. > > sridhar.samudrala@intel.com amritha.nambiar@intel.com > > > > incase of RSS, hardware makes decisions about incoming packets before t= hey are even received in the queue. > > > > The skip_sw for skbedit receive queue action was enforced as the only > other alternative was a new hw-only action, or changing the action > mirred. See discussion at > https://lore.kernel.org/netdev/20220921132929.3f4ca04d@kernel.org/ > > Few questions WRT this patch: > How are the rss groups created? ethtool rss contexts? Any reason to use > TC to direct to rss contexts over using ethtool context ids? > Yes, RSS groups are created using ethtool. Ethtool ntuple is very limited in expressing flow rules and since the general direction is to use 'TC', we are attempting to add RSS action to 'TC'. > IIUC, skbedit is meant to only edit skb metadata such as mark, packet > type, queue mapping, priority etc. Even if this is a HW only action and > has no use in the stack, would skbedit be the right fit here? > The thought was to keep related actions like RQ, RSS group etc under one action ie skbedit. If that's not the right place we can add a separate action. Thanks, Sunil.