Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp220951ybi; Thu, 13 Jun 2019 14:43:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqzfh1QNsdrwmxwu+lJnYM9/xwyeDbB+Csija7kIuMKFSmdX20CA4tTN82IEdZGR1xenWj+q X-Received: by 2002:a63:8249:: with SMTP id w70mr30452465pgd.33.1560462238253; Thu, 13 Jun 2019 14:43:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560462238; cv=none; d=google.com; s=arc-20160816; b=rMpg+DFv7066P89uPuKdxgfp7Ruw7oA+/2m1h1R0viXFvKZ2QptDETBiKe3KoBViLP i0Uy+rieO2/awFwFsHc1X3nkl6mtlZZx3fQXVhz3ZI8U/tk7TZzeQZOUbZgRg0ws+Ug3 6JQdqBpXOam9k29uwjYbXaW+cHfG4tos0kmFtOSM7bZogrgEn5ZwENrMwufIn9F7B7ny ej9icyf8OHw8+VMoFGXOpQ6WfWA/NC5oFm3lhLTmzMDwLyum9E+pK2m+4lLRnUPOSOoK 0Yji8iSNqFLelAmCufOD0D6hFgp0EaQgsz5GY/GA0D38ChQyr/lIun+Lk7OS7dA31jGz VMbA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=DOByEtI2WLaWQ1Xqc1A02grQ3n/HCZY2gg2KJoBJqE8=; b=sdmN+RhpI8zA5y15Rx1hS6Lq33gkrVChyFpXicxeZwM8Z3qlgj5lyqTbjsyYuMiGe+ LbGrM/qL1+y1WBr71+aWinY38nEPKnboR7HAgY5Rz2Jn1gNlPp0gT0XiL3Eq9sRpthnw X2Fa5qGxtiereqNpRQpJUIUP/+/HsdnsDesczCbJOHUxSEyoCNcAjbPadtVMcQNYcf0t 8CJ71OSpEDCd82ilTyZdg4b8FpfHG4xxFw9paAfmPAUYViPSPEClgK7eW4U3ku0eBNFx vrktJ5+x4txhdaegmKpQVJLbKDCTJKhfJ5Wbp5r0poLQQPjI1GRt9Z6dVuh39AkZw01z JlzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=TOTS7WUE; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d7si669685pgq.211.2019.06.13.14.43.30; Thu, 13 Jun 2019 14:43:58 -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; dkim=pass header.i=@kernel.org header.s=default header.b=TOTS7WUE; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726305AbfFMVnW (ORCPT + 99 others); Thu, 13 Jun 2019 17:43:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:51274 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725747AbfFMVnV (ORCPT ); Thu, 13 Jun 2019 17:43:21 -0400 Received: from localhost.localdomain (unknown [151.66.40.206]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4991620B7C; Thu, 13 Jun 2019 21:43:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560462201; bh=r53BlAHoUOfmlj2Xnl/2XVbKfeFhjg1MlydYIE8jgoQ=; h=From:To:Cc:Subject:Date:From; b=TOTS7WUESiewHeX56nU1ofXB6PyO24IicbpAlnell6yS4TgsDl79E0Fbj86bGaH4x yk2ZvyyqsZqLSUCTNHCzTLVbvys+MTxkmhLMCDWt+0Nuw4MGISNU9KZMmzPIX+K5WU gFX0vg4roOIIXfm7ppkCtNeJy3EHWSQEmkqOQHg4= From: Lorenzo Bianconi To: kvalo@codeaurora.org Cc: linux-wireless@vger.kernel.org, nbd@nbd.name, lorenzo.bianconi@redhat.com, sgruszka@redhat.com Subject: [PATCH v3 wireless-drivers 0/3] mt76: usb: fix A-MSDU support Date: Thu, 13 Jun 2019 23:43:10 +0200 Message-Id: X-Mailer: git-send-email 2.21.0 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 Reallocate the skb if there is no enough space to manage the AMSDU rx packets. Do not always copy the first part of received frames if A-MSDU is enabled for SG capable devices Changes since v2: - simplify mt76u_build_rx_skb - add patch 2/3: mt76u: introduce mt76u_ep data structure - align usb buffer size to usb max endpoint length - set buf_size to PAGE_SIZE even for sg case Changes since v1: - do not allocate multiple page buffers but rely on fragmented skbs if there is no enough space to manage the AMSDU rx packets Lorenzo Bianconi (3): mt76: usb: fix rx A-MSDU support mt76: mt76u: introduce mt76u_ep data structure mt76: usb: do not always copy the first part of received frames drivers/net/wireless/mediatek/mt76/mt76.h | 17 +++-- drivers/net/wireless/mediatek/mt76/usb.c | 75 +++++++++++++++++------ 2 files changed, 67 insertions(+), 25 deletions(-) -- 2.21.0