Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1739794ybg; Sat, 19 Oct 2019 01:28:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqy62oyDwU0qLgDH7b9JSV14IuLEI/eYeAMHrc6M8S2p0bZCv8PaosgxWzJy/DJESn6pa+fb X-Received: by 2002:a17:906:8391:: with SMTP id p17mr12011366ejx.216.1571473696823; Sat, 19 Oct 2019 01:28:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571473696; cv=none; d=google.com; s=arc-20160816; b=H5NDAz7nUCwpFI1c6TTcw8FlNHzROr7TKbOzAbjDmiwinNVnn4EeE9cA98JLXlKmLM pA0Bj8RWRPsz30ngudi5m6DR4dBwufcG7Bm47prOpE9GJYDONSoBIGmXPTMgwMIIFAml oNfbyqTOPosa1emj8a61/QAapV2FiQWLBIZSPJC3DiAyk7sY2WZTX/2YXyrxJte4nvMX GkLDL26/UkHUjKlw3mK5ewxY0ARtxRAm8l7ZneNhLQ1+JZHC3YSq8f2/OSwpbQQawFmM d33FpQIRToWtgr2Qwkil1YxB8SjSzwDqQG5mTaJcm1Zkd48PE0pWLOuI83kzSxk4lvnS 5JVw== 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=Gwn1VjlK1of7fkyvZGYio55vdNAAC6R+i9l9b95X8C0=; b=dG2JvfgOxb8dEWxfZ+iYhOK+MBFW07aZQIC3rhiBVLskO5CbMGshLj3qwrsNjYAMXX ApqbJ3z+RGR+Us2RAhOTHnbQ7HG3V4fn3f4pELz3HfhXZ19UEdJbx7koECkEr6PbnVuR dWblQnSkhVMoXfugxuqRIvjHlKmyIwHSzLmrBw3/H/JND0Te2BwHqO0Q9KDChMdcg3Uz oDeny49rEQl8vUtGDHbACNSbENLydyRxZVbjXdV978YqRz5MG+NfHmszr3PyjHf/8v9+ 4mpo1PcQPJNgZQyydbur7sOIXrlJABTXJI3xJ9ScYZu+9pakv3pG5AUnbqQ9kLl1URlh ImTQ== 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 g18si5055829edq.209.2019.10.19.01.27.52; Sat, 19 Oct 2019 01:28:16 -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 S2393921AbfJRNsT (ORCPT + 99 others); Fri, 18 Oct 2019 09:48:19 -0400 Received: from s3.sipsolutions.net ([144.76.43.62]:58330 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392604AbfJRNsS (ORCPT ); Fri, 18 Oct 2019 09:48:18 -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 1iLSc4-00045S-Vf; Fri, 18 Oct 2019 15:48:17 +0200 Message-ID: <9fc60b546b54b40357264d67536733251cf39ebe.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 15:48:13 +0200 In-Reply-To: <87imomdvsj.fsf@toke.dk> References: <157115993755.2500430.12214017471129215800.stgit@toke.dk> <157115993866.2500430.13989567853855880476.stgit@toke.dk> <87sgnqe4wg.fsf@toke.dk> <10b885b3238cede2d99c6134bebcc0c8ba6f6b10.camel@sipsolutions.net> <87imomdvsj.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 15:31 +0200, Toke Høiland-Jørgensen wrote: > Well, let's try to do the actual math... A full-size (1538 bytes) packet > takes ~2050 microseconds to transmit at 6 Mbps. Adding in overhead, it's > certainly still less that 4096 us, so 12 bits is plenty. What about A-MSDUs? But I guess maximum continous transmissions are at most 4ms anyway, so a single packet should never be longer. > That leaves > four bits for the ACK status ID if we just split the u16; if we only > ever have "a handful", that should be enough, no? It's how many are in flight at a time, 16 doesn't seem likely to happen, but I don't really know what applications are doing with it now. Probably only wpa_s for the EAPOL TX status. > We could also split 5/11. That would support up to 32 ACK IDs, and we > can just truncate the airtime at 2048 us, which is not a big deal I'd > say. We can also play with the units of the airtime, e.g. making that a multiple of 2 or 4 us? Seems unlikely to matter much? > Think it mostly depends on what is the smallest ID space for ACK IDs we > can live with? :) :) TBH, I don't really know. In a lot of hardware using this is really bad for performance so it shouldn't be used much, so ... johannes