Return-path: Received: from mail-qk0-f195.google.com ([209.85.220.195]:35850 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750928AbeCZHXB (ORCPT ); Mon, 26 Mar 2018 03:23:01 -0400 Received: by mail-qk0-f195.google.com with SMTP id o205so7458309qke.3 for ; Mon, 26 Mar 2018 00:23:01 -0700 (PDT) From: Sven Eckelmann To: ath10k@lists.infradead.org Cc: Anilkumar Kolli , linux-wireless@vger.kernel.org, Antonio Quartulli , Felix Fietkau , Marek Lindner , Johannes Berg Subject: Re: [PATCH v2] ath10k: Implement get_expected_throughput callback Date: Mon, 26 Mar 2018 09:22:54 +0200 Message-ID: <2322769.sx4MhzsvNg@bentobox> (sfid-20180326_092305_775300_A4E0DC3F) In-Reply-To: <1521814034-17880-1-git-send-email-akolli@codeaurora.org> References: <1521814034-17880-1-git-send-email-akolli@codeaurora.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1630432.z5t82OcykK"; micalg="pgp-sha512"; protocol="application/pgp-signature" Sender: linux-wireless-owner@vger.kernel.org List-ID: --nextPart1630432.z5t82OcykK Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" On Freitag, 23. M=E4rz 2018 19:37:14 CEST Anilkumar Kolli wrote: > +static u32 ath10k_get_expected_throughput(struct ieee80211_hw *hw, > + struct ieee80211_sta *sta) > +{ > + struct ath10k_sta *arsta =3D (struct ath10k_sta *)sta->drv_priv; > + > + return ewma_sta_txrate_read(&arsta->ave_sta_txrate); > +} On Freitag, 23. M=E4rz 2018 19:11:48 CEST akolli@codeaurora.org wrote: > > Antonio and Felix, please correct me when this statement is incorrect. > > > > The expected_throughput as initially implemented for minstrel(_ht) is=20 > > not > > about the raw physical bitrate but about the throughput which is=20 > > expected for > > things running on top of the wifi link. See > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/comm= it/?id=3Dcca674d47e59665630f3005291b61bb883015fc5 > > for more details > > > > when I interpret your change correctly then your it doesn't get the > > information about packet loss or aggregation and doesn't do anything=20 > > convert > > from raw physical rate to something the user could get see. It will=20 > > just > > overestimate the throughput for ath10k links and thus give wrong=20 > > information > > to routing algorithms. This could for example cause them to prefer=20 > > links over > > ath10k based hw when mt76 would actually provide a significant better > > throughput. > > > > Beside that - why is the ave_sta_txrate only filled when with new=20 > > information > > when someone requests the current expected_throughput via > > get_expected_throughput. I would have expected that it is filled=20 > > everytime you > > get new information about the current rate from the firmware > > (ath10k_sta_statistics). > > > Yes. ideally it should be doing the rate avg. of all the sent packets. No, not the PHY rate average - but the "throughput avg". And the "ideally"= =20 here sounds a little bit like in "Our medical doctor would ideally not=20 decapitate each patient but we have at least an MD". Kind regards, Sven --nextPart1630432.z5t82OcykK Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEF10rh2Elc9zjMuACXYcKB8Eme0YFAlq4n84ACgkQXYcKB8Em e0YMvA/+OxKTpxS8nz8W+shQ2++sLaGLLahuxYB9oiIYqwgdpt2py5fjyp10drDP PxOPRxHLpvyPjjTws1kMtfndwtHWRqq0Armn4gEiejzyFW6oKabgatA9pT4TcFk7 /pq/padnukosGX9BlkeqJZ+sxjjQm2fSLxDUAyKMGj/or5a8GFX3FGi2+J8VrnsB PrcTKJEv9IWshNs9FpIUGOGoP7PXFmG4gItfmGjgylnlH+zQqC3sLpQtKOmfdUOt HW6OGWslzXVDilDvLnrTWZMPEzdhH4BMqldVA0rK3/k7jsiBXoB4btYv5aN3D8Zt FTTZyHhwMoYb+yHOlJcF30id0Qw4tqX4mWcPaSHZj0uyd7bLDDCQe3KHgQUxI/Do GT9p817NCcLUMvOg792AovV34LgTnN+N8gox4OjSYD7cyXA65OYK2Io9jqOSYRGr mytI3tcLvF7eTX14wkPXPAB32/rIh8gefN14wST0mcWPnk5eEd8Vujz4qDtscCIy gtL0yjsg4o6Koklb9oqYCg9KLV6xOW+ZryKYYgNi/+WIQmd7TMwM+F9Vy3dpm+Nc lx4ZbwOy48tiiKRJGfxyrSm8TP/BfkSXexAVdA4dyWTAagMngSATCsDASvCkYYIg iUCm4EloXSD8TbzD7oE/9WfxcpNcwZAOOX0IrRSYO9cuHNvSFRM= =vYH3 -----END PGP SIGNATURE----- --nextPart1630432.z5t82OcykK--