Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1735126ybg; Sat, 19 Oct 2019 01:21:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqx2T/6w+7O5hQwxwVwkPWWVduPesCDQATBAiluz116sD4yHFpdBNJnCyKUFFu6zfDrGPisv X-Received: by 2002:a17:906:c739:: with SMTP id fj25mr823560ejb.164.1571473301183; Sat, 19 Oct 2019 01:21:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571473301; cv=none; d=google.com; s=arc-20160816; b=oKcOMz/ixL8sMPR6XOYnPf0AWDR+S7WDFJ0MjBYUKa5t8iAkDPLdC/yMVsI1cvWbmV gSgyZq+o1a85kpQFG/HszBolLWwheODl+aS9N/nRndhGBucA1ypDwap8epTJS1zd8fGO lm9AQVkdTKWWUSZ6XlOTe0onzJsbNLJfDndIBg0YU8QrPUA6g8I7s3wg1OFFn6FP+3Br O9NkZ2ByctfuRXetKMXjqCyjZh7Gdak7nB9mMS7UI5CmEEl4QZ+2P6ONM9a6MRBDP2yS 4QW45b5V86RR+ZNEFRN4chL28KCFq4H8NVN3SyBNzEc5hRJPZ+whTpUjTmskv7KtAvc/ ot+w== 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=z/9lgwVDDg9HdGbJ+lXrzEYzlECRd14hJoSf5p1+lMc=; b=ZeqWYZLCNU+DB8c2ob4d/C9cdP75c2x0MhzKuyN/jmHXWFBY1xujr+L+3FEi5UwzSE OL5mIp50H3Z7v3e2oT0MLSKWAxz3f8zOQEvrOgindqciKyFHtcOYsEIDQwTIim96AZkT vQdARwL+QrBUIG9D0ybR3dBzWWtdZs8HNq+0+gfAHKThEmIIs7Kt9y0RU0iC13uGt+Cs Mo2UlP5jqAS7my+odPj17tkbTYh2k+o4OjZHGs0sJ2oSt4htbYtxoxmSvqTr55LjRRpF rcNlFSZiqZlxTObWIJir2laUwxXelAr2mseE4nUoxdrl2M1YYEMsxeWQ00ELNRSLjJ8K ErbQ== 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 s2si5065833ejj.327.2019.10.19.01.21.16; Sat, 19 Oct 2019 01:21:41 -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 S2442707AbfJRMV4 (ORCPT + 99 others); Fri, 18 Oct 2019 08:21:56 -0400 Received: from s3.sipsolutions.net ([144.76.43.62]:56472 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387570AbfJRMV4 (ORCPT ); Fri, 18 Oct 2019 08:21:56 -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 1iLRGT-00023f-Lb; Fri, 18 Oct 2019 14:21:53 +0200 Message-ID: <10b885b3238cede2d99c6134bebcc0c8ba6f6b10.camel@sipsolutions.net> Subject: Re: [PATCH v2 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?= , Kan Yan Cc: linux-wireless@vger.kernel.org, make-wifi-fast@lists.bufferbloat.net, ath10k@lists.infradead.org, John Crispin , Lorenzo Bianconi , Felix Fietkau , Rajkumar Manoharan , Kevin Hayes Date: Fri, 18 Oct 2019 14:21:52 +0200 In-Reply-To: <87sgnqe4wg.fsf@toke.dk> References: <157115993755.2500430.12214017471129215800.stgit@toke.dk> <157115993866.2500430.13989567853855880476.stgit@toke.dk> <87sgnqe4wg.fsf@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 Fri, 2019-10-18 at 12:15 +0200, Toke Høiland-Jørgensen wrote: > However, there's a nice juicy 'u16 ack_frame_id' at the start of > ieee80211_tx_info. Could we potentially use that? We could use the top > bit as a disambiguation flag; I think we're fine with 15 bits for the TX > time itself (a single packet won't exceed 8ms or TX time), so if we can > live with 15 bits of ACK frame ID space, that could be a way forward? I was going to say that should work as we only ever have a handful of ACK frame IDs, but ... you still need the airtime even for a frame that userspace wants to know the ACK status of, no? We could pull the ack_frame_id out-of-line using the skb extensions framework, but I'm not sure we should allocate one of the possible 8 extension IDs for that either ... What we really should do is convert all (relevant) drivers to use rate tables instead of having all the rates in the TX info, then we'd get a lot of space, but that's a lot of work ... johannes