Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6267330iob; Tue, 10 May 2022 14:25:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2nrYIu49oHqR/JqYpBXU0wyd3NEYNC/0Wm3FFCd+3Klk+6H0GUa1rvaRMVxZwXbWf6Gz7 X-Received: by 2002:a17:906:3144:b0:6ce:de5d:5e3b with SMTP id e4-20020a170906314400b006cede5d5e3bmr21793901eje.689.1652217932894; Tue, 10 May 2022 14:25:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652217932; cv=none; d=google.com; s=arc-20160816; b=s3rWit8vpZlzd3H8xG/J2S1EDYeklBQZkjP6yM0jyba+hhgf7Cm6X3xy7xgpAoX6I+ DKqNo8TU+ROIULjhJvxG/zybbZKiJMN9ShzstuZbNsIxxAWody1NMMv9wBKTaJo+d3oy Pro5IPHRimSJir3r/gw9A/gPEIKLSsaqqG0pPREs7lGh5yBEhNY3iRdhaNRT/RihpRwZ yWpOBKiDOB+irAMjEiAnJystqGzqvRk/rqLz+96SEVEN20tKSMbTwTMaF+/HcYnIPI/A G0l6EveFa52Q9Um0KS1s6jVuyrEWl1bmnSxQSTn5zTlb7pGJGnRcpmI/15g//LiEcfmJ E+PA== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:dkim-signature:message-id; bh=J4KU6f8G+1gVk3qsLJVOLCcNn7Yn90pcovTh/1Twqwc=; b=PQMMLAE1blhXSRvEG73d1K4xX3Ab5FesZxvYlMqK2DSAtGHCgZbroQHIcelanLRcyK WqIBOv2+90ainH9/NPzDDr9veYPxzXU8JgSadAG+SMKXsdBuIkGrusgsGwBgYp6ddLyc GUyoDPFvsT5CESX9BnVpnDloxrRGXWsrF0/V+y44hoQvgcLHb+OlmmNYjopDJPv0kV7P kY4P50/nGZhOY9r3IiRcTdf/YbrCHcU15SUZgKOapgN5x7XV7YVbZLVTK3PjbFfYenXD dWD9OT/UBrnkKOp0Ui3gTVtGJ2gxLNktjQX5fsyPJb3sgPM+/HzOc2HGnnJAkHjvPPFT e0dQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@wetzel-home.de header.s=wetzel-home header.b=jBSN8ytz; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wetzel-home.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g15-20020a50ec0f000000b00425f2e6bef2si272771edr.242.2022.05.10.14.25.08; Tue, 10 May 2022 14:25:32 -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=@wetzel-home.de header.s=wetzel-home header.b=jBSN8ytz; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wetzel-home.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347155AbiEJQRf (ORCPT + 69 others); Tue, 10 May 2022 12:17:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243286AbiEJQRf (ORCPT ); Tue, 10 May 2022 12:17:35 -0400 Received: from ns2.wdyn.eu (ns2.wdyn.eu [5.252.227.236]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6CB67158FA5 for ; Tue, 10 May 2022 09:13:37 -0700 (PDT) Message-ID: <13154ef7-63ee-cfe7-3ebb-a7f1120985b6@wetzel-home.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wetzel-home.de; s=wetzel-home; t=1652199216; bh=JXdap2hB3qtrYFxPjA/2QM+ozPB/qGyGuduhT92uvq4=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=jBSN8ytzDLI92enxQ40/CKh11kK2jLOk9wrDQGQcA1cN3mc/0VnE/q4Hio8DVL0Jk VlPqcYP8Bv4sor62eqxceZs7SytIGkc9Z3xYVMXtZUDFjRO7EE/8/UzNPcBltTDFln gCl1Jl/D+MdacLFlqs9JxeJWyCNXyWbsgZFoKbEU= Date: Tue, 10 May 2022 18:13:31 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH] mac80211: Simplify queue selection Content-Language: en-US To: Felix Fietkau , 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> <54589d98-882c-cee4-dd6d-140d50f400d0@nbd.name> From: Alexander Wetzel In-Reply-To: <54589d98-882c-cee4-dd6d-140d50f400d0@nbd.name> 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_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 10.05.22 18:10, 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. Found that one, yes. But why do we then not drop ndo_select_queue() for all drivers? Or maybe just call skb_get_hash() in ndo_select_queue()... But I guess then it would make more sense to move the ndo_select_queue() into netdev, so all drivers get the optimization. Alexander