Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp582362rda; Sun, 22 Oct 2023 00:21:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFVARv28vENAHGNk8rL5juJVSNK9Jnh7lcFlkCnisfk9ubfoIk68Is55oB4IVyKnXp8BSwx X-Received: by 2002:a17:90b:510c:b0:27d:9f6:47a3 with SMTP id sc12-20020a17090b510c00b0027d09f647a3mr6300715pjb.31.1697959261555; Sun, 22 Oct 2023 00:21:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697959261; cv=none; d=google.com; s=arc-20160816; b=NgNe+wetNHBwDvVr5Erzeq0ZgBglAReOC9k5YYkvvKZj0oaKyo+ZSvB7To+GsoXzHM tIDdK9/bsTvXItnZS55fI4hv3lvvUkwuW6n/oQoOH7SM9ZhncblwWzcvFSTVt9HmKldf k6cxDOJkrl4DCr5qxaRJmUCyl0ciG2dD8FaaEY3EP6tT34eWmdBUotzbA6qPM341/YF2 BROBmz6nmMA5MHNEU3FJjljMhHs0qkzSQYeJDi+eu+zOvYJU+cB2gvQsnGsyn/XWMnnQ wX3pUL8tsZN5FpS/0RSWrTH5i4dQ/xWNbT2vUT/YckVR628EHbMgCC4lYeCHZkU9jelD 2tjw== 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=KTMy4jRMjdPSok66h5pvXOKtTYMVZRMrenI1NsIR3i8=; fh=wABQ71RRYTFz5CWYb/vNU/7Mp9FX7VhJ6VeyUpYKmcY=; b=G+Clg7yyj6ut/E17I99sMqfS4UjmhpFDM3GIWJLCmIiSVJcYHnhruNfGEen82KgS3y 6aq2dMayscRUmY6Wuf6bxHUslwrXw41SxxVivr4ZKKjjFjCjjBYHxh7A/XpjRDcuSAEc kxv+qNmZzr2pgsmrLGXaZht6g2CVSX192U8P3Gh595LPaUtBPYekVEOe6xmiXyIygh9w Hijjw8dyYCZkbLSmuG/m+bXT3dPGnY+Y8PPiP+YCXo0hwTjPAj29MNG6Sxsszd8A0z72 jTe8PN3A/rX6mTkcJZiMB/R/A7kO9Amb0uCoKf8ZxeF9x95lHu6n076plWSEHbTgER7s 7UVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Y5undhit; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id m3-20020a17090b068300b00268278c51e3si6684467pjz.49.2023.10.22.00.21.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Oct 2023 00:21:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Y5undhit; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id B2AD580967AC; Sun, 22 Oct 2023 00:20:58 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229574AbjJVHU1 (ORCPT + 99 others); Sun, 22 Oct 2023 03:20:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbjJVHU0 (ORCPT ); Sun, 22 Oct 2023 03:20:26 -0400 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D76E5C2; Sun, 22 Oct 2023 00:20:20 -0700 (PDT) Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-1c9d922c039so18330515ad.3; Sun, 22 Oct 2023 00:20:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697959220; x=1698564020; 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=KTMy4jRMjdPSok66h5pvXOKtTYMVZRMrenI1NsIR3i8=; b=Y5undhitor7bZPDwO4DCLA/lgmQzw3VUrI5h7jENG2ht22tUsampundGD/KNPkARpq o00GVWCVXmcYq/LbgGwNyJ0UBOP5KmPXtPIXN4XhsGCcvl7rxhH+AlseZYa9pT0qH1ZV t10Yde9eteVZcRBqM8a7LtqSt+TlQWA3ercIOM3zGJWzpUXq1dF6SdI2yHDlSib1IeJz dvRxNOzyimeFcBSn8Thx63Wmjl4+ZMQ+FCVtR6i/bU1uHKi/zG5kmJuli2Nwyai2npvU tFvlCtJvcgaolz4czxkEtZNVjTc7HSBzOP2OP9XK9WZZQ24qzPavQwvpWZZwIgk1bHgU szOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697959220; x=1698564020; 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=KTMy4jRMjdPSok66h5pvXOKtTYMVZRMrenI1NsIR3i8=; b=TzlPxyQtazuLFv0upSsHHYFd9qEv4zf0r/tu6SmhDfFa0Qmucv6q1j5ZsZEaDLTHXv hzA6h9OKa5H3qTyWebJuOxPfparvmZm2ljjPQ9Z4ZpKK7PB4nK5gvzlXGUcQL+/MSk+0 gTqzm4g8dHOOwQtkFSSlJd2L24t7wxrioVQKk4w2nHLXZFvPOIGMo+A2F1ASqbfp4ztd vdKOgxSgcvcLp1SbyR1+ba81mMNmHXLRyAGKbg6Tfcr/24ixriPKY0sjyoxLciOCyXMJ 28BGpOaWPVs7jYYZXRONwgyXxiglGtM6gFK380Xrxfpi9wHf/3sRXd9XiAPYTCgXYyYK 54NQ== X-Gm-Message-State: AOJu0YzKS4Oy6TMsO6aaqGvDlDmRuIMrj2uIanBx+3bvkiWX6Flo6eyk 9ZLY31Ux+lg9Ylnl3NV+kYXpIxY00vbS135cFag= X-Received: by 2002:a17:902:ec88:b0:1c7:733b:27c7 with SMTP id x8-20020a170902ec8800b001c7733b27c7mr6767226plg.56.1697959220188; Sun, 22 Oct 2023 00:20:20 -0700 (PDT) MIME-Version: 1.0 References: <20231020061158.6716-1-hkelam@marvell.com> <0329924b-a868-49b9-ab98-0b3f8bd545cb@intel.com> In-Reply-To: From: Dave Taht Date: Sun, 22 Oct 2023 00:20:06 -0700 Message-ID: Subject: Re: [net-next] net: sched: extend flow action with RSS To: Sunil Kovvuri Cc: "Nambiar, Amritha" , 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 fry.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 (fry.vger.email [0.0.0.0]); Sun, 22 Oct 2023 00:20:58 -0700 (PDT) On Sat, Oct 21, 2023 at 10:53=E2=80=AFPM Sunil Kovvuri wrote: > > 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= would > > >> this work in absence of offload? > > >> > > > [Hari] > > > Our typical rule for TC is we need s/w equivalence for offloads. How = would this work in absence of offload? > > > > > > This patch we added as an extension to receive queue selection in har= dware. > > > This patch "act_skbedit: skbedit queue mapping for receive queue" ena= bled 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= they are even received in the queue. Is there any way to do a LPM to queue match on inbound? > > > > > > > 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. > --=20 Oct 30: https://netdevconf.info/0x17/news/the-maestro-and-the-music-bof.htm= l Dave T=C3=A4ht CSO, LibreQos