Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp8020081ybn; Tue, 1 Oct 2019 01:46:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqy1tG0RNJcmnhUQs76k9t9BIcWakBJJ+se53gVjj+TAY5KVLmZVBeRB7lW3XycyAczR52DX X-Received: by 2002:a50:e613:: with SMTP id y19mr24361482edm.290.1569919588938; Tue, 01 Oct 2019 01:46:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569919588; cv=none; d=google.com; s=arc-20160816; b=NfVCx1Rz9mqgTnhwsrfA2lM+FBl22KMop4I4yMf58OOiwBLkanblPPi8OCUwffiDhz e4vholmmcPqQrFjbQLtyHzgeabxgHYl/rqnXE5PhxPgQzk7NGED1RnFbsZ9Ey72BG+dd Ka7NN4MnvTSNrAGZZWgBvlpifACnadOV1o5P2//rrtcKCa1bpIH2RQPBEhLsJ5CSejd6 s2qH9FSRA0u45IaADMkqgYb8u4hZ/P1ZxvG7AvtXZhqQYDkmjtkNnNFfn7+7ogIiTkhS dCkwrTGTOD0BvMZv3Mvb5VxSYooif9ww97RcemV17L0cCjrTwAHVMndRmTUb56nwmUHd PHxQ== 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=lpKTS1dQzvWgAYtyNQ6dqrCdM+wApi2h/UnTKp1km0E=; b=i4GLppvga/6tsyYPXperOqJniOmKp7+aLrj9Jbre1Q3IolhBwei1Bb5ZnknwEXVxYU suXxkvYzkVGldLCsDtqgCUJikTmc/qrygr1f1HJDEZzK5KKfZZTCfYWchq4g5ygDlc3R d0eeiwoV0FMbkeQ/Bv7gsEJDLBo+fqjx6kVA+zQtmJt//ZQqoIiss8Grj9WEGZspDO5/ JkOvtyYix3+V9SkejnfF4gP78whAkjv871gWRRnRaTEC9kWrhLMCH/u67uLKNfcXGFza BlO5RBs9G7No9rDobULRSGFGkDjgQ8oqEIBRy7NbrcKLsBTk+BIT8Z3Ddyqhax0YMApn wZzw== 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 qx24si8514401ejb.138.2019.10.01.01.45.51; Tue, 01 Oct 2019 01:46:28 -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 S1732921AbfJAIpB (ORCPT + 99 others); Tue, 1 Oct 2019 04:45:01 -0400 Received: from s3.sipsolutions.net ([144.76.43.62]:57132 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726148AbfJAIpB (ORCPT ); Tue, 1 Oct 2019 04:45:01 -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 1iFDmF-0002cH-8N; Tue, 01 Oct 2019 10:44:59 +0200 Message-ID: Subject: Re: [PATCH RFC/RFT 1/4] mac80211: Rearrange ieee80211_tx_info 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, John Crispin , Lorenzo Bianconi , Felix Fietkau Date: Tue, 01 Oct 2019 10:44:58 +0200 In-Reply-To: <156889576534.191202.17686228416284995279.stgit@alrua-x1> References: <156889576422.191202.5906619710809654631.stgit@alrua-x1> <156889576534.191202.17686228416284995279.stgit@alrua-x1> 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 Hi, Sorry for the long time to review here ... On Thu, 2019-09-19 at 14:22 +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. > > Fortunately, we had a couple of bytes left in the 'status' field in the > ieee80211_tx_info; and since we only plan to calculate the airtime estimate > after the skb is dequeued from the FQ structure, on the control side we can > share the space with the codel enqueue time. And by rearranging the order > of elements it is possible to have the position of the new tx_time_est line > up between the control and status structs, so the value will survive from > when mac80211 hands the packet to the driver, and until the driver either > frees it, or hands it back through TX status. Seems reasonable to me, if we end up needing it and don't have an out- of-band path (that you seem to have been discussing in this long thread too) johannes