Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp786729ybi; Fri, 14 Jun 2019 03:23:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqzsc8t3/yY64goq1Tv8dFPMhQ0dQ80nhpEaZmzbcYQwclKNrJgqdx2W8YfzegWzNzyDdeuX X-Received: by 2002:a65:41c6:: with SMTP id b6mr34299223pgq.399.1560507801297; Fri, 14 Jun 2019 03:23:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560507801; cv=none; d=google.com; s=arc-20160816; b=Zt+DH4P+OmfAb8BaoAIpsNkj7S+b6UT2PwhCmaWiGs6Xi+jTwXTP4ulrh/Bjh7f5MQ WLG1aBs6Gx5XprUgkh7ZCqe5Uljk2ceUgKjPgvgVUTcWOJC7tsuCy4ELLCh3NbqMe7WR 22XHMbVQJRYEMkl2ytKFhABFUfXs4WxbthG0/cyfA4l4EbZNAyuIoLIHg6EFLC7HAZhg nuY93dUcfOZi9jxB6EKUoC5im41crD5qrxM7jPtU44IfyEapiiiCZ7/zPTMSQuM1P6e8 cD1SN6Utn6WsYe63XK+syHDX+3J6hQsSSWM4+akh7WofxbG5LAhZ0/IlIUAYcPgpxn6Y ZjDg== 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 :references:in-reply-to:date:cc:to:from:subject:message-id; bh=hEBA+rS6DH1k34Muo0jWpJH8EqSRtsx/jt2DXh7lq1I=; b=ly2RGNORVgbESdARTbwZTXWAwgKnYzWEF6N9VntuqdBD6/UnTB96D+bHup/wkCPpHP lDS/PEYINq6ku4TL6VzdMRfgTIdDbTCkBZM0R8I0DkZmA+/PDJa5yAciTG8934F+Mb+C 3EZ8azeffjebcsrCnweVuIPtWdYzFhsr3Axby2lXUQMTsVIAOO54RS1oUQxQJzeT5F/A cpaW94n4gMgg173TX9AKprA4O/VDwyotcdvq9JRQTU4nsL2Ijbk9YyTvYEypw7jKUAv0 r4bF0IHLqCuv0pEBVFGvzwccXBGEnp+t4VaE+HnfsKkF43uxaptFdW+EBESY/2tbiLQQ RCCA== 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 i9si2057890pfr.6.2019.06.14.03.22.58; Fri, 14 Jun 2019 03:23:21 -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 S1727360AbfFNKVI (ORCPT + 99 others); Fri, 14 Jun 2019 06:21:08 -0400 Received: from s3.sipsolutions.net ([144.76.43.62]:39614 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726255AbfFNKVI (ORCPT ); Fri, 14 Jun 2019 06:21:08 -0400 Received: by sipsolutions.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1hbjKO-0005VQ-An; Fri, 14 Jun 2019 12:21:00 +0200 Message-ID: Subject: Re: [PATCH v3 wireless-drivers 1/3] mt76: usb: fix rx A-MSDU support From: Johannes Berg To: Lorenzo Bianconi , Stanislaw Gruszka Cc: Lorenzo Bianconi , kvalo@codeaurora.org, linux-wireless@vger.kernel.org, nbd@nbd.name Date: Fri, 14 Jun 2019 12:20:59 +0200 In-Reply-To: <20190614101115.GA2669@localhost.localdomain> (sfid-20190614_121121_297269_B8C7CB69) References: <66fc02e45fb5ce0d6176395b5ac43acbd53b3e66.1560461404.git.lorenzo@kernel.org> <20190614072449.GA3395@redhat.com> <20190614101115.GA2669@localhost.localdomain> (sfid-20190614_121121_297269_B8C7CB69) Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 (3.28.5-2.fc28) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Fri, 2019-06-14 at 12:11 +0200, Lorenzo Bianconi wrote: > Looking at __ieee80211_amsdu_copy() now I got why other drivers copy hdrlen + > 8, thx :) > In our case reuse_frag is true in __ieee80211_amsdu_copy, so we will end up > copying 32B + ether_len. Anyway I think 32 is a little bit too low and we could get > better performances increasing it a little bit. > A typical use case (e.g IPv6 + TCP): > > IPv6 = 40B, TCP = 32B --> so 72B..I guess 128B is a good value :) > @Felix, Johannes: what do you think? I think while we might *allocate* more, I don't think we should *copy* more, since then the TCP payload will no longer be in pages. It'd probably be better to implement leaving enough tailroom (allocate 128), but copying nothing, unless the *entire* packet fits. johannes