From patchwork Wed May 6 17:47:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ioana Ciornei X-Patchwork-Id: 219756 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 091CDC28CBC for ; Wed, 6 May 2020 17:47:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E8C35208E4 for ; Wed, 6 May 2020 17:47:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728815AbgEFRr2 (ORCPT ); Wed, 6 May 2020 13:47:28 -0400 Received: from inva021.nxp.com ([92.121.34.21]:36630 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728082AbgEFRr1 (ORCPT ); Wed, 6 May 2020 13:47:27 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 16E2A200CBE; Wed, 6 May 2020 19:47:26 +0200 (CEST) Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 0B242200CC0; Wed, 6 May 2020 19:47:26 +0200 (CEST) Received: from fsr-ub1864-126.ea.freescale.net (fsr-ub1864-126.ea.freescale.net [10.171.82.212]) by inva024.eu-rdc02.nxp.com (Postfix) with ESMTP id C19DD205C6; Wed, 6 May 2020 19:47:25 +0200 (CEST) From: Ioana Ciornei To: davem@davemloft.net, netdev@vger.kernel.org Cc: hawk@kernel.org, Ioana Ciornei Subject: [PATCH net-next 0/2] dpaa2-eth: add bulking to XDP_TX Date: Wed, 6 May 2020 20:47:16 +0300 Message-Id: <20200506174718.20916-1-ioana.ciornei@nxp.com> X-Mailer: git-send-email 2.17.1 Reply-to: ioana.ciornei@nxp.com X-Virus-Scanned: ClamAV using ClamSMTP Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This patch set adds support for bulk enqueue in terms of XDP_TX packets. XDP_TX packets are qeueued no longer than the end of the NAPI cycle or until the array of frame descriptors stored per frame queue is full. The first patch just cleans up the bulk enqueue and creates a new routine to enqueue all frames for a FQ while the second patch actually adds the bulk enqueue for XDP_TX packets. Ioana Ciornei (2): dpaa2-eth: create a function to flush the XDP fds dpaa2-eth: add bulking to XDP_TX .../net/ethernet/freescale/dpaa2/dpaa2-eth.c | 129 ++++++++++++------ .../net/ethernet/freescale/dpaa2/dpaa2-eth.h | 8 +- 2 files changed, 92 insertions(+), 45 deletions(-)