Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp2268664ybx; Fri, 8 Nov 2019 02:05:43 -0800 (PST) X-Google-Smtp-Source: APXvYqwvxrK+DWPEntJPkm9+5UKudmbem/Hi6hciy831BjSUMUF/8uWWcXmeZsaourVeALbGQAsY X-Received: by 2002:a50:f296:: with SMTP id f22mr9182719edm.26.1573207543148; Fri, 08 Nov 2019 02:05:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573207543; cv=none; d=google.com; s=arc-20160816; b=zUSt6B7teI+vKHZ7MfX+RnS9BvSXU1wL711xyqQkKOT79633jXFd2ieDHdym53HcWA ZDiGnNkJ2XWhImkfpPV0D8XnuImRryXjHh+2ZgddheFw+bumngE6OmH9yqZ/ytwDIYIU BnPUwPJCg/ThrCjtN2fSFQy8lugrq+iVwO9xZyDZHodGPuTC/JRECS52k4EuKKUxnCEQ 4V7F9F6z79AQSnlitKlsd9yUauhDxUE775piE/DbyeIZRU+/Oo77FhahTKLv5FXBWp7h z3Z1BtJU6nKY3ceL2RaZdCIRubBm60iTQTd92ZdkFQPVGtgSSEXAsgXbYtPcReUm31Mw Ea3Q== 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=W9pe39cc5syjUqZpaaS/BPCzDRKnAybr8Vq79zjNrTY=; b=YHcce0Shq20a6D3Bki4XGUv/+B7j5HncJ7hb/96skpX8NtvhjGCEm5ya7B64SZ686s 2YMgiCR38J9+qZxqBfqbqJ3g4IJgEDsShnRniG1DyuwzXvYGhATVk7G4Y+5/N4YFO7FS zCs9t4/chEaSXvsZQXhn1BEOxkiFVbdY3b0M9S8HASTL/szg6yYYNmNuZykZdUurgKWY PkUEl4/6XauIu0L9bJOudkGzFaF7NjyxHcvFIxE9zhBm//Sr5xvKHqPdJHSnbK9ADhke byYGIDdMVtVFfF3kD2E7Sk+mu/QdJyb0UBHNna7HbQGXCn5jl5aeaLUBDKlUkIle2NXF L+jQ== 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 nf6si3324036ejb.406.2019.11.08.02.05.18; Fri, 08 Nov 2019 02:05:43 -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 S1730221AbfKHKDT (ORCPT + 99 others); Fri, 8 Nov 2019 05:03:19 -0500 Received: from s3.sipsolutions.net ([144.76.43.62]:53466 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730005AbfKHKDT (ORCPT ); Fri, 8 Nov 2019 05:03:19 -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 1iT16q-0007P5-ES; Fri, 08 Nov 2019 11:03:16 +0100 Message-ID: Subject: Re: [PATCH v6 1/4] mac80211: Shrink the size of ack_frame_id to make room for tx_time_est From: Johannes Berg To: Toke =?ISO-8859-1?Q?H=F8iland-J=F8rgensen?= Cc: linux-wireless@vger.kernel.org, make-wifi-fast@lists.bufferbloat.net, ath10k@lists.infradead.org, John Crispin , Lorenzo Bianconi , Felix Fietkau , Kan Yan , Rajkumar Manoharan , Kevin Hayes Date: Fri, 08 Nov 2019 11:03:15 +0100 In-Reply-To: <157182474063.150713.16132669599100802716.stgit@toke.dk> References: <157182473951.150713.7978051149956899705.stgit@toke.dk> <157182474063.150713.16132669599100802716.stgit@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: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Wed, 2019-10-23 at 11:59 +0200, Toke Høiland-Jørgensen wrote: > From: Toke Høiland-Jørgensen > > To implement airtime queue limiting, we need to keep a running account of > the estimated airtime of all skbs queued into the device. Do to this > correctly, we need to store the airtime estimate into the skb so we can > decrease the outstanding balance when the skb is freed. This means that the > time estimate must be stored somewhere that will survive for the lifetime > of the skb. > > To get this, decrease the size of the ack_frame_id field to 6 bits, and > lower the size of the ID space accordingly. This leaves 10 bits for use for > tx_time_est, which is enough to store a maximum of 4096 us, if we shift the > values so they become units of 4us. > I've applied this as preparation. johannes