Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4187977iog; Tue, 28 Jun 2022 10:43:45 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vB9Ki1HK5AfR7V6/0k5HsDlbMNCMMnIBQa5saKoYJHVWZDQ9mihRt2OYAOyxLERzmiE4K/ X-Received: by 2002:a05:6402:3298:b0:435:8145:e6db with SMTP id f24-20020a056402329800b004358145e6dbmr24755747eda.294.1656438225240; Tue, 28 Jun 2022 10:43:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656438225; cv=none; d=google.com; s=arc-20160816; b=te6dJqEe4RNVv0pNagIneAeVPD7bjYQSm2emh/Son/11mnpodyJ+eTd2GpY9bSc7OD Z6+gFcZWjSds3ExBMbT1awM7zJM7+V/+W8uljXtO+M5Siv7g3b9XykF6waSiKJ87qBkH O50dx9oXUvxd8a0CXimf32pA2cJJRWdkp6r1mOJXKrURnXKD9PgLSul4dQCXqA3zzYuo KkQhF1A/hnUEIZy45ZkhWCgQ73gOHEaUKuR9CdAWyz2lbNi9gnoA3z0BXTe+qM9XacGr EWu6IcD/6lDPrN55ghf1Rs9awHZSCs4JXW+rP5OHE2xqfVKdrHnEl6fwXpzmPHW9+DNp nztw== 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=B8hQHCCM6sUjjZCDQ4imqLI+zx2ojICDYbI4OuVA02A=; b=AM1ZWPVXqKjTfCNquZVHlNbhtx4emPezQnAvBVjLjiWsBnE15e5y93RdalttJszQpF dqUz6+BZFfotMjOpjn5KjWP79fauRDkSseQRpsEn1ekBYRmy/YfI1ZpuY2mZLAnCOrQ9 bg5zG9utKfJ7j2saCAkJtS0rzwPTG02qEKPL3G/wpFMOYNGo/GdneJZaTTTEAlHsSoU0 Cw0/8q3fBBV0MIxzaiuo+pasYU4+I7q3MGUNbDKq2arhF5nGfDGLeOj0jqKDNg7NBa+r Xdw+y9qXmpbGAqMuIFxZTJ7Kx41yPgJYmaih6NjOWS67UOOwtbrzb2NRqE7N1Aupas4b LFEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jtn6qXrz; 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 sa3-20020a1709076d0300b00726cf00b7ddsi3716997ejc.803.2022.06.28.10.43.20; Tue, 28 Jun 2022 10:43:45 -0700 (PDT) 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=jtn6qXrz; 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 S232771AbiF1RPi (ORCPT + 99 others); Tue, 28 Jun 2022 13:15:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231248AbiF1RPg (ORCPT ); Tue, 28 Jun 2022 13:15:36 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FC742CE22; Tue, 28 Jun 2022 10:15:35 -0700 (PDT) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 962B861937; Tue, 28 Jun 2022 17:15:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6B72FC3411D; Tue, 28 Jun 2022 17:15:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1656436534; bh=UBVsW+yzxyFb/s3b5sRvKn2VSjVfkBM2AyEJPMVc8lo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=jtn6qXrzGfs6D+k2i4yl2UP7DzBvENpEo9EjvzK+oRPwSzmDr0+t2nd5udz2o3BvX TGsN68oe9rG7XqUXpemiQKvPcflszZit6/04QYDvyPhA69X45MSFrMsJUccxh3mXiX uFTFQTrgi8rRmPAf2Fs5J0LNiut+VYhc37dqeo1hkldj25rbmgvWwIWu+VM/rdg1uw VzvcLeKj+4Vrd/e2HnSmMz1g59J6MYQPgXQkyHRGw8XDl3IpVRaxrZaQ6I9Ax7iGa+ 5yYLu6ZG5mRitcZ/FmnnO+eSvvxEZVzuKs098M4xaAp6kV8P13z35Ll/LBe0qmS8rJ 7BCDunm4kr1fA== Date: Tue, 28 Jun 2022 10:15:32 -0700 From: Jakub Kicinski To: Eric Dumazet Cc: Albert Huang , "David S. Miller" , Paolo Abeni , Sebastian Andrzej Siewior , Menglong Dong , Petr Machata , Kumar Kartikeya Dwivedi , Arnd Bergmann , Antoine Tenart , Phil Auld , Frederic Weisbecker , Xin Long , netdev , LKML Subject: Re: [PATCH] net : rps : supoort a single flow to use rps Message-ID: <20220628101532.1be4a9df@kernel.org> In-Reply-To: References: <20220628140044.65068-1-huangjie.albert@bytedance.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.5 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,T_SCC_BODY_TEXT_LINE 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 Tue, 28 Jun 2022 17:31:12 +0200 Eric Dumazet wrote: > > how to use: > > echo xxx > /sys/class/net/xxx/queues/rx-x/rps_cpus > > echo 1 > /sys/class/net/xxx/queues/rx-x/rps_single_flow > > and create a flow node with the function: > > rps_flow_node_create > > Which part calls rps_flow_node_create() exactly ? > > This seems to be very specialized to IPSEC. > > Can IPSEC use multiple threads for decryption ? +1 Doesn't wireguard do something to spread the load across CPUs? Maybe it can be generalized? I don't think a solution to "spray crypto around" belongs as part of RPS.