Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6559676iob; Tue, 10 May 2022 23:35:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypnzX+uqvvhZKeWlmBjyo44/KXc/p4b4pQ4mcE6YC8BuCpkAsq8hAqzeyT4NS/FGjq6+/n X-Received: by 2002:a17:90b:4acb:b0:1dc:32dd:d51e with SMTP id mh11-20020a17090b4acb00b001dc32ddd51emr3661799pjb.5.1652250939017; Tue, 10 May 2022 23:35:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652250939; cv=none; d=google.com; s=arc-20160816; b=r0BtPA4Qvjv7a280m9IFvncLn2GjPt6Xw4mZogH+OftGpPDdA7NlJFTliJD/6idkN5 Dk4j5uypUj+V+co0WASZPQrOhpJwg48UyD/TCv1ZvjodEwgKbn4Lr5N4/CKi/x8L0Po6 rNUzFM+O+ht+uqiE+oKhkOt4rPWQkvOsy3EQGPMBRAXU37bXr4Md390AyhwiwDvtHoTw 0B8rHwkFS6BbNBQLmsh/R76DNPBhFLnVSEtTLOf29lUTIR1yMUts4pHlHCshw/rqHWm7 oJk7b/cpOdRBohdyySxKHerwzb2QTEm+aWwX/Y9cqNWmp1dtd0kuImIBTY9kEu7Rq3Ox PryA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=KLNmLFwY4PWvutTtzQAGR8y0gMuBLKDRJMI4Qpq0uhA=; b=VQcWWSW+vDN2D6I4oGwkjUrGNM4kl/TCfZ0OjQBnorj1FQnHd6KuBr9EirLV+2XLmE bueAaVc1sO7NAAYBtD1LzvZSLej/GUQN3Jy2UXssm/cPBY6MJVOZ2vomiDGhGXaO4s71 y813W4Laf8vmETkyT2kcceZYIopH7X343rXo6nYZrcnBs7OCzLkpNJ98jkp5MfqS3z30 8+gKLCXWaJObvR9q5ztF1smJVmdRLQjGJb9e4ZTQOnCsOkK5ppyIkx2APLL8U7p+h+Hq lGPWu2fDh6d8pyOY1i3hGHw0gEvD3thPsDj3durzbB40DvFFBkkTZ3GEZ7vt+IC58XV/ BTeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GEcQGy6d; 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=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 k190-20020a6384c7000000b003c28139ce8csi1695006pgd.750.2022.05.10.23.35.24; Tue, 10 May 2022 23:35:39 -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=@kernel.org header.s=k20201202 header.b=GEcQGy6d; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231585AbiEJT2Q (ORCPT + 69 others); Tue, 10 May 2022 15:28:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243829AbiEJT1x (ORCPT ); Tue, 10 May 2022 15:27:53 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2875D39813 for ; Tue, 10 May 2022 12:27:31 -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 ams.source.kernel.org (Postfix) with ESMTPS id B0E20B81F70 for ; Tue, 10 May 2022 19:27:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3CCE2C385C2; Tue, 10 May 2022 19:27:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1652210848; bh=5joIHAuRNLNHToSfeuBBqX17xHMOEVop/AOqjxOtWEw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=GEcQGy6dWjYB7Fa0gQmDktVJVtN2AcCcJJ92HHDg+73q+xNIHyymQaJlGuYyjHkH+ O5VBCXjdSWHSAlISobpUThlUsOurAjakCSUInapAEeXczXCXYUSWPb7Hm797FJ6GwV ilymEiUKGjP67yA06PzC10qc+/TM7dhu3NS9fmqu2CTEXzcJlCCdHEa80BvuN7Joio IyVBvteZnb2VIaPHQKlSZPR53ljSbuk9Cri2MlqkbXspNuD28z1yVEqFquCZnkoeWV zUZ8QNIhC587W5dyOIFWWtwM5S2oSlOAAnEJZJoLQ+67s7cHKfvDyTDhKW/vPFccfr INGTqHLNv9F8g== Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id 45CF034E351; Tue, 10 May 2022 21:27:25 +0200 (CEST) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= To: Johannes Berg , Felix Fietkau , Alexander Wetzel Cc: linux-wireless@vger.kernel.org Subject: Re: [PATCH] mac80211: Simplify queue selection In-Reply-To: References: <20220510155828.9406-1-alexander@wetzel-home.de> <54589d98-882c-cee4-dd6d-140d50f400d0@nbd.name> X-Clacks-Overhead: GNU Terry Pratchett Date: Tue, 10 May 2022 21:27:25 +0200 Message-ID: <87tu9xw5lu.fsf@toke.dk> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-7.7 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-wireless@vger.kernel.org Johannes Berg writes: > 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? Nope, that was my point on the "moving it to shared netdev core" question :) -Toke