From patchwork Sat Mar 2 13:47:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 10836583 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 27BFE14DE for ; Sat, 2 Mar 2019 13:48:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 171A32B33B for ; Sat, 2 Mar 2019 13:48:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 06D092B17F; Sat, 2 Mar 2019 13:48:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A43B32B17F for ; Sat, 2 Mar 2019 13:48:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726874AbfCBNrw (ORCPT ); Sat, 2 Mar 2019 08:47:52 -0500 Received: from mail.kernel.org ([198.145.29.99]:58166 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726430AbfCBNrv (ORCPT ); Sat, 2 Mar 2019 08:47:51 -0500 Received: from lore-desk.lan (unknown [151.66.48.245]) (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 AE43520838; Sat, 2 Mar 2019 13:47:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1551534471; bh=B24Nt92pyh1aVEZsXH8+rOt3glWFNPI1faXeLglIbwU=; h=From:To:Cc:Subject:Date:From; b=q3PkYHXalW+vGprKA5XWz6BLoIvkXrDAa0a19yIMHhlGbIX06yhsgzua+PB7fwB83 O0Lp3lUAG/w4q0gdwCLSgO3/XV/TEaNOwllrNz46Bj6K5FgiDIWsJTUWvtHi4DHKMm xGouZrn6OZiwE4G75lIVbDGnickSIQRmcNFXpwFk= From: Lorenzo Bianconi To: nbd@nbd.name Cc: linux-wireless@vger.kernel.org, sgruszka@redhat.com, lorenzo.bianconi@redhat.com, roychl666@gmail.com, ryder.lee@mediatek.com Subject: [PATCH 0/5] introduce mt76_sw_queue data structure Date: Sat, 2 Mar 2019 14:47:37 +0100 Message-Id: X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add mt76_sw_queue data structure in order to support new chipsets (e.g. mt7615) that have a shared hardware queue for all traffic identifiers. mt76_sw_queue is used to track outstanding packets. Add mt76_txq_id field to mt76_queue_entry in order to properly track outstanding frames Lorenzo Bianconi (5): mt76: remove mt76_queue dependency from tx_queue_skb function pointer mt76: remove mt76_queue dependency from tx_prepare_skb function pointer mt76: remove mt76_queue dependency from tx_complete_skb function pointer mt76: introduce mt76_sw_queue data structure mt76: introduce mt76_txq_id field in mt76_queue_entry drivers/net/wireless/mediatek/mt76/debugfs.c | 7 +- drivers/net/wireless/mediatek/mt76/dma.c | 19 +++--- drivers/net/wireless/mediatek/mt76/mac80211.c | 4 +- drivers/net/wireless/mediatek/mt76/mt76.h | 27 ++++---- .../wireless/mediatek/mt76/mt7603/beacon.c | 14 ++-- .../net/wireless/mediatek/mt76/mt7603/dma.c | 13 +++- .../net/wireless/mediatek/mt76/mt7603/mac.c | 19 +++--- .../net/wireless/mediatek/mt76/mt7603/main.c | 2 +- .../wireless/mediatek/mt76/mt7603/mt7603.h | 6 +- drivers/net/wireless/mediatek/mt76/mt76x02.h | 2 +- .../net/wireless/mediatek/mt76/mt76x02_mac.c | 4 +- .../net/wireless/mediatek/mt76/mt76x02_mac.h | 4 +- .../net/wireless/mediatek/mt76/mt76x02_mmio.c | 23 ++++--- .../net/wireless/mediatek/mt76/mt76x02_txrx.c | 4 +- .../net/wireless/mediatek/mt76/mt76x02_usb.h | 6 +- .../wireless/mediatek/mt76/mt76x02_usb_core.c | 11 ++-- .../net/wireless/mediatek/mt76/mt76x02_util.c | 2 +- drivers/net/wireless/mediatek/mt76/tx.c | 66 ++++++++++--------- drivers/net/wireless/mediatek/mt76/usb.c | 28 +++++--- 19 files changed, 149 insertions(+), 112 deletions(-)