Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp962411ybi; Thu, 30 May 2019 09:20:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqwGt1wmHXIqosYrxt+c4yIKPMWvVOhJ3wt72ns6rnZOik8+c4SrSjG5t9VvBIpRvr4Df9EA X-Received: by 2002:a17:902:22e:: with SMTP id 43mr4302445plc.272.1559233229656; Thu, 30 May 2019 09:20:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559233229; cv=none; d=google.com; s=arc-20160816; b=E0DrA2NhRL4eskSviZtJnfcWdopEO6o1FYFrbIaD56uM2Ztz9MjWkEgLil+BZ8cezt dVvB/HxZE5HgFdLlClqRrtZUxNqu3BCMXeUoRIrPskjKBBnGfbUjnVsjS0JrlsSMF2Bw Z/O5hUe5SrdHJIZViH2hcSs7p4AZGloONp/SYvoY5+clbQcMdZnc0O4AYrNUpfoYcjZk oaziZmWpHqt6Hje5Sgae1Jar7RUcMcBg/+lhmHZOluP2hj05tykvodmPLd7JsKP02UOA W7xJ6IQWaO68iY5ZctruddmFQyFLpf/D/D5FCj5CQGplyiPe17SSH42yalsbNQ/W4lDy 1oKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=/BOF1PS9ef/1e7lF8f7QGaLzvKEh7xsX3IUCbdi38sI=; b=Oyysr76bwsoItteWzYsRmIxEO6n9MsPFTEi42W7QxA1Op9HrZinvBsRziu5hLj4CFl QujA0ES7yYaqCzwUoX4UDAufLSkMwFoadZunDxsQSmdcjVfTVwcNKAxhqqQwlO9b6GxY lsMQQIdcKbD8p+YED96V06jMP5mSJzHhqnDMSl3pFNsJnW+08ezb/P9WJ/YPCvMLZiem VcllHhk17cSqYd2G0z9iNvVmCEFPImGIwYtYDuIen42p3HhXpQlVLUoHZaAGs+Zx3L0S 2jFMdoT3PcnP5KFMRL9GKT+nC+DrvGaRs6tBY0q/SYLFcYfI4co77C6EKGfgkaD+ifUv YoPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@endlessm-com.20150623.gappssmtp.com header.s=20150623 header.b="E34x/JZl"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h125si3836589pfb.176.2019.05.30.09.20.12; Thu, 30 May 2019 09:20:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@endlessm-com.20150623.gappssmtp.com header.s=20150623 header.b="E34x/JZl"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727698AbfE3QTC (ORCPT + 99 others); Thu, 30 May 2019 12:19:02 -0400 Received: from mail-qk1-f194.google.com ([209.85.222.194]:44463 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726520AbfE3QTB (ORCPT ); Thu, 30 May 2019 12:19:01 -0400 Received: by mail-qk1-f194.google.com with SMTP id w187so4196651qkb.11 for ; Thu, 30 May 2019 09:19:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=endlessm-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/BOF1PS9ef/1e7lF8f7QGaLzvKEh7xsX3IUCbdi38sI=; b=E34x/JZltMmJpxLwbPQ3upRY0aW6h4YRZvuNYNeY24YqQEVr0xGxbd94fNVxyYEkd6 L1QZc/Kub9/DPa/7/Iw+5FCGQAQPlwMuSybDLCnGJwTZJkXOHuI66sZHlV/4zWgW3IX9 ER8WHijNf6yvvLP9UaU0MK0/5SpJ1gKgBC1+LPxTH2XTtCsxrCkz4MRu9WUbjT2pSax+ 4i6/QpqUNsQe5JuW4QCAdrAlMoL/yvmUBlbyW+gUnJ/LOZATfYSgvTldftMNsC2y3blY kNRWQipzSHFAfUWu918mwJDL6F++OKoJA49EXGi8A/5veoy93/gdfkH5+MaH8ipOcvQL 2NGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/BOF1PS9ef/1e7lF8f7QGaLzvKEh7xsX3IUCbdi38sI=; b=I0LCTnh+7MMpdTc6No5zSxwSfubVIK/R5qYf2HvO0wUHUZfmD8KwboNC4/t9cyMB/k 4gfNjYO7zkplBLgD3pzCCyYGdarCV6LvGSyS2dCAzz9TGXc+hYsavWOdeqwmd0b7fYiP AJl7qLMHYx5RzeWjKMIV7M/XS+luDvG/hJeig4UijISXcWIZGaTXPyFnDOw1jGgnuSdy rq5wUcQp19hWGB0gTzYp5oSTCevnBywt0VqQ4AYemuAaUCA2GjXhC+Py4sIdzVuiS7io k91t2qvBS5YSLmokZCrj2zsWbV8DYngShUFnx9aHCPYu+WSSMuThnm5d/Mo43s2FZcEU dDOg== X-Gm-Message-State: APjAAAX55M/mCvNSqV48cXaH+RnZ7ijI/Dwz+2m2QA5FvyuMgsCwkw9K Bt4wDfT9rGlk092loi5jJb/ImR2eGFMu2FiMH9R3xg== X-Received: by 2002:a37:6312:: with SMTP id x18mr4113595qkb.300.1559233140556; Thu, 30 May 2019 09:19:00 -0700 (PDT) MIME-Version: 1.0 References: <20190529050335.72061-1-chiu@endlessm.com> In-Reply-To: From: Daniel Drake Date: Thu, 30 May 2019 10:18:49 -0600 Message-ID: Subject: Re: [RFC PATCH v3] rtl8xxxu: Improve TX performance of RTL8723BU on rtl8xxxu driver To: Chris Chiu Cc: Jes Sorensen , Kalle Valo , David Miller , linux-wireless , netdev , Linux Kernel , Linux Upstreaming Team Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 29, 2019 at 10:52 PM Chris Chiu wrote: > You mean moving the ratr_index to be the 4th function parameter of > update_rate_mask which has 2 candidates rtl8xxxu_update_rate_mask > and rtl8xxxu_gen2_update_rate_mask? I was planning to keep the > rtl8xxxu_update_rate_mask the same because old chips seems don't > need the rate index when invoking H2C command to change rate mask. > And rate index is not a common phrase/term for rate adaptive. Theoretically > we just need packet error rate, sgi and other factors to determine the rate > mask. This rate index seems to be only specific to newer Realtek drivers > or firmware for rate adaptive algorithm. I'd like to keep this for gen2 but > I admit it's ugly to put it in the priv structure. Any suggestion is > appreciated. I think it's cleaner to have it as a function parameter, even if the old chips don't use it. The rest of the implementation is in the core, so we aren't exactly dealing with chip-specific code here, at least the way it's currently done. The vendor driver also has it as a function parameter from what I can see. Daniel