Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp976194rdb; Fri, 20 Oct 2023 05:17:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHeQHs7jBW+tjI4rOuOFefdVKiwObKRhs/JMVw+jOc3T6FwJPpuIHtty7GEZbDMmVc4Vzg4 X-Received: by 2002:a05:6300:8088:b0:161:3013:b499 with SMTP id ap8-20020a056300808800b001613013b499mr1540667pzc.60.1697804243583; Fri, 20 Oct 2023 05:17:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697804243; cv=none; d=google.com; s=arc-20160816; b=ZMN5YIJujpDZeMccV147TtYO9RgUm/ACp+geR3U4wuokdwgLYnCnH4Huk/57OhVrBN KyiOI954pXfo0Tarl9KC1T8e84kP5tUZQWHhMLTU2zWBpAxXjOV6ft1KL+ygLCrHtFTI +UU6cridRACxFrJmo9wgJCmBLtZto7VH/Dw4dEOfyS5HtYj/w/USH38V3QMhIdWgSG6v DctpukDie7GyFlQDfFJHe6fQD9pGtdIq1t0KyEwvIBiNqt7Kd65keEyw/QsaltxJWrw8 LyAbOTfeepA5SI5UvNASwrizftLDPctzvNT1lty3lcgGWZFNwKvER8scCxHThoHemFkP 4GhA== 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=WeRAWwn+GIOAPONO5Nd1FGLFR4N0zLDGXgNu8ADyK6g=; fh=4PP8mmEnCe3nmNgLB8PNZzlkjFl2ysfldQeARCWDB7I=; b=P5mWtltjyIcIDWeCGgr2n1skKRFh9igWy7c5tDDIKPSSGQJ/yysdyIFJ55ewqpG5WG qw7VzH0cr1vaJFc/UmGnc6f0gbUYsF1I66b4lDlD0wE3AUtD11mVFkhvxaVoYUXSU1M3 ZwMemxOdU6kvALMyMpw5f1rNc5Owd6A/lrRnxy3JKYk+ljLRguE6zt+ejPMCBWwzyJPm pPu4RDfj6e5i5shsuzZWtZkfaltmaCjpuPfbsh+SVeUQUuGWQBy3MaGa6bMyXXdn8dKE YjYbKqted4Wd4ZSwPrDXhGW4HZJ12gMGTEaRbhoPct+9DqUQ90KTcfHirtRqOh/4KWk2 y3ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mojatatu-com.20230601.gappssmtp.com header.s=20230601 header.b=oK7D2fUB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id r37-20020a632065000000b005638179cecasi1692487pgm.833.2023.10.20.05.17.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 05:17:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@mojatatu-com.20230601.gappssmtp.com header.s=20230601 header.b=oK7D2fUB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 9B6BC8069F3C; Fri, 20 Oct 2023 05:16:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377326AbjJTMQC (ORCPT + 99 others); Fri, 20 Oct 2023 08:16:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376941AbjJTMQB (ORCPT ); Fri, 20 Oct 2023 08:16:01 -0400 Received: from mail-yw1-x1130.google.com (mail-yw1-x1130.google.com [IPv6:2607:f8b0:4864:20::1130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BFEE9E for ; Fri, 20 Oct 2023 05:15:59 -0700 (PDT) Received: by mail-yw1-x1130.google.com with SMTP id 00721157ae682-5a7af20c488so7970307b3.1 for ; Fri, 20 Oct 2023 05:15:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mojatatu-com.20230601.gappssmtp.com; s=20230601; t=1697804158; x=1698408958; 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=WeRAWwn+GIOAPONO5Nd1FGLFR4N0zLDGXgNu8ADyK6g=; b=oK7D2fUBOW/C/Pd9y0bJVEnJreKhQNYt95tK+z9yJuHddfW1U0W4ZN61QiEvp3BDAp 5oQu0lgPqebSlPN/pm5v+jIfgbv2X8cD8InjK1ACUWd36Parcs8fHxClto179t2eGIvh BtvXSPNfqAkv86eloPOFOHl+DRn53HMXIjHM5RBhcuP2ye5Mxqb94/rc58fIV5godTHA G5bzxoLsZrf53k6l5dEpUsej1Vjh4lf28nxKny5McLYrSrq6DZqgKUhpEGfHPkuU6gqV wE39crLkoG/C9kZK+DNJesHEvP+mta8hsIPHFbaaizcugTI/HxXfU+XVrw/8R04Y69TO Kz0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697804158; x=1698408958; 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=WeRAWwn+GIOAPONO5Nd1FGLFR4N0zLDGXgNu8ADyK6g=; b=Uk6a/TQ5CtW0/i39j5IdQXGcEew8X7yA+m6fGGLfOXaL4279rzvSHbYdkcs1e/gmNP P/xhi3fMuWe3PVP3EYbEOowhua6Tj3VS+x5/dGbPzJym0VBBZSyVe5NkdtCp1J77r3uf N923flglvEJmTimircXn+7Z0q4xJ3E7JyDbuVJBoedBNtJn3sscGYqVPeF/6so1G6t11 bMYJCw3x/N2P0Z8KqwsdRX1TdAr4n3mMMhpU3OS6bKrX1vBqrPRT1b/c9dL0twbRr9Bd lzmi+wCmuTU3iQBYdhrXTESZ0mu6HQj857OVRSsJM1KZHXzvoFYyXFiRUhGrwBz0MBrJ 8w9A== X-Gm-Message-State: AOJu0YyWi/FfX/OPkLv74aggYEZTJLG9IKG1yW+joX/IXspbrZLtvy4q prLrzmyGwmC+s3bouKfgj40Rh9N7XD/zy0u0Dh97YQ== X-Received: by 2002:a25:8290:0:b0:d9b:fd8a:871c with SMTP id r16-20020a258290000000b00d9bfd8a871cmr1576413ybk.16.1697804158570; Fri, 20 Oct 2023 05:15:58 -0700 (PDT) MIME-Version: 1.0 References: <20231020061158.6716-1-hkelam@marvell.com> In-Reply-To: <20231020061158.6716-1-hkelam@marvell.com> From: Jamal Hadi Salim Date: Fri, 20 Oct 2023 08:15:47 -0400 Message-ID: Subject: Re: [net-next] net: sched: extend flow action with RSS To: Hariprasad Kelam Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kuba@kernel.org, sgoutham@marvell.com, edumazet@google.com, pabeni@redhat.com, xiyou.wangcong@gmail.com, jiri@resnulli.us Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 20 Oct 2023 05:16:14 -0700 (PDT) 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? cheers, jamal > Example: > In a multi rss group supported NIC, > > rss group #1 flow hash indirection table populated with rx queues 1 to 4 > rss group #2 flow hash indirection table populated with rx queues 5 to 9 > > $tc filter add dev eth1 ingress protocol ip flower ip_proto tcp dst_port > 443 action skbedit rss_group 1 skip_sw > > Packets destined to tcp port 443 will be distributed among rx queues 1 to= 4 > > $tc filter add dev eth1 ingress protocol ip flower ip_proto udp dst_port > 8080 action skbedit rss_group 2 skip_sw > > Packets destined to udp port 8080 will be distributed among rx queues > 5 to 9