Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6332979iob; Tue, 10 May 2022 16:14:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdlp5bxE0RXSM/kZh7xd5+R8JOHUZqComV4cyaG0+pC9TI5awK2UGN4CQdT5sbIV52lif8 X-Received: by 2002:a17:90a:a393:b0:1d0:e448:811d with SMTP id x19-20020a17090aa39300b001d0e448811dmr2201558pjp.97.1652224468862; Tue, 10 May 2022 16:14:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652224468; cv=none; d=google.com; s=arc-20160816; b=HyZu85Fg6Yayvc64QWz95BkDY7UDJIi27YPdil0JvP44MpDYnPjSKX20nCEhDkRC1X Gzu7vIj7WVHGVa5eWqGi8ZNwR7ggCtV9I+8zdvJHaXbDAAzy8XRd3Pkz+j+GiN9CPcTA 9aPxLj1uObrGfPsWFyhFLWFW8iZSo6E9ck7zvkpSgIOg8yKphtx+WLd6qgLhMAnP+FbA 3NQ26iM4YX45U+oT+ee/NltOkywvJ7GeEXYdkjlpwRAIlyFkSOzTiL9CdP/Ww8C1FYgt ql4SdD+at5kOnvPI87HxicuNNaEkgHA62v/43JoQyUv2RWeog97YsKtcHSgQH9bdsMFa 09JA== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=n80jJsqtBE3iI8gk0EvrDbWSD5WPJGgQAeKXe4QIEMY=; b=cbmB5QuHRKXpaE5eYScD26XhfJs2F+SJl+CsdwaSqMUjvYiRnVpIsku8+nldz2qol5 cftidagpNctwwmxZbHVOs78kQAs49YUunudmzLozONRc5nq31DbavkZh5ziPglb1gaWR woAqxg30+UPz5N3Dlsd3RW740Z4PIG+dX5VPs7GSm6smzOvSG9veWnmHdbwbngThPvwV g83/o5r4k1Stb0RuueK/+0pu58DlHtvFYcBjMsS71scLCydzmgJC7DLRBTTdD5Oa5kV2 7q3cJCcPYNU+xnnPup1qIcPr0wRd/DnQ4yg+2+1g4g26aP7G30dGsX3j7YRP/q9ifxf0 /Ifw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=ODO6tgkE; 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; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f31-20020a63555f000000b003c6bd486d8asi830684pgm.2.2022.05.10.16.14.14; Tue, 10 May 2022 16:14:28 -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=pass header.i=@sipsolutions.net header.s=mail header.b=ODO6tgkE; 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; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231552AbiEJTGu (ORCPT + 69 others); Tue, 10 May 2022 15:06:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230256AbiEJTGs (ORCPT ); Tue, 10 May 2022 15:06:48 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55C536CA81 for ; Tue, 10 May 2022 12:06:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=Content-Transfer-Encoding:MIME-Version: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=n80jJsqtBE3iI8gk0EvrDbWSD5WPJGgQAeKXe4QIEMY=; t=1652209606; x=1653419206; b=ODO6tgkElJAQepcBSjpMrnTO3pxAYGZD69eWyvIK9gc0rpB k22RlOBlF6Y0tkoHWXczntIsVK9FPWUJsngFDgw95Ho8Aa1BekwR4vVlpYGyNVxjGCORquaooIGPi b5I/ecD6m7CziUKDSgIPFrEfALZpP/e3ozf+ME5Iwe8Lii7tVkhvQTN/H5kb5MY4JOEBMI1bdwQlu RPpQGrLH1xfTuNfHuxiGtKBck6Oc6duD5LVcKhDKHJjdocaIRVTGaOPuHwoGML98GQuepImJHACS4 MnyAEKug73jfmReXwg30uN2gLjy9MF6ERinjv2avnMdt54tChP9zOY9gbb3rqZ1w==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.95) (envelope-from ) id 1noVC0-007vMO-3O; Tue, 10 May 2022 21:06:44 +0200 Message-ID: Subject: Re: [PATCH] mac80211: Simplify queue selection From: Johannes Berg To: Felix Fietkau , Alexander Wetzel Cc: linux-wireless@vger.kernel.org, Toke =?ISO-8859-1?Q?H=F8iland-J=F8rgensen?= Date: Tue, 10 May 2022 21:06:43 +0200 In-Reply-To: <54589d98-882c-cee4-dd6d-140d50f400d0@nbd.name> References: <20220510155828.9406-1-alexander@wetzel-home.de> <54589d98-882c-cee4-dd6d-140d50f400d0@nbd.name> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 (3.42.4-2.fc35) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-malware-bazaar: not-scanned X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, 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 Tue, 2022-05-10 at 18:10 +0200, Felix Fietkau wrote: > 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. > However, that's independent - we can still calculate the hash there, and then bail out, i.e. put it right before the "if (wake_tx_queue) return" part, no? OTOH we don't even need the hash in the other cases, do we? johannes