From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by lists.bufferbloat.net (Postfix) with ESMTPS id D456B3B2A4 for ; Fri, 18 Oct 2019 10:01:16 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1571407276; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=M9RSTGVJD9xVIyj975EqK/c+6MLtw+vWyhQYOOPRwQ4=; b=XE/R+LqqXup6MM7/jgsPVfEIMaElL+nh2cWX2kPvxbShkOoPhBklGrkh9nRWyRJw5O8928 ypePAC9WPvJBcOG2Z9+aACpVEKjPRNXhydnY7M38ohv3YLMOZmTG1Tn0Fb90arX9MLCFCE kZtZFXaRfkOO9F2p2NDts4DOxIhRWFI= Received: from mail-lf1-f71.google.com (mail-lf1-f71.google.com [209.85.167.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-83-iPspunsMOwWcFqY4ETuPZw-1; Fri, 18 Oct 2019 10:01:14 -0400 Received: by mail-lf1-f71.google.com with SMTP id c7so1306345lfh.9 for ; Fri, 18 Oct 2019 07:01:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=9KU3AOEPNJNeSCWouDLYLTZDs7qEv20m2zC3KeyYxCQ=; b=DHiQlySRk0VxxBixieAQLSipsNLi0/ficXEQ5x9d4mPoMQF79wSCBSrfZiknOQsmlP +9lXkQstf7+PDTb9CgO0dcRpN8OewFKhqyz+/eWHHiwVrhyC3gxMXbFtbu81uaY6Wp8c USKy9pVzGP192N5Oj/rUhyLn7ek/iaRID1A/NqV76e7wV4kpK4tM3I0JPoFfHv5qNnW+ ZnuXZPOYKieG8ik2WhAH1cQhx7t2e+xAUBS40UcyDg7H50rNaieN7wWdX/fQF2iAH6+6 oLIf5nItJNWM8Z+5yga8cnJrtrSie/qfUyYvSftW1A+1OjNBJy5XWxgjTUtkdW0BB5+8 //zw== X-Gm-Message-State: APjAAAVy3rQh1A5CC9l9tQEFuI2xlJydiP3Ezg7AfQFnn/ZQtz1X7Wpk OfzWoOrk390MiQHlg22zpE7sAO4rKZjRW4GVWllu5CNcnihU5iED4nFUAohTz1ae/BvH/WJraCe icoCfI5kd+hEFjX2TWzpVfkYEDYBbg16peXI= X-Received: by 2002:a19:641b:: with SMTP id y27mr6274565lfb.3.1571407273118; Fri, 18 Oct 2019 07:01:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqwC6odn8LyJJs0daZtmkS6VFaA8BtPD78mDU4XrBdIGwZMhS0aV6Gnwq4KieL+5R/+KfSjfzQ== X-Received: by 2002:a19:641b:: with SMTP id y27mr6274369lfb.3.1571407270886; Fri, 18 Oct 2019 07:01:10 -0700 (PDT) Received: from alrua-x1.borgediget.toke.dk ([2a00:7660:6da:443::2]) by smtp.gmail.com with ESMTPSA id l25sm2867020ljg.72.2019.10.18.07.01.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Oct 2019 07:01:10 -0700 (PDT) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id 0D5871804B6; Fri, 18 Oct 2019 16:01:09 +0200 (CEST) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= To: Johannes Berg , 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 In-Reply-To: <9fc60b546b54b40357264d67536733251cf39ebe.camel@sipsolutions.net> 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> <9fc60b546b54b40357264d67536733251cf39ebe.camel@sipsolutions.net> X-Clacks-Overhead: GNU Terry Pratchett Date: Fri, 18 Oct 2019 16:01:09 +0200 Message-ID: <87d0eudufu.fsf@toke.dk> MIME-Version: 1.0 X-MC-Unique: iPspunsMOwWcFqY4ETuPZw-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Make-wifi-fast] [PATCH v2 1/4] mac80211: Rearrange ieee80211_tx_info to make room for tx_time_est X-BeenThere: make-wifi-fast@lists.bufferbloat.net X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Oct 2019 14:01:16 -0000 Johannes Berg writes: > On Fri, 2019-10-18 at 15:31 +0200, Toke H=C3=B8iland-J=C3=B8rgensen 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. Ah yeah, those could be a bit bigger, but yeah, 4ms should at least be enough. >> 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. Right. Well in that case, let's try it. As long as we fail in a reasonable way, we can just see if we run into anything that breaks? I guess in this case that means rejecting requests from userspace if we run out of IDs rather than silently wrapping and returning wrong data :) >> 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? Sure, that's a good point! Increments of 4us means we can fit 4ms is 10 bits, leaving plenty of space for ACK IDs (hopefully). I'll rework the series to use that instead :) -Toke