Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp3151639ybn; Fri, 27 Sep 2019 01:49:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqwr3TnVOUv2w99HRqPGxUboEJc/BYs9H+aRND5avHwTzen9AHFGZmdrX05q5pdVxlZQSGPE X-Received: by 2002:a17:906:c82d:: with SMTP id dd13mr6650479ejb.169.1569574189015; Fri, 27 Sep 2019 01:49:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569574189; cv=none; d=google.com; s=arc-20160816; b=GdASpUPXI08Tbb7ICTHyURDvOwjXVD2Jg6iRFvrhrTTvdg5V+Mzmdk6ihw9IHw3G96 7YzGwzgtbp+Lo0jACGLzE6luFGv+qHYxjeWSQhxQNiA9iOf9JEhqSBakf7yqZYC9r+25 scmJGgS9D3uCuJTsRVIZ2phTyJ8+blEfMsIp4XbB/TXZxnuYhG8JbXDddWOGZyv8S29y faFdxhOS/XMigi2t5qlVjQfbX+PWuprkZAeXF2MEnjiFHrAQTiQZ1WHaWUFBWmzHCu+l iQNRxl2lJk1Rf7fv62KqF9t/fMnz4JBoGuQW8rKAvvVbDaVHwFJP6H1UbGXIrycfakcv JWLQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:to:subject:dkim-signature; bh=4TbuAg0f1vW/k/Q6fFLZAZgR58dttZia1VaF+IuDaGw=; b=vVTk1Xi1cIsvdJxccMufGUEh/wWv9BXIDFeEDN06IEj/dpkL2caZZPUZvra7exP/ow oONuE5XUamfqWT9TzKny2yLul8MhVDWrGi6beRICUiyXQEJs87KeldzA+NQm1K4lZpV+ u2c1djWly+4Ugs79FHAR8G7XjtIURTUrMrBw9Nw3qNfsb5wsY2WEWAJ8+o0WXnpRpuPz JaMMXwEb23iy0xck0rPW4ua8DPV5jTPJHFrxOGzUO8ezaL+8KwI8a1EZ76YkjLPY2jRz E1LXCHIeSxXFas+x1KYyEWVZ+U1aEE7uSsCehLyMLTmHsePRfQSnYyJky64Mh9izd+NU Gwtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=Sfmm7JML; 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 j47si1094295ede.117.2019.09.27.01.49.23; Fri, 27 Sep 2019 01:49:49 -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=fail header.i=@nbd.name header.s=20160729 header.b=Sfmm7JML; 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 S1725956AbfI0IrP (ORCPT + 99 others); Fri, 27 Sep 2019 04:47:15 -0400 Received: from nbd.name ([46.4.11.11]:43972 "EHLO nbd.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725882AbfI0IrP (ORCPT ); Fri, 27 Sep 2019 04:47:15 -0400 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=4TbuAg0f1vW/k/Q6fFLZAZgR58dttZia1VaF+IuDaGw=; b=Sfmm7JMLCb7WcGO1Ay+6AQipfI T8kbfKhP9B+wss/F0TTDHyMS8XAz41vUZv0JOhcQs9FfcuLi59qZA6NyJNx7hRg5Mxtor2pQh/huO pxDslB3I6Go1ASxjLw3xcCLr8o+u9yaej5YKzB891Nb41Gp8LJWXC2YT6wb7LBNcQKKA=; Received: from p54ae9b80.dip0.t-ipconnect.de ([84.174.155.128] helo=nf.local) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1iDluE-00073s-0J; Fri, 27 Sep 2019 10:47:14 +0200 Subject: Re: [PATCH 10/15] mt76: mt76x02: track approximate tx airtime for airtime fairness and survey To: =?UTF-8?Q?Toke_H=c3=b8iland-J=c3=b8rgensen?= , linux-wireless@vger.kernel.org References: <20190926174732.42375-1-nbd@nbd.name> <20190926174732.42375-10-nbd@nbd.name> <871rw218ty.fsf@toke.dk> <2475938e-b82c-9924-f7db-f475ec2530b3@nbd.name> <87sgoiyw0p.fsf@toke.dk> From: Felix Fietkau Autocrypt: addr=nbd@nbd.name; prefer-encrypt=mutual; keydata= xsDiBEah5CcRBADIY7pu4LIv3jBlyQ/2u87iIZGe6f0f8pyB4UjzfJNXhJb8JylYYRzIOSxh ExKsdLCnJqsG1PY1mqTtoG8sONpwsHr2oJ4itjcGHfn5NJSUGTbtbbxLro13tHkGFCoCr4Z5 Pv+XRgiANSpYlIigiMbOkide6wbggQK32tC20QxUIwCg4k6dtV/4kwEeiOUfErq00TVqIiEE AKcUi4taOuh/PQWx/Ujjl/P1LfJXqLKRPa8PwD4j2yjoc9l+7LptSxJThL9KSu6gtXQjcoR2 vCK0OeYJhgO4kYMI78h1TSaxmtImEAnjFPYJYVsxrhay92jisYc7z5R/76AaELfF6RCjjGeP wdalulG+erWju710Bif7E1yjYVWeA/9Wd1lsOmx6uwwYgNqoFtcAunDaMKi9xVQW18FsUusM TdRvTZLBpoUAy+MajAL+R73TwLq3LnKpIcCwftyQXK5pEDKq57OhxJVv1Q8Xk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: Fri, 27 Sep 2019 10:47:13 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.1.0 MIME-Version: 1.0 In-Reply-To: <87sgoiyw0p.fsf@toke.dk> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 2019-09-27 10:37, Toke Høiland-Jørgensen wrote: > Felix Fietkau writes: > >> On 2019-09-27 09:45, Toke Høiland-Jørgensen wrote: >>> 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? >> Sure. I mainly put it in the driver because I wanted to get it working, >> tested and merged first without having to wait for a mac80211-next -> >> wireless-drivers-next merge. > > Right, OK. So that means another patch set on top of this to move it > afterwards? Don't suppose you can be convinced to take care of that as > well? :) I could, but I don't know when I will have time for it, since my plate is pretty full at the moment. - Felix