Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp4965422ioo; Tue, 31 May 2022 16:14:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxxlRRYHtavhNiaPYkfyl7M/X042VYJV9xPXXYAVOK06IZvzKfFE5OJnvsQdxZDDM3K6Dtc X-Received: by 2002:a17:907:c13:b0:704:b2c8:fd2c with SMTP id ga19-20020a1709070c1300b00704b2c8fd2cmr2737711ejc.440.1654038852235; Tue, 31 May 2022 16:14:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654038852; cv=none; d=google.com; s=arc-20160816; b=cgK5kajOarao3Dti76q+4jPhrL/vqXUEhrL0AYYiOH57WkAUbYfLVsZqUIzHMxw/lt fuxxmFms7GhkGYmdY7Copr2A3q438EqCGeyMVGX15O55XRc8MrYIkiAe2mELJsXfot14 Oozlf8b70jtZNiTOZpGs6LJBo2jYUh4Lq02uPfNTcc6BhJ6ZzpGohY2feWjkPP6PMzQL r9S0oi+qCK4agORyWMzL2Z4dTzsCNAUCeqdkppOXu24Ff5zLPdZzZ/o6SbRI3g/yhNke vxzL69DWDqibYQVWgU3bom78wTS8+V4lxsMtONjB74+x78BQrJWMVQzikv+i/F0ZrSFP ajsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=uRB7fwzVP05JlwUWVWAGeUntleexUXcn7VqM+G1XA/s=; b=XlKhooVJtKzjGo2ylX65XZbJOJphEo8LKoZiNL3KCbA4l9sPQ8Nd2/eOFxK73ZT2DT BDogaF9IiW4t27kb88YtZsG8qupw0xKSXldW3fQV0N1mmMGUYklNYznm0/qwLX4ySgYS VVQNdWWfphHx6p3sQK1DdyaiFPqGQrCwwEdgV715wdsmjgq7S1clIZQXr3oC3XuY9cPh shbrKZIS1IGS5mZDoKU/0bHugCp9tRlOXbT1S83qypLPLuHJ2UxPHY+L3o8qmf1ALUnL MgWhV4V8AYqqFzrseV9AdOw0AP2POt4b3Vm19MSh7sHbDLenEBJk3m7yRV9mvPEVAkVn HVfw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a11-20020a1709066d4b00b006fec28bd10dsi136277ejt.389.2022.05.31.16.13.47; Tue, 31 May 2022 16:14:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344435AbiEaM7m (ORCPT + 67 others); Tue, 31 May 2022 08:59:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239911AbiEaM7l (ORCPT ); Tue, 31 May 2022 08:59:41 -0400 X-Greylist: delayed 321 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 31 May 2022 05:59:39 PDT Received: from mail.aperture-lab.de (mail.aperture-lab.de [IPv6:2a01:4f8:c2c:665b::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75E5B165A2; Tue, 31 May 2022 05:59:39 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id C911F3EA15; Tue, 31 May 2022 14:54:13 +0200 (CEST) Date: Tue, 31 May 2022 14:54:12 +0200 From: Linus =?utf-8?Q?L=C3=BCssing?= To: Baligh Gasmi Cc: Johannes Berg , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , "open list:MAC80211" , "open list:NETWORKING [GENERAL]" , open list , b.a.t.m.a.n@lists.open-mesh.org Subject: Re: [RFC PATCH v3 1/1] mac80211: use AQL airtime for expected throughput. Message-ID: References: <20220531100922.491344-1-gasmibal@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220531100922.491344-1-gasmibal@gmail.com> X-Last-TLS-Session-Version: TLSv1.3 X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Tue, May 31, 2022 at 12:09:22PM +0200, Baligh Gasmi wrote: > Since the integration of AQL, packet TX airtime estimation is > calculated and counted to be used for the dequeue limit. > > Use this estimated airtime to compute expected throughput for > each station. > > It will be a generic mac80211 implementation. If the driver has > get_expected_throughput implementation, it will be used instead. > > Useful for L2 routing protocols, like B.A.T.M.A.N. > > Signed-off-by: Baligh Gasmi Hi Baligh, Thanks for your work, this indeed sounds very relevant for batman-adv. Do you have some test results on how this compares to real throughput? And maybe how it compares to other methods we already have in the kernel, like expected throughput via minstrel_ht rate control or the estimates performed in 802.11s HWMP [0]? Is there a certain minimum amount of traffic you'd suggest to have enough samples to get a meaningful result? I'm also wondering if we are starting to accumulate too many places to provide wifi expected throughput calculations. Do you see a chance that this generic mac80211 implementation could be made good enough to be used as the sole source for both batman-adv and 802.11s HWMP, for instance? Or do you see some pros and cons between the different methods? Regards, Linus [0]: https://elixir.bootlin.com/linux/v5.18/source/net/mac80211/mesh_hwmp.c#L295