Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp8157852ybn; Tue, 1 Oct 2019 04:12:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqxqbZYd6GhAU4Sl7baVepmjuzjiwg7FOS2/iYz6I0+uKMum3aNQvfUNVihHPxTN9ZdualLV X-Received: by 2002:a50:f616:: with SMTP id c22mr24404051edn.235.1569928334529; Tue, 01 Oct 2019 04:12:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569928334; cv=none; d=google.com; s=arc-20160816; b=ikKRaNwhxtK75PIcuognd5rgoNwaVukBCMJQogviqdSkUL/n/tbGGdJZNsXiZdMu4V VjJmwKHzP+iRPajgZy30B+9QpmAYYCMXZVvLAirX4dmQyaJctDRDrplUr3YW5/UyyCaG 8aJYcbG3TdvwghXjszwG2dUyAzGWPIVp0/DHiWKkeB4PkgQ4Nb/cJv/RpUesyiKFKzEV N/ZN21U2d6vAVyhoU/bJJUpCPxzfikbglSE0SPHwm4q/NJq02z28DbHN/ar3owe/TWfo WrjlNsfe0LpxhanS1wpMT3N3EBXrht0PdH2A6lpSOaUBpgucFAoJdPkxBCgIK0uPrJfY 4mdw== 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:to:from:subject:message-id; bh=8EUpUhQQPG/cl3R/FQgIF8j0Z6HDDYExp6RY0GYqEbE=; b=eaEVnJCkC6BxM9Fhimzn0qhxogWHqQAsMQ0F2qjZuf0Xlzrq4tDO+Ev2/HJ+ycEk0e W27EsRPC+w14caAkFrS0A/f4QeIJFZT/ibIStkeH0P2JWrNk2r6nPIP5DE/kiHcaBN80 V31DZ+z7OBV5QW12jnLbp5+NRhv7Rd9LYd3+oQ39yKki3YqZLsA9PoKy58w/olBkdsGA A7RZmkuIsZbHAMVX7KNJt5HS8SHG2MytmUjO6hg68LBM4spnXCBfPMgkeAayXk2YeUYC tKRl9bykR3iZ0Hcwfs7UjJCC2uF41Irp5CmuwRkUn6vff5s0aetPLL6S1GQu8Z1jzOBx zp8w== 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 h51si9126901eda.85.2019.10.01.04.11.49; Tue, 01 Oct 2019 04:12:14 -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; 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 S1726885AbfJALLe (ORCPT + 99 others); Tue, 1 Oct 2019 07:11:34 -0400 Received: from s3.sipsolutions.net ([144.76.43.62]:59952 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725900AbfJALLe (ORCPT ); Tue, 1 Oct 2019 07:11:34 -0400 Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.92.2) (envelope-from ) id 1iFG44-0006Ka-VN; Tue, 01 Oct 2019 13:11:33 +0200 Message-ID: <5bb044d9ade19dd4e15533ba5a042605be01d477.camel@sipsolutions.net> Subject: Re: [PATCH 2/2] mac80211: minstrel_ht: replace rate stats ewma with a better moving average From: Johannes Berg To: Felix Fietkau , linux-wireless@vger.kernel.org Date: Tue, 01 Oct 2019 13:11:32 +0200 In-Reply-To: <8017042b74a05df72a7ebfb5ec21fc7cc088ed4e.camel@sipsolutions.net> References: <20190929154646.90901-1-nbd@nbd.name> <20190929154646.90901-2-nbd@nbd.name> <017c1a59-edf2-0a1a-aa8c-3c32e57d6cd0@nbd.name> <8017042b74a05df72a7ebfb5ec21fc7cc088ed4e.camel@sipsolutions.net> 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 On Tue, 2019-10-01 at 13:06 +0200, Johannes Berg wrote: > On Tue, 2019-10-01 at 12:52 +0200, Felix Fietkau wrote: > > Might be useful, yes. The main issue here is that the period / window > > size has to be hardcoded through the coefficient values, unless we find > > a way to do floating point math, including exp() and cos() at compile > > time, including conversion to fixed point. > > Works fine for me? > [snip] I guess really the question is - how do we ensure that happened and fail if it didn't? johannes