Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1740537ybg; Sat, 19 Oct 2019 01:29:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqxGX2DagfEv9dvInbXWT8QZuuBRLZzryZAX1BieBeXmSQNMwH1VQrvLm9p1BKlGhg8F6qup X-Received: by 2002:aa7:c303:: with SMTP id l3mr14101678edq.234.1571473766464; Sat, 19 Oct 2019 01:29:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571473766; cv=none; d=google.com; s=arc-20160816; b=rP/qs0XU8TA/kcdvor65643WwCeUJdvUBe8K4A76vFMwS4ZZLP+VQ9MlKqhA6jhX/X zjhDu0FXChsqRsrRM5wlP6D5OoRTSy+bph3nV7Yya9vhtN7RykQuCF7BZe3m33wNn7uY cJ0JiYZBNV0/LXA7QbXwaops7Z59xVu0uRgND+u2PFjjIWtvstEI3DQcuSPUjb75I+hY yCrdbpqavw7ynU6VSyj3Uv5qpS6S7ClqSqeq6fePH7LFlG33UExAfuXh2EhidXnmzhe4 /Atip/p0jXimtQUjxy0sCESoVH8lMqbb1OXeSAUl642GqIWtDCVgDj3kw8zE0zILtgkO yxDA== 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=FJLzTB1e01S8AC+ouKg9U+W0PwmbmrSPVy/svoYWmd4=; b=PFM2Xue1rbnJE2HePZarGkzbJ0uQArnKpOdHOzklarRf0ebr+Qdd8wHjXuuRR9UvAA wVGAruuY92N3X/KhOyKdVfxBCj+kKqKLK8D6NSzAWz1R+EjyBPr/vQGPXAjYdVigHLsB g4+p2Vj+KaFdK4W3x3oS+ZLO58xeQ5vNpexkcnGVkTaQHmTYsuiFD7WhyJccdgM0ByzF +qEqRgAx0UXy2Bw4YDlcJujGAgIl+fY/+moq8nk4wVGGdQtEjnvUr44nYUggzpYYIUlE 7kIaXT1MnvXQnUwO9/Zl3wk52/8FSmQPWYy+0d1j8pVmpBCYCIxpxUN0CaOKQTPYUXVA TIDA== 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 b35si6033513edb.204.2019.10.19.01.29.02; Sat, 19 Oct 2019 01:29:26 -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 S2439524AbfJROHY (ORCPT + 99 others); Fri, 18 Oct 2019 10:07:24 -0400 Received: from s3.sipsolutions.net ([144.76.43.62]:58630 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2408322AbfJROHX (ORCPT ); Fri, 18 Oct 2019 10:07:23 -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 1iLSuX-0004Ql-P7; Fri, 18 Oct 2019 16:07:21 +0200 Message-ID: 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 16:07:20 +0200 In-Reply-To: <87d0eudufu.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> <9fc60b546b54b40357264d67536733251cf39ebe.camel@sipsolutions.net> <87d0eudufu.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 16:01 +0200, Toke Høiland-Jørgensen wrote: > 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 can't reject due to how this works, but if the idr_alloc() fails then we'll just not give a status back to userspace later. > > > 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 :) OK. There are two places that call idr_alloc() with a hardcoded limit of 0x10000, you'll have to fix those to have the right limit according to the bits you leave for the ACK id. johannes