From patchwork Mon Dec 3 14:34:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 10709691 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 C48AF13AF for ; Mon, 3 Dec 2018 14:34:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B3FDB2AEF4 for ; Mon, 3 Dec 2018 14:34:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A564C2AF06; Mon, 3 Dec 2018 14:34:38 +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=-7.9 required=2.0 tests=BAYES_00,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 610BB2AEF4 for ; Mon, 3 Dec 2018 14:34:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726609AbeLCOfv (ORCPT ); Mon, 3 Dec 2018 09:35:51 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:51280 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726028AbeLCOfv (ORCPT ); Mon, 3 Dec 2018 09:35:51 -0500 Received: by mail-wm1-f66.google.com with SMTP id s14so6098375wmh.1 for ; Mon, 03 Dec 2018 06:34:36 -0800 (PST) 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:date:message-id:mime-version :content-transfer-encoding; bh=9SoN0YKjVr36DuP/AwbUoiYV6F2KG5OTc155HdkWYNU=; b=sIdKItloZ+8cDzt6rYhPUcCWH6cADBqv7k7U3Oaycy6qjK/tB5aHpKT0R2TM+mnlrZ 9Qb+J4mWsfl1sH0YxkgFTtJ03/boKYvtJKDAEQEbusSXOHdf1pJ9+vpq38uwgJpvMtla zEWcsG/m9RNyIJutnhprdgECwDZWB41zG+kadHl1vtgUvCfsSmcVoBFXra8rmfO8UKnf 8aj8zfq21M09dAtT0R9pjniAsqsRQsb4jclTLYFoIzTdyk+ryzdVwroJDh9uuamZdq35 C3NQfmDYKDrC5zuL2zRpMzad2Z6vR3rkjnozi7RaqtZC8AsNKL+iBzFjs8pXqUHJXE5j 3g9g== X-Gm-Message-State: AA+aEWb6w0qTLGgUSo9R7mRFANYjbQw5naFPYrwLbuYlMQeDWCkU42sf zf+Cs2pLroJRZVF/tSuGL4tyeOnj8Os= X-Google-Smtp-Source: AFSGD/Uys3t+f94vnW0lBfVd9LV96L6pHgdP/t8mU8EO9vJu/gsqP+BDDu2J6BDZIcJq3eDgbiukDQ== X-Received: by 2002:a1c:e287:: with SMTP id z129mr8506214wmg.71.1543847675524; Mon, 03 Dec 2018 06:34:35 -0800 (PST) Received: from localhost.localdomain ([151.66.39.232]) by smtp.gmail.com with ESMTPSA id c77sm9911023wmh.12.2018.12.03.06.34.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Dec 2018 06:34:34 -0800 (PST) From: Lorenzo Bianconi To: nbd@nbd.name Cc: linux-wireless@vger.kernel.org Subject: [PATCH 0/2] add rx buffer recycle support to mt76x2e/mt76x0e drivers Date: Mon, 3 Dec 2018 15:34:23 +0100 Message-Id: X-Mailer: git-send-email 2.19.2 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 the capability to recycle rx buffers if they are not consumed by networking stack. This series is based on 'mt76: add size check for additional rx fragments' series: https://patchwork.kernel.org/patch/10709453/ Lorenzo Bianconi (2): mt76: dma: do not build skb if reported len does not fit in buf_size mt76: dma: add rx buffer recycle support drivers/net/wireless/mediatek/mt76/dma.c | 75 +++++++++++++++++++---- drivers/net/wireless/mediatek/mt76/mt76.h | 3 + 2 files changed, 67 insertions(+), 11 deletions(-)