Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp967186pxb; Fri, 13 Aug 2021 10:14:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwf+WolHpoJDhvWtqtubxpQLJmyMryU1TfMyUjbKSWFKSCsqQDm8TbSMS2NKcGsuHvc0znu X-Received: by 2002:a05:6e02:1567:: with SMTP id k7mr2558143ilu.146.1628874872858; Fri, 13 Aug 2021 10:14:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628874872; cv=none; d=google.com; s=arc-20160816; b=CEenQhiVtNUyghpkGDQaBq7P5fzCFYkvUwmewIYgfJ2TQGAY+WmIBGVnNnzE8FK85K 8VR5cKd+2g+BR5VOpyK3MStWgDawG82bKhOsSZ4IJpD2dHLjDIfJUvX/FmAioorhjXho eLcFvXxymw3wcfixRarDGQP7d8an38ErtSMRd/kz71pVKt7CHM+5LHReC0+9qMLRV2Zq BsEN8xyl21jx3RBrtU0LEQMEfl/tjv0FEsGvtzQ/y88oh1QXSfh9yJ3NGlc5RlV/HWdD fOHa82p/Bx7j33G2MHjxqOdBOpHja3kBx2XP0BxP8pIaMLCr1lLla6hrceaomU105l2u rJ2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:dkim-signature; bh=WLGoQgxsWNND6v+7dsn5qVcqH18AC3WvFBP1RoKIvQU=; b=Nz3hwyBTB318H2yovqdHmL0/0qtj2hnAxykGyskbuICTnUM3YRj+PY6b3zEgNaR5UI YtMlCWMIebjO1HDmqHyQ6KCf4g/2idYT7nnzNzw6FlCKNr+Ew0BzAbUUt3IBJs/5uqGj ZAwF/IsNLeBEfKSTaGp3NPzgqIorslOKAsXl/qbJpFe/Bd/x4qvE5o9hBIcT112GnT09 vlBMm6vU9QqhR/yubSfAuvI5ZfvgxIHQl1WGAPRxGu7uSCYU/06EZhJKlBAEHWqPQxCR JgZ6NX4fEEMAaDh99Qs3ShAKl+ID8xM52znUv+zRkz3CoQF3P7IWObF2q4iC1HvV0xQY bemg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b="YFJx/7yB"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o4si1976449iom.0.2021.08.13.10.14.15; Fri, 13 Aug 2021 10:14:32 -0700 (PDT) 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=fail header.i=@nbd.name header.s=20160729 header.b="YFJx/7yB"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229605AbhHMROQ (ORCPT + 99 others); Fri, 13 Aug 2021 13:14:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231683AbhHMROL (ORCPT ); Fri, 13 Aug 2021 13:14:11 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8D97C0617AE for ; Fri, 13 Aug 2021 10:13:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:To:Subject:Sender:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=WLGoQgxsWNND6v+7dsn5qVcqH18AC3WvFBP1RoKIvQU=; b=YFJx/7yBNAdvGhNrFO3XuUBThf +C/RwIgCdxjIXSDayDxteP6+Ec5yLyOzwsz81ug8EwFsa2dWEvBFjJfpv4YviUxbnT+GBI1jD2eR6 e/q6ZHjaPRgdSWE0AqmObVrF8FRshD83fuOuuTPpt5CwEXN3JqUPvW9AOEQHjTdgsstk=; Received: from p4ff13206.dip0.t-ipconnect.de ([79.241.50.6] helo=nf.local) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1mEakQ-0001o2-5O; Fri, 13 Aug 2021 19:13:34 +0200 Subject: Re: [PATCH v5 04/11] mt76: mt7915: allow processing TXS for 'NO_SKB' pkt-ids To: greearb@candelatech.com, linux-wireless@vger.kernel.org References: <20210804134505.3208-1-greearb@candelatech.com> <20210804134505.3208-4-greearb@candelatech.com> From: Felix Fietkau Message-ID: <5b629ea2-d269-26af-f7a5-d389fa584555@nbd.name> Date: Fri, 13 Aug 2021 19:13:33 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20210804134505.3208-4-greearb@candelatech.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 2021-08-04 15:44, greearb@candelatech.com wrote: > From: Ben Greear > > This will let us update stats and wcid.rate for every TXS > callback we receive for a particular wcid. > > For now, the TXS is not requested for NO_SKB frames, however. > That will be allowed in next patch. > > Signed-off-by: Ben Greear > --- > .../net/wireless/mediatek/mt76/mt7915/mac.c | 18 +++++++++++++----- > 1 file changed, 13 insertions(+), 5 deletions(-) > > diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/mac.c b/drivers/net/wireless/mediatek/mt76/mt7915/mac.c > index 6f92e207680f..2228dad71657 100644 > --- a/drivers/net/wireless/mediatek/mt76/mt7915/mac.c > +++ b/drivers/net/wireless/mediatek/mt76/mt7915/mac.c > @@ -1047,6 +1047,7 @@ void mt7915_mac_write_txwi(struct mt7915_dev *dev, __le32 *txwi, > txwi[4] = 0; > > val = FIELD_PREP(MT_TXD5_PID, pid); > + /* NOTE: mt7916 does NOT request TXS for 'NO_SKB' frames by default. */ I think this comment can be dropped, given that you're adding extra checks in the next patch that clarify this. > if (pid >= MT_PACKET_ID_FIRST) > val |= MT_TXD5_TX_STATUS_HOST; > txwi[5] = cpu_to_le32(val); - Felix