Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp868121ybg; Fri, 18 Oct 2019 08:33:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqyKHVixjX5mXkuwt9SgybiiAP0++lcM5onPXURseq8qv684EJGwbzicuwWanN9s63wY4Yuk X-Received: by 2002:a50:b723:: with SMTP id g32mr10286231ede.13.1571412781387; Fri, 18 Oct 2019 08:33:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571412781; cv=none; d=google.com; s=arc-20160816; b=0NqtChUGe6rl/nJkWawntOdJhq0ATRSWwPhMNnWQ/LR9qUhhLbzK5/Mc9NLFh6GVYX 77C3qORxksj9cLt+njS5uzHvQ5/F4SEYstGUqGU5V+d7RU6xRXB6EyZMNv3v7uzw4+8x 8mDAboXIXZqZcaY8YPk5sev2XSRwad4SrAcBE2feJgfXr1EEVkr5mM2nPKs1GcLnH4Ob 9FuVNruE3yr4cK2fHj+BctPFjmuqjcs4mREaaAdmgFtv6ZVXKF/i20p7TF0QynYDcWw8 0VmK/8F5i4/EB80Le9z/rHwMKgqUOG8kUqBTohwrC9srUW8JiCcfnAZ92wvVaAJW7IPM s9hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=+A0TPRZjjKsZIese27m8Vlgf1n0E8ylfi5fincgdNVI=; b=Qo8aXH9worqKT1B1yi/MwZQGQVg+OyvJL4xTvDF0vHuIJnkbZzVFyj9g2FKIUrxRvZ 1TYiZTj9lLJlP+u0zsgPQQgZ/DE3DqJT4msu85RyJ1HRltpYZxLndgkpzySo/iYQns9z n6ZhxyrScrfK+JSgfcPMCdNG412slTPS2PsxeeaLnD13LB8H4UpxQhsy8s+cpYcLXW9i JJZktxqdj0Z4g6Mnswe5P2dt2vs5G59BbROVClY57cQnFeWQcoef2O88+N+LmUH8dtPA C3fUxcZYQBU9E7wQi26j8fU5549bL1Vcn4i/qkLPVQennRFz0HvTuRPoAZH0L4ez0xEE bvQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=d7Maz2zd; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-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 h50si4256113ede.423.2019.10.18.08.32.31; Fri, 18 Oct 2019 08:33:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-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=@gmx.net header.s=badeba3b8450 header.b=d7Maz2zd; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392702AbfJQKZ4 (ORCPT + 99 others); Thu, 17 Oct 2019 06:25:56 -0400 Received: from mout.gmx.net ([212.227.17.22]:50793 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391295AbfJQKZ4 (ORCPT ); Thu, 17 Oct 2019 06:25:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1571307930; bh=fj0aLJL04Cljx/EpmdEme6rx3RiEH5WUSfHpYMZDfT0=; h=X-UI-Sender-Class:Subject:From:In-Reply-To:Date:Cc:References:To; b=d7Maz2zdelvOHhIMj06KtYMaH4EvMFW+64icEtphCK3eFraArN3mT5U5H4MvJR4r1 OZ5+E9FB1XYPaZnTS6FCGBrNv4sSp22ImtGTzlEFvb97iy8N4MEyiXwzFSCYMVIdFY pGKwT4IpAMLc5GBAOtt0KzSoGwkb/xK6VAlktDN4= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [10.11.12.33] ([134.76.241.253]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1McpJq-1hmXQu1Q8o-00ZxFi; Thu, 17 Oct 2019 12:25:30 +0200 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: [Make-wifi-fast] [PATCH v2 4/4] mac80211: Use Airtime-based Queue Limits (AQL) on packet dequeue From: Sebastian Moeller In-Reply-To: <87lftjfz51.fsf@toke.dk> Date: Thu, 17 Oct 2019 12:25:28 +0200 Cc: Kan Yan , Rajkumar Manoharan , Kevin Hayes , Make-Wifi-fast , linux-wireless@vger.kernel.org, ath10k@lists.infradead.org, John Crispin , Johannes Berg , Lorenzo Bianconi , Felix Fietkau Content-Transfer-Encoding: quoted-printable Message-Id: <18FC6F1D-084C-44BD-87E7-C9F394D6FCD1@gmx.de> References: <157115993755.2500430.12214017471129215800.stgit@toke.dk> <157115994190.2500430.14955682016008497593.stgit@toke.dk> <87o8yfg0zo.fsf@toke.dk> <751EA059-654B-4E06-A3D6-C727FE1FCE98@gmx.de> <87lftjfz51.fsf@toke.dk> To: =?utf-8?Q?Toke_H=C3=B8iland-J=C3=B8rgensen?= X-Mailer: Apple Mail (2.3445.104.11) X-Provags-ID: V03:K1:4B8f/OdHzKJ/N+8XhMSPAZY960RiNpZCT1OI8ogSGgfY6mN8+Si pSm8aCY8UQOBmIqYOoDXkzOWaYc5aOU26F8tXjHMjIDmVURn9PBJ+mGd0KN2xv3ePJX/j00 d4b9voeXPPeFxP8NS2CwvT+7wfoTcBTa5tvaK3Y8guiCLcVQhWjU1CrUIKumAwlpDkIsDoE o+d/jMFpRRT2khTGPuw7w== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:ha0b/pNVEVg=:htOSqfPFchVJRPRpVyp0YT xYpuO7crTdnPv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I34xqzSU3IAJnqXIAUXQpsJLfgqMR s/1Evo6afyJsbz6LQT7JFtpPS12Uk85pB/VvgoBnpNnLKojy4NlfuV1xrmpC6OX7OJdIV6Iit hQYf/Teq566wX7aITCQ9Y8zV/Di+NgAVJdXrQ5jhBWZFr99tp5sfIYbFilNj14hHIMcckX0W0 zbelhnTYOEYz4/xhikc8LGFfE7zOMgCr1c35AUlsp/LHzUnCzuBHhkOdlPR4= Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org What about VLAN tags? Best Regards Sebastian > On Oct 17, 2019, at 12:24, Toke H=C3=B8iland-J=C3=B8rgensen = wrote: >=20 > Sebastian Moeller writes: >=20 >>> On Oct 17, 2019, at 11:44, Toke H=C3=B8iland-J=C3=B8rgensen = wrote: >>>=20 >>> Kan Yan writes: >>>=20 >>>> Hi Toke, >>>>=20 >>>> Thanks for getting this done! I will give it a try in the next few >>>> days. A few comments: >>>>=20 >>>>> The estimated airtime for each skb is stored in the tx_info, so we = can >>>>> subtract the same amount from the running total when the skb is = freed or >>>>> recycled. >>>>=20 >>>> Looks like ath10k driver zero out the info->status before calling >>>> ieee80211_tx_status(...): >>>> int ath10k_txrx_tx_unref(struct ath10k_htt *htt, >>>> const struct htt_tx_done *tx_done) >>>> { >>>> ... >>>> info =3D IEEE80211_SKB_CB(msdu); >>>> memset(&info->status, 0, sizeof(info->status)); >>>> ... >>>> ieee80211_tx_status(htt->ar->hw, msdu); >>>> } >>>=20 >>> Ah, bugger; I was afraid we'd run into this. A quick grep indicates = that >>> it's only ath10k and iwl that do this, though, so it's probably >>> manageable to just fix this. I think the simplest solution is just = to >>> restore the field after clearing, no? >>>=20 >>>> We need either restore the info->status.tx_time_est or calling >>>> ieee80211_sta_update_pending_airtime() in ath10k before tx_time_est >>>> get erased. >>>>=20 >>>>> + if (local->airtime_flags & AIRTIME_USE_AQL) { >>>>> + airtime =3D ieee80211_calc_expected_tx_airtime(hw, = vif, txq->sta, >>>>> + = skb->len + 38); >>>>=20 >>>> I think it is better to put the "+ 38" that takes care of the = header >>>> overhead inside ieee80211_calc_expected_tx_airtime(). >>>=20 >>> Hmm, no strong opinion about this; but yeah, since we have a = dedicated >>> function for this use I guess there's no harm in adding it there :) >>>=20 >>=20 >> Silly question, is this Overhead guaranteed to be 38 Bytes for all >> eternity? Otherwise a variable or a preprocessor constant might be >> more future proof? >=20 > Well, yeah, as long as we're sending Ethernet packets. Which is kinda > baked into the WiFi standard :) >=20 > -Toke