Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6237092iob; Tue, 10 May 2022 13:37:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQiC2dFOZV9CLKuLXVbis+DirLczvkB3mZ4SsAg13lVU1CvYFtxtttbFW9pZ0KiRufSHRY X-Received: by 2002:a17:907:3f29:b0:6f4:cb04:a6f5 with SMTP id hq41-20020a1709073f2900b006f4cb04a6f5mr21394821ejc.115.1652215026507; Tue, 10 May 2022 13:37:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652215026; cv=none; d=google.com; s=arc-20160816; b=GVPjX1Q3Pr1DeYLV2iEhC3auVywTIscMaanRSU5A8tWMsEGF1x7F3yUJjVvO3BxRX+ KGsorz5SjBA2tJE2myWFpvvmJm+tEsqExvqPGXsVCzVCQ337WrME7U/1aTRJdxWWiyUK ZOshPSxwt1VziN0n1GCZWzJ6BnyXxDPS19KFsTsKwGaeiQGah4WcKS6rd8/dSslUC+Xn 1mIXHOZ0vhNi/1XFXOVPJTGCbtWDZDOe4QKypeQKaXGLCZmOfJAhVV7d9NVZT4SXlIQK uPkqu0J18LtJuIOeVXk2q4d76wKnVV5+1MZyIb33NtLehhYVfeO2LDPRyGNmPsUF6Zpg DqNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :content-language:references:cc:to:subject:from:user-agent :mime-version:date:message-id:dkim-signature; bh=OO07Tsvxb6ZigyvNw2DLxiG3cG930CDodWu7c1mAZ1U=; b=DPBaafQp0qynntafm6rHvwRYtgwqJVPf15vcj2jeQiEk5SCHag12nvIDaWtJvvuTuh yPVSPe8wrMimbX2FllgZu0yClMKsfKSSh8GJX2zJBQdAQ4DfSXgCFEQ0pbRyn+vn/dTw XEdIlG9Ecttxgn1RyoCOpnuc+4E4hDoP+uiCKu4t3NX/sIi6Uu0IYVhMPrS50U6eFH+n 5f/02XKES7ihtZy9+06cj6JRNMIovUiLtwUMMs8cRfK9JxBldUOUqtrZs7hKzrsrHTGD 1SEBrn3DwWFjXcX/7PEJviLOCziGH78P/MxM4PgC6xM6g5HquOxX9umtxoBYfRkWo8p5 l+3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=dDghxypc; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hg23-20020a1709072cd700b006e8910cb819si278436ejc.825.2022.05.10.13.36.46; Tue, 10 May 2022 13:37:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=fail header.i=@nbd.name header.s=20160729 header.b=dDghxypc; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347044AbiEJQOU (ORCPT + 69 others); Tue, 10 May 2022 12:14:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347116AbiEJQOT (ORCPT ); Tue, 10 May 2022 12:14:19 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96F2E2734EB for ; Tue, 10 May 2022 09:10:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References: Cc:To:Subject:From:MIME-Version:Date:Message-ID:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=OO07Tsvxb6ZigyvNw2DLxiG3cG930CDodWu7c1mAZ1U=; b=dDghxypcnUQm/uy3JQWRJNQE3w AXELOWxf/hvUceiBCD+jbSk/iLmqxgk/hcSlSehJyLwjKVST1fI/MuOmZ/D0Q9VBcUuQHW/mnz0Ac czrRWDPQ5LDn3XgkpPtNnnB/psN7DBHDD97ewQe9KkykwuHPgfJ/IlcXediC4XXLV0Ig=; Received: from p200300daa70ef200fccd1f935f1cf3cd.dip0.t-ipconnect.de ([2003:da:a70e:f200:fccd:1f93:5f1c:f3cd] helo=nf.local) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1noSRD-0004Jy-M4; Tue, 10 May 2022 18:10:15 +0200 Message-ID: <54589d98-882c-cee4-dd6d-140d50f400d0@nbd.name> Date: Tue, 10 May 2022 18:10:15 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 From: Felix Fietkau Subject: Re: [PATCH] mac80211: Simplify queue selection To: Alexander Wetzel , Johannes Berg Cc: linux-wireless@vger.kernel.org, =?UTF-8?Q?Toke_H=c3=b8iland-J=c3=b8rgens?= =?UTF-8?Q?en?= References: <20220510155828.9406-1-alexander@wetzel-home.de> Content-Language: en-US In-Reply-To: <20220510155828.9406-1-alexander@wetzel-home.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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-wireless@vger.kernel.org On 10.05.22 17:58, Alexander Wetzel wrote: > Let iTXQ drivers also register four queues in netdev and move queue > assignment to ndo_select_queue(), like it's done for other drivers. > > This gets rid of a special case in mac80211 and also increases the > chance that when we call skb_get_hash() the skb is still hot in the CPU > buffers. > > Signed-off-by: Alexander Wetzel This has the disadvantage of requiring a redundant sta lookup in the tx path for iTXQ drivers. I think the CPU cost of that one is probably higher than any potential gain from calling skb_get_hash a bit earlier. - Felix