From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by lists.bufferbloat.net (Postfix) with ESMTPS id A46B43CB3F for ; Thu, 26 Sep 2019 01:57:36 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1569477456; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+Yu/mX+8B9QuHL4hN9k+El6bWskPSkNQA2rcFqy57vI=; b=fUbvH6JNDS1nCfR9fDMAdhav5PcRrNT+pj9bOeFph/Qe3Ct9QfhRPEOTJfJ83+aLpHjKp2 MeU2PDSlLdURpyo9gXcZT3+K8RZKyez15d6uV//rj26c/CQPS/41A9XPNSkXsk+4WiMwco TwCLbkwIldir2OCucCaK8lT4n3oHqPs= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-162-nqS3lb2oNdaN5EllOFQPTA-1; Thu, 26 Sep 2019 01:57:34 -0400 Received: by mail-ed1-f69.google.com with SMTP id n12so608272edr.22 for ; Wed, 25 Sep 2019 22:57:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=ucadyRpb1IAjd+Ci9gbzaePonwLnfEH0c/EZa1gvDYA=; b=LMLv8yRQhG+tHoU1RHLoYGZSUfzbNhmP6Gi7MB5SDwhH1GqdN8FOPU5EChxaQeabnb uNlMCbFp3ZT1xAmphkdWvlZKRE2f8l97lWZBk9HeNCo5fStC/CJHG8c3QHIydz+RhyE6 qNRGVcDr8EGsrprwOKZktyGZTeiybEnHo5bTyTTauDc00IDe7ZVRIeNyQjpBpojvs68e baR+RR9oc4t4Gg81tHSCcg1PlrrGrhmKWnw10yjBPjYJpLzO/u5V5T0V/Jvg64ABOMaI 75gLqdkkotBTN6wayxMb2K103hFlpeubfwyrIC1wGhg+Rf6RGGLSY4QVbknBjp/TVIaE n7qQ== X-Gm-Message-State: APjAAAUoZmpTV/me7i3owOeI2uGhdGj51dODpmWdxm5lPqHpNZbc012a eg0y0J2u7mdbnfGN8yspPrF6D/AVBV2Ga9QLxBSwbuDDcFXilheRWUod4WQ7+qg3mfc++ln4Mwh drDK2w792Tf5gzVAjtRJgu1wBcbpIsCQFKII= X-Received: by 2002:a17:906:c4b:: with SMTP id t11mr1560871ejf.131.1569477453432; Wed, 25 Sep 2019 22:57:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqzZQkbrsuzYGBmNMjgwjNSUZV1jZsLX07Efpokm64PxqfNa8lwKXgeX06dISnqxi1DS0IQbZA== X-Received: by 2002:a17:906:c4b:: with SMTP id t11mr1560865ejf.131.1569477453244; Wed, 25 Sep 2019 22:57:33 -0700 (PDT) Received: from alrua-x1.borgediget.toke.dk ([2a00:7660:6da:443::2]) by smtp.gmail.com with ESMTPSA id v8sm257914edi.49.2019.09.25.22.57.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2019 22:57:32 -0700 (PDT) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id D82D318063D; Thu, 26 Sep 2019 07:57:31 +0200 (CEST) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= To: Kan Yan Cc: Yibo Zhao , Johannes Berg , linux-wireless@vger.kernel.org, make-wifi-fast@lists.bufferbloat.net, John Crispin , Lorenzo Bianconi , Felix Fietkau , linux-wireless-owner@vger.kernel.org In-Reply-To: References: <156889576422.191202.5906619710809654631.stgit@alrua-x1> <156889576869.191202.510507546538322707.stgit@alrua-x1> <2f6b649dcb788222e070ebb5593918c7@codeaurora.org> <87y2yc3ieb.fsf@toke.dk> <8c5a3a011f03d4dd4165b838a2b8bc72@codeaurora.org> <87mues35d4.fsf@toke.dk> X-Clacks-Overhead: GNU Terry Pratchett Date: Thu, 26 Sep 2019 07:57:31 +0200 Message-ID: <87k19v38hg.fsf@toke.dk> MIME-Version: 1.0 X-MC-Unique: nqS3lb2oNdaN5EllOFQPTA-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Subject: Re: [Make-wifi-fast] [PATCH RFC/RFT 4/4] mac80211: Apply Airtime-based Queue Limit (AQL) on packet dequeue X-BeenThere: make-wifi-fast@lists.bufferbloat.net X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Sep 2019 05:57:36 -0000 Kan Yan writes: >> > Do you mean we will use airtime reported by FW to calculate >> >> > local->airtime_queued in case we have FW reporting airtime? >> No, the opposite; if the firmware can't report airtime, we can use the >> estimated values to feed into report_airtime() for the fairness >> calculation... > The local->airtime_queued is the 'future' airtime for the packet > pending the queue. It can't be replaced by the after the fact airtime > reported from firmware for the frames transmitted. No, but on tx_completion we could do something like this: airtime =3D CB(skb)->tx_time ?: CB(skb)->tx_time_est; ieee80211_report_airtime(sta, airtime); That way, if the driver sets the tx_time field to something the firmware reports, we'll use that, and otherwise we'd fall back to the estimate. Of course, there would need to be a way for the driver to opt out of this, for drivers that report out of band airtime like ath10k does :) -Toke