Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2420331pxu; Fri, 18 Dec 2020 12:51:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJxTSsLZM7bPi50kg2G+IGgtZKAckhV8mfPNQ2JuGRu/mpVsJe3a8rlhN4HcNIDFJeTSvAQS X-Received: by 2002:a17:906:7a18:: with SMTP id d24mr5888435ejo.324.1608324660635; Fri, 18 Dec 2020 12:51:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608324660; cv=none; d=google.com; s=arc-20160816; b=XIj0bN6m80ZdAd2g3RqMpLgu7FkeK7IhAPRbezdpOk6z8Sn+HNOE19pNxusXq3ME1s ljgV/DX8W7UM+/nU0nFovQvY+bcV75GfEXXHzcKdg9uaYiZttFJkAWZhyefM0PgI4BHv fNYj8rzcayMhXjHOvGszdsn1O4E1loKYw2LfUpXXvpS3IONU0drh1I+NzAvF1KAI957x D2dv4NaDgsJoAPVo8tnMDeGt7yGCALzgoj1phqEFwooFQtPFDEbme3tDJnss8BLf2NEM naaqazwDMFe0oNwHeB/Cc022I9POH0KrSYTyNlTFA+HlGlVEetkVd42h+QDYht9svLmt Mo9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=RtiyhyBkL4tfd0RAGR/mPDiJQVNxW+PMiUHl3EQBP/w=; b=tZNRcNY/j3mv648h8+GwmKf8kwB3dCNl5PjyGrIOlaF7pDCf6CTcMxhwb7sBXu6+/6 XpnwB7TFvCx3a1MoGnt5Yl5OvSIyhI829pxZEcoFVrWtlm9bkrARjrKUCA4spLIlxtc8 cSpSRXlqjM9AwaF2tDCAnBK0vklTKWIHMgzakx4wdpgSRousBW9XaSmc1UcjuOAiJY0s xf9nHTiJwp+fyBHMThXoihw9vcnpr9Lk/weqXceay8L58b6oEfT4LdUSrSROZXyWlfaL aOpQU+IKWQfXYeYzzcQhJ/cKVRHJNGdD8MJy/2WwfODohWu2pENkHBAlZWEKUkpLSJXZ 1Hdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@eero.com header.s=google header.b=RinV89pA; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=eero.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kt2si5205478ejb.124.2020.12.18.12.50.38; Fri, 18 Dec 2020 12:51:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@eero.com header.s=google header.b=RinV89pA; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=eero.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731141AbgLRTY3 (ORCPT + 99 others); Fri, 18 Dec 2020 14:24:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730082AbgLRTY2 (ORCPT ); Fri, 18 Dec 2020 14:24:28 -0500 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F95BC0617A7 for ; Fri, 18 Dec 2020 11:23:48 -0800 (PST) Received: by mail-pf1-x430.google.com with SMTP id v2so2105650pfm.9 for ; Fri, 18 Dec 2020 11:23:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eero.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=RtiyhyBkL4tfd0RAGR/mPDiJQVNxW+PMiUHl3EQBP/w=; b=RinV89pA5JcUZowGG657O+HY/Gtx+v7rGrcbd8GB03LBGrMc6G9skx56mHEOK6VTiD r/wlKvMZtUI4aEKrqDXpkBBITMrU8CIMtyy9OVu133431dsZjxliXpMvtUyBz3ntFaiN avVWK7yWl+DEWqXF2Eg9YqJHaaGcqxJSfBw0g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=RtiyhyBkL4tfd0RAGR/mPDiJQVNxW+PMiUHl3EQBP/w=; b=Ltbj2oPFS1eaZomRgSTh+AR6VZfpPRF9gDC8kxSjsKc5riQivroQLjx3Udqjc8k/7d oxYXx+7fYbfjWb57ZtbtiXixjLeTBxIH/5O/iscPiR7W8FtRuzc+LVjnG8dr/TJx44pq AeHGY63qAVtXiSdf8elAvs+nJj8o45xeTb1+sDKll6bwZOzOhPyXpPhiOsebeKfE9nUJ 309F1fHbam1jgbZOxGCRIXa5oOeRfBJAPGkw0RQFNaXUOk8zeXzoY3o8jjQ//kaeASMZ IEL2jgYOBRyBoVWOMcByAjVAQE2rdfv0ZBfdI0LcHT7IF2z/ofbGituFUlFDq68HZkrs erYQ== X-Gm-Message-State: AOAM5338Wwe0rv/en/qAb9rcP8BjRWS0IpmYHqdq3nPaoPcEI8MYlrm4 PLv4JQugeqbbJ+LTs0HxfBzCw6yzR9e1Bfex X-Received: by 2002:a63:c644:: with SMTP id x4mr5527568pgg.421.1608319427564; Fri, 18 Dec 2020 11:23:47 -0800 (PST) Received: from [192.168.4.200] (c-76-102-118-9.hsd1.ca.comcast.net. [76.102.118.9]) by smtp.gmail.com with ESMTPSA id z10sm9562004pfr.204.2020.12.18.11.23.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 18 Dec 2020 11:23:46 -0800 (PST) Subject: Re: [PATCH] ath11k: Update tx descriptor search index properly To: Karthikeyan Periyasamy , ath11k@lists.infradead.org Cc: linux-wireless@vger.kernel.org References: <1608305041-21946-1-git-send-email-periyasa@codeaurora.org> From: Peter Oh Message-ID: <959ea12a-e35b-5867-c55e-7f62e2956b09@eero.com> Date: Fri, 18 Dec 2020 11:23:44 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <1608305041-21946-1-git-send-email-periyasa@codeaurora.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 12/18/20 7:24 AM, Karthikeyan Periyasamy wrote: > Tx descriptor search index field should be updated with hw peer id > and not by AST Hash. Incorrect search index causes throughput degradation > in all the platforms. so updated the search index field with hw peer id, > which is a common change applicable for all the platforms. > > Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.4.0.1-01492-QCAHKSWPL_SILICONZ-1 > > diff --git a/drivers/net/wireless/ath/ath11k/peer.c b/drivers/net/wireless/ath/ath11k/peer.c > index b69e7eb..f49abefa 100644 > --- a/drivers/net/wireless/ath/ath11k/peer.c > +++ b/drivers/net/wireless/ath/ath11k/peer.c > > @@ -309,7 +310,11 @@ int ath11k_peer_create(struct ath11k *ar, struct ath11k_vif *arvif, > > peer->pdev_idx = ar->pdev_idx; > peer->sta = sta; > - arvif->ast_hash = peer->ast_hash; > + > + if (arvif->vif->type == NL80211_IFTYPE_STATION) { > + arvif->ast_hash = peer->ast_hash; > + arvif->ast_idx = peer->hw_peer_id; > + } How about non STATION type? Thanks, Peter