Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp17476942ybl; Thu, 2 Jan 2020 06:14:33 -0800 (PST) X-Google-Smtp-Source: APXvYqzOzLt6tNR8UVKryXsmwcCkIHN+tNB+hPIZQq5ghiAAoyTgRTLZhc1E+ztvcS/YL5IJSD20 X-Received: by 2002:a05:6830:1595:: with SMTP id i21mr93720580otr.29.1577974473912; Thu, 02 Jan 2020 06:14:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577974473; cv=none; d=google.com; s=arc-20160816; b=kceWrNKjvaFMbeJ+hhqcgif5YE0b8AccYL3dwvBETzyFRC9WQU4kOm2kANc+96qMGX Yj1IdQq94McLA/nde5zQ1/TO0H0vK/+7x/CaSwpQD0NkmMXXxWnY/sUKvSiKq0qG5EF5 ZF4rb7PN64Iwk+VqAmDtpaVZCp6prAoHCG1x5MvuYFFbLky9MK9JK75EQOst1dleDUXP 7eEZ9n/muvQ6WH+ufhLa9Rcs39yvtA/LVQ7l/28LYHyoD2NphWBs2Pws1rKCAOAraZfN r/1L5ER49UcMefnMp3VW+SIYPNvRuEy6hTE+WOnalopxmNlWw+ov2CLZX7xBpHOx2tuI 0whw== 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=iHrtIB63kcCRu+FU0mGVSq4VMNzt5YGrpifuEWc9p5w=; b=XWBAdvD7fbNvUGqBJJPtQ4f/S5+rc5nm9zojZQdkJ3pcnGJw/QaJ0Y277DqIMQdW64 Ir8CXSs/lvcVUK7i7w+crfSFRj1UKTyhY1MKLYrVJLyuMLsWYlZIu1Qc5XGmUlrjxMGx M5PpsgGkGClwhGgH3C8l1ef4Htp69DVPDIu4NfjrKj+CoeW/KnR9jyCRYMAG369d6m1x sHI/ZqokTHUF9NEBzbrNDoRnAhdwHPbec/ZHfOMtQA8z4xbGReswQgxjnNzPAVaa5bFf 76iGt1mzejKULXLVad5qxd/xDf6Z5J5GsYKPPeTsNLwd5QpHUDtV6bQXlaRzKnnfTKEf VVSQ== 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 u15si25967855oie.265.2020.01.02.06.14.16; Thu, 02 Jan 2020 06:14:33 -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 S1728470AbgABON7 (ORCPT + 99 others); Thu, 2 Jan 2020 09:13:59 -0500 Received: from s3.sipsolutions.net ([144.76.43.62]:59382 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728288AbgABON7 (ORCPT ); Thu, 2 Jan 2020 09:13:59 -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 1in1Ea-005WoJ-Qk; Thu, 02 Jan 2020 15:13:56 +0100 Message-ID: <5bab549a72d526f4fd0f708f14b49a7af6e2c0b9.camel@sipsolutions.net> Subject: Re: [PATCH v5] mac80211: Switch to a virtual time-based airtime scheduler From: Johannes Berg To: Toke =?ISO-8859-1?Q?H=F8iland-J=F8rgensen?= , linux-wireless@vger.kernel.org Cc: Felix Fietkau , Rajkumar Manoharan , Kan Yan , make-wifi-fast@lists.bufferbloat.net, Yibo Zhao Date: Thu, 02 Jan 2020 15:13:55 +0100 In-Reply-To: <20191222172423.131033-1-toke@redhat.com> (sfid-20191222_182529_460296_FED7C003) References: <20191222172423.131033-1-toke@redhat.com> (sfid-20191222_182529_460296_FED7C003) Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 (3.34.2-1.fc31) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Sun, 2019-12-22 at 18:24 +0100, Toke Høiland-Jørgensen wrote: > Didn't have a chance to > do anything other than compile-test it yet, but wanted to get it out > before the holidays (which I almost managed, since technically my > holiday started two days ago)... Didn't help you much, I at least was already on vacation by then too :P > @@ -1948,6 +1978,7 @@ void ieee80211_sta_update_pending_airtime(struct ieee80211_local *local, > tx_pending, 0); > } > > + nit, what's that doing here? :) > +#define IEEE80211_RECIPROCAL_DIVISOR 0x100000000ULL > +#define IEEE80211_RECIPROCAL_SHIFT 32 Could we live with less precision and use 32-bit arithmetic only? That might help 32-bit systems? This is basically a 32.32 (31.32 for signed) fixed point number, right? So I guess I'm asking if we could live with 16.16 (or 15.16), or similar. > @@ -525,6 +532,7 @@ struct ieee80211_sta_rx_stats { > * @status_stats.ack_signal_filled: last ACK signal validity > * @status_stats.avg_ack_signal: average ACK signal > */ > + another pointless blank line > + air_info = to_airtime_info(&txqi->txq); > + ret = (air_info->v_t <= air_sched->v_t); no need for parentheses :) I think overall this looks good. I guess you should subject it to some testing since I can't. johannes