Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp3099789ybn; Fri, 27 Sep 2019 00:46:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqxKEEYJSyuziE485H8htUFP2SX1ag9ISSk3hr293NPmKjKbNvvSsTQq5gAy+GI/K/G1zvsR X-Received: by 2002:a50:b685:: with SMTP id d5mr2998076ede.258.1569570368413; Fri, 27 Sep 2019 00:46:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569570368; cv=none; d=google.com; s=arc-20160816; b=NAG+qnnu97MHSKwQn2iOVS/q69gtJ5qtno08e/DcmYj/TiLw53+EonJ/OQvo99HHs/ AVA0nhNr7sWVl3INoVMzTMxGuq6JmD7R4eR5gClheIIt7X7YxzpjbSr8c9XJPoOSdIQR 7MwmgJHUGb875gf7p3TsRUkvs6/b03VKHN8dcyis5/nJKnFm9DHNAgp1zoTFQjs6rDi2 xo7tbNlxeotW9VA+eSVT0MVe1YOt8Q4a3/POzbZy1jAm0AiPo0qtwjA5JrjBwH0ejOBy CgmzppbqQnB2mhbk+Wv1Bs6D1Rj0ZbYWR6DjvCX2wJzNoTxwO1jEa/K48Xg+icY3458d onNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:to:from :dkim-signature; bh=7Ia2aLBxThsibVAHwTM7qcS6oFxLod1X/XmfvZqIITE=; b=i5xydDOonXm2J8LFjo0/UVNNnh7YnHiXOv1QNhVYFOEjfVuwwfaxKIYMrRIWR9iS2O xmBVeShHiDh8tk+DInC8VqHyF98kckqmR4CvKxCDlgfg/hkjay+kEfiIJQXOMpDAE50v G5jj/zedjtqadjIzXG2E0WGnkgxV7VIf7aQ12CKLtrni9EYbX9JZ2TkYBMCKNkEbyN7X sdrn3Cl8r86yU+nCMFa3iwX0nRH8IOWDNmAJ39o6pGOImz4OI3vmokfD+9LR/cAFLLaa xhAnQSpSWkx/F8guXbVP5o4OPgrVXznOh63Ixr/KU8ZvwLmU2mQTXmYoUcqxbgR8ELeb lt5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=XYAaoR4l; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b9si2297118eju.269.2019.09.27.00.45.31; Fri, 27 Sep 2019 00:46:08 -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=@redhat.com header.s=mimecast20190719 header.b=XYAaoR4l; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725820AbfI0HpT (ORCPT + 99 others); Fri, 27 Sep 2019 03:45:19 -0400 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:40904 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725769AbfI0HpT (ORCPT ); Fri, 27 Sep 2019 03:45:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1569570318; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7Ia2aLBxThsibVAHwTM7qcS6oFxLod1X/XmfvZqIITE=; b=XYAaoR4l8U/D5qrGYPmPx8rrMob/GLFmfPyqlokhI2gxH71mVgIGE41PEqz6hyIo6H1D/R pkLdph3RrW4LY0PPR+blXNikvLnFAmBh1HmrMEOjLUnzy47GhowliCYHU8XSqd3SXmfU0S Zlv4X/Y0l8lm5XdMPBsL0SxKVwS1vFo= Received: from mail-lf1-f69.google.com (mail-lf1-f69.google.com [209.85.167.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-121-BM2YPx5ONSa4azD7Gq_z2g-1; Fri, 27 Sep 2019 03:45:16 -0400 Received: by mail-lf1-f69.google.com with SMTP id e1so1216128lfb.12 for ; Fri, 27 Sep 2019 00:45:16 -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:subject:in-reply-to:references:date :message-id:mime-version; bh=7Ia2aLBxThsibVAHwTM7qcS6oFxLod1X/XmfvZqIITE=; b=tfclMXYYkZ+5orevwO/ykQ8gH10JSvi3H8loMAlK2K0YIUG1axFKu0PQONqIPCi+Xd AuPbwqhZ/n9BI1ni4RjOGTDF92Tdbik/i3ZcfUrQkz7r1WwZsGSrxZ6M+5TvS2aITvWc 0Bfq/EAkdN/3lE1ZWZSGVhiFHwLL9gTuIzwZ9Qvlq91UHWHHarAfckMHixPhQSHNlrU9 l1sCSwIGzPWbbYu8t1tX9dd6hj86v7vGL2ob1vpOSvRfTdttgxnLvr1/dQzaomTKeMyG 8V4NE+aLpqcqpCqpx1rTyf7Qo6SHX+IwZPI/pjVzc283XAE96qncjQjeFBuic3KEFI8L s2cA== X-Gm-Message-State: APjAAAX9Oa9TagOFfFOk3exQioKnxg5qLIDE9GCSb3fVayoKLjUa/Rfe eq2rKpCNwMkmvFIw0fzKby4Aq0rjVSLuJ9xSnI751d0gyOu5O5djHA1CTOaAC/gWKRf48C5G1RE 2O7Qpl9pM4KFnrWdVePpT5FzkKNQ= X-Received: by 2002:a2e:5dc3:: with SMTP id v64mr1890812lje.118.1569570315118; Fri, 27 Sep 2019 00:45:15 -0700 (PDT) X-Received: by 2002:a2e:5dc3:: with SMTP id v64mr1890807lje.118.1569570314988; Fri, 27 Sep 2019 00:45:14 -0700 (PDT) Received: from alrua-x1.borgediget.toke.dk ([2a00:7660:6da:443::2]) by smtp.gmail.com with ESMTPSA id 126sm370745lfh.45.2019.09.27.00.45.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Sep 2019 00:45:14 -0700 (PDT) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id 3AD8E18063D; Fri, 27 Sep 2019 09:45:13 +0200 (CEST) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= To: Felix Fietkau , linux-wireless@vger.kernel.org Subject: Re: [PATCH 10/15] mt76: mt76x02: track approximate tx airtime for airtime fairness and survey In-Reply-To: <20190926174732.42375-10-nbd@nbd.name> References: <20190926174732.42375-1-nbd@nbd.name> <20190926174732.42375-10-nbd@nbd.name> X-Clacks-Overhead: GNU Terry Pratchett Date: Fri, 27 Sep 2019 09:45:13 +0200 Message-ID: <871rw218ty.fsf@toke.dk> MIME-Version: 1.0 X-MC-Unique: BM2YPx5ONSa4azD7Gq_z2g-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Felix Fietkau writes: > Estimate by calculating duration for EWMA packet size + estimated A-MPDU > length on tx status events Would it make sense to move some of this code into mac80211? If we're going to do airtime estimation for queue limiting it may make sense to use this instead of the simplistic estimate I used in my RFC patch? -Toke