Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp3123444ybn; Fri, 27 Sep 2019 01:13:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqzuf9X1hOtUpLagaG2pPfaokViivwMSpq5ivAMEHTo1M23cGhP5vZnja/MzJsw0ovUFpx7K X-Received: by 2002:a17:907:215a:: with SMTP id rk26mr6682721ejb.49.1569572004195; Fri, 27 Sep 2019 01:13:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569572004; cv=none; d=google.com; s=arc-20160816; b=KydRmLtnWuPbYcmMl36C2sV+tcz2UEhktcW132oDLUjw8tZxOzUFvCbn1MB6CFrf6W VJaMtyr04UihcYiufkO/bJ9VVKzI0Jux/lZiJPrBEeQy0hBBFLa5CcqQ7pgh928uZx0/ 4dCOfxPJ0Jpw7bGwxc162SRSzUTw0Efc68gzHtMB8OBVOoHOv6LtJaaMum/x3DhNoqSH ebAC215rdWcKJl5OH8sS5UMp8xTu5oJ40a6He4K3OGPLITX2sGUP7OWD3krnjpb/+b0j BAkFSacZgqVYEs918vRWZfA6bqdb6u1h6sJNHYBRRah6jY26vHZrA1N9dFhlLI95c7de 3ucg== 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=LOCWdYb42EnAGOKag0OCo+TWHxZGkx9JPLaLRHCzAO0=; b=AVyOTLpcBKIvYGMFolZO0xe7BpKH7o4A0MpYUcUPrdqcnN7aZncAVb1gLqo2Jkzt00 vYlOXa6hb/WukrQLWxmKFPZPJBSWFiQoTDI6T03mW6adNzOxZiGqjX+BC2oZskL8iCDO ulknhIkxR+LlrDSWjpcT0g96O5+LGN8WJUW2sFmDhCVMhbOR3LT1ZJT6574MmAJz9PjF 1ZtSvxzy+1e4c1Z2W21HKHy2QlzixZYE725nwCXpSSx0gMrpED0bRkuPB158tw8IKfbm +wIFwyOhzvUynMyrQmhn9Xvp330ce/JoWFTOJdJsLCaQNGNTwMDPwrQkYVZiOMkr3/OR Zamw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=Ks2qQkF1; 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 g8si1102706edb.335.2019.09.27.01.12.57; Fri, 27 Sep 2019 01:13:24 -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=Ks2qQkF1; 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 S1727173AbfI0ILg (ORCPT + 99 others); Fri, 27 Sep 2019 04:11:36 -0400 Received: from nbd.name ([46.4.11.11]:42482 "EHLO nbd.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726988AbfI0ILg (ORCPT ); Fri, 27 Sep 2019 04:11:36 -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=LOCWdYb42EnAGOKag0OCo+TWHxZGkx9JPLaLRHCzAO0=; b=Ks2qQkF1HTWJonO/IQQCjk1nwn LEuEgKZv5xGzEn73GqLZkE8+Xif02erSHrWLXYwzYkUuGr2R84OhcNJLipG1H+8FV3+fkIULstSAO 7UGJUIgIoYGUK4Kdhp+wwJi1kV5md58+snNZpUVfz7P3RtXoaSQHl2za0MvPQT1n00vc=; 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 1iDlLi-0005om-6S; Fri, 27 Sep 2019 10:11:34 +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> 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+R73TwLq3LnKpIcCwftyQXK5pEDKq57OhxJVv1Q8XkA9Dn1SBOjNB l25vJDFAT9ntp9THeDD2fv15yk4EKpWhu4H00/YX8KkhFsrtUs69+vZQwc0cRmVsaXggRmll dGthdSA8bmJkQG5iZC5uYW1lPsJgBBMRAgAgBQJGoeQnAhsjBgsJCAcDAgQVAggDBBYCAwEC HgECF4AACgkQ130UHQKnbvXsvgCgjsAIIOsY7xZ8VcSm7NABpi91yTMAniMMmH7FRenEAYMa VrwYTIThkTlQzsFNBEah5FQQCACMIep/hTzgPZ9HbCTKm9xN4bZX0JjrqjFem1Nxf3MBM5vN CYGBn8F4sGIzPmLhl4xFeq3k5irVg/YvxSDbQN6NJv8o+tP6zsMeWX2JjtV0P4aDIN1pK2/w VxcicArw0VYdv2ZCarccFBgH2a6GjswqlCqVM3gNIMI8ikzenKcso8YErGGiKYeMEZLwHaxE Y7mTPuOTrWL8uWWRL5mVjhZEVvDez6em/OYvzBwbkhImrryF29e3Po2cfY2n7EKjjr3/141K DHBBdgXlPNfDwROnA5ugjjEBjwkwBQqPpDA7AYPvpHh5vLbZnVGu5CwG7NAsrb2isRmjYoqk wu++3117AAMFB/9S0Sj7qFFQcD4laADVsabTpNNpaV4wAgVTRHKV/kC9luItzwDnUcsZUPdQ f3MueRJ3jIHU0UmRBG3uQftqbZJj3ikhnfvyLmkCNe+/hXhPu9sGvXyi2D4vszICvc1KL4RD aLSrOsROx22eZ26KqcW4ny7+va2FnvjsZgI8h4sDmaLzKczVRIiLITiMpLFEU/VoSv0m1F4B FtRgoiyjFzigWG0MsTdAN6FJzGh4mWWGIlE7o5JraNhnTd+yTUIPtw3ym6l8P+gbvfoZida0 TspgwBWLnXQvP5EDvlZnNaKa/3oBes6z0QdaSOwZCRA3QSLHBwtgUsrT6RxRSweLrcabwkkE GBECAAkFAkah5FQCGwwACgkQ130UHQKnbvW2GgCfTKx80VvCR/PvsUlrvdOLsIgeRGAAn1ee RjMaxwtSdaCKMw3j33ZbsWS4 Message-ID: <2475938e-b82c-9924-f7db-f475ec2530b3@nbd.name> Date: Fri, 27 Sep 2019 10:11:33 +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: <871rw218ty.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 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. If we move it to mac80211, we can also make ath9k use it. My implementation should be faster than the ath9k duration calculation. - Felix