Received: by 2002:a17:90a:88:0:0:0:0 with SMTP id a8csp169749pja; Fri, 22 Nov 2019 05:00:45 -0800 (PST) X-Google-Smtp-Source: APXvYqysOEFnHv9WeeUTqRZZ1UzJ65NyU8fKLlnfCHng3fbS14GzEePs6AB9Ra/B18uv6exrNEs/ X-Received: by 2002:a05:6102:c1:: with SMTP id u1mr9771972vsp.145.1574427645240; Fri, 22 Nov 2019 05:00:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574427644; cv=none; d=google.com; s=arc-20160816; b=Z8x0nwlkJwREgmNwhJQz3MF1gPyYSltN5VvxBoRon+toQoZqRGHcE3GPMPTlmuraP+ JqyiWoMLIoLEORaTlghnu7EVlmstaZggvhcJ+2fG25KtUtfrFFW7yzm2Ga+8z0l8bLZA Ig4r3hkx/HdOR+y2tvX9FDqaMNJX0uLB+Tt7wl8XqU8VR5ZEKigUcINz1rKGx4bz1c+n cwx7aXAWVLYqxWHDM1zE4HaHixr52FRkIKh3mWDrW1YvrzegKd3+V/7ykjX/Ghuw4eRN vf6nWM94mMG9MqFor0MAE+lF3Gbtqm3bWxIWCq8yMzt0vPR4tg2Vs9VOaDWBrIonJhtz Y/5A== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=ptkhLI8KpeSBGFk5SuiR3dSc9Wwmd1QtysY1h84kS24=; b=oLOcPXs8YKylG4UqkbsB/SUrqju8KpoOZvYPZy7T46FplOhGFXbDjlbYG4262H1C9l bvciVRrK027ymTO7eJQBVy/KwCgQz+q/cSdmZQyXgdajbYQEWrCbdRHwuPcP2Ra+P2Kt 3WLGghxTBLGA9/17Az8q/TZCmw34X3WaDpVODq+KWpifw/5I9h/UYPD9fjuK6WGBt5is DpnFngA5/A0TWtiMfGFuHMXl6zAMt2yqvSic0i3eIdsUSsBYpHF2tbZ+m7cINZ+syMAY WoYXU/SCsYe2764DRhRAuNma9YpDvC1I+0S3seEwEqRGkhWW748vowKMX+GXNMwzKLD2 7yKQ== ARC-Authentication-Results: i=1; mx.google.com; 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 s13si4116249ejx.144.2019.11.22.05.00.18; Fri, 22 Nov 2019 05:00:44 -0800 (PST) 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; 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 S1727219AbfKVNAE (ORCPT + 99 others); Fri, 22 Nov 2019 08:00:04 -0500 Received: from s3.sipsolutions.net ([144.76.43.62]:45132 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726813AbfKVNAE (ORCPT ); Fri, 22 Nov 2019 08:00:04 -0500 Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.92.3) (envelope-from ) id 1iY8Xa-0003lh-4d; Fri, 22 Nov 2019 14:00:02 +0100 Message-ID: Subject: Re: [PATCH v11 2/4] mac80211: Import airtime calculation code from mt76 From: Johannes Berg To: Toke =?ISO-8859-1?Q?H=F8iland-J=F8rgensen?= , Kan Yan Cc: linux-wireless@vger.kernel.org, make-wifi-fast@lists.bufferbloat.net, nbd@nbd.name, yiboz@codeaurora.org, john@phrozen.org, lorenzo@kernel.org, rmanohar@codeaurora.org, kevinhayes@google.com Date: Fri, 22 Nov 2019 14:00:01 +0100 In-Reply-To: <87tv6w3w92.fsf@toke.dk> References: <20191119060610.76681-1-kyan@google.com> <20191119060610.76681-3-kyan@google.com> <3e7bea0cc643714ec90978a7999022544a39b118.camel@sipsolutions.net> <87tv6w3w92.fsf@toke.dk> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5 (3.30.5-1.fc29) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org > Well, one calculates bitrates while the other calculates airtime? ;) :) > But yeah, I get what you mean. I think Felix went through quite some > pains to structure this code to avoid divisions in the fast path. I > guess that is the main blocker for cfg80211_calculate_bitrate() to be > used instead (assuming we do want to consolidate them eventually). Not > sure if that can be fixed easily though? We could also do it the other way around? Or maybe we should keep both and use them as a sanity check for each other :P johannes