From patchwork Wed Oct 3 07:22:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Ostruszka X-Patchwork-Id: 45918 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C9FDA2C24; Wed, 3 Oct 2018 09:22:20 +0200 (CEST) Received: from mail-lj1-f195.google.com (mail-lj1-f195.google.com [209.85.208.195]) by dpdk.org (Postfix) with ESMTP id E38DE2BD3 for ; Wed, 3 Oct 2018 09:22:18 +0200 (CEST) Received: by mail-lj1-f195.google.com with SMTP id 63-v6so4116935ljs.4 for ; Wed, 03 Oct 2018 00:22:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=f2JUQ5x0ogtNOmHIQNO74+CbvgDp1EcwvwNT4c8ulVg=; b=VwFZnWKg+Ape8FQmr+wDNJfNnX2ni9eIbVVjeDTMi/Qpzc7YKxoKmOknh0kfWctZg6 aq6ysY9HySEN0OYAn8WITPW+rzIULfumfMDaflrcKb74AAxde7eRmOAAqG3+or8qEwE3 8W7VQXuW13uDSIfdOXEoOJEZl73XRtdu3hBBxpYSf0GutvCfX9ySFG9VPu1iNdm0Vkyb Ylw2JPwejIhG6nPUEvSUi11BYTaMsFfM5VHtxzRB2maQnB+YvsqekAhyRpQILb7wwlzA L/2AOrQHBnKzfE20FzheW06JAgdcgVsYuV7gmwYvyIwt/q+Q8iRMgJ45FCQx8+qgOZRN dVEA== 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:in-reply-to :references; bh=f2JUQ5x0ogtNOmHIQNO74+CbvgDp1EcwvwNT4c8ulVg=; b=qa1oqOabXdfhLwvIVGGRAz1V2cOGwYzT1Gj/ND3sAg+LbM4O/FFd71LRzAczXXSEHN EzRCRwNeMSPkkV3YgopPryBefNivBDgF6W4MPFR/U3vyITLfqwckylEBLzvZpv+HpQkS 2BT0ualXGCIEp/LjCfS9ad8NrgGF6VogNxdHSZ4YO4xB3JW4CYPWTZ6L0N0Sy9UQi3bs lhpnO+yuHtN6xDE2CrVBNuOFr5inhpnsTKuJINaO4Qs4flT3d6bmZdqZWEyEk92ZcmP4 ZQV4TYV1fk42nvlcwdv4W6lbGB6a2S6TohDXLqe1S4CW3zNob1udNtLbWBXNBrddS7xQ c2SA== X-Gm-Message-State: ABuFfoh9I84oHrKGwKW2Yn9htuKgbLNe3rk+t6wQBtsJp5sFtUNrZNHt zablatJWDEguVFzadmy1ooBsr8Ou6eOx2g== X-Google-Smtp-Source: ACcGV61LFucarKB3LPE4O2AUQMFgOreLva4Jf3o9jds7hzgu+iFtjVj/NioUTt/EPO2/TuYXborpLw== X-Received: by 2002:a2e:9955:: with SMTP id r21-v6mr150205ljj.5.1538551338122; Wed, 03 Oct 2018 00:22:18 -0700 (PDT) Received: from amok.semihalf.local (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.googlemail.com with ESMTPSA id f73-v6sm123659lfl.80.2018.10.03.00.22.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 03 Oct 2018 00:22:16 -0700 (PDT) From: Andrzej Ostruszka X-Google-Original-From: Andrzej Ostruszka To: dev@dpdk.org Cc: mw@semihalf.com, nadavh@marvell.com, zr@semihalf.com, tdu@semihalf.com, Andrzej Ostruszka Date: Wed, 3 Oct 2018 09:22:08 +0200 Message-Id: <1538551336-19259-1-git-send-email-andrzej.ostruszka@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1538385970-21260-1-git-send-email-andrzej.ostruszka@gmail.com> References: <1538385970-21260-1-git-send-email-andrzej.ostruszka@gmail.com> Subject: [dpdk-dev] [PATCH v7 0/8] Add Marvell NETA PMD X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Andrzej Ostruszka This patch series introduces new PMD for Marvell NETA adapters (MVNETA). See the documentation for more info. It is split for easier reviewing. v7: Addressed last round of review comments: * improved documentation by listing it in toc, removing unsupported MUSDK option and documenting run time option * removed variables that are not really used * documented devargs via REGISTER_PARAM_STRING * implemented better separation between mvneta_ethdev.c and mvneta_rxtx.c (now mvneta_rxtx.h includes only prototypes of functions needed by mvneta_ethdev.c) v6: * add missing call to rte_eth_dev_probing_finish() * update doc to point to MUSDK 18.09 * add mvep lib to LDLIBS in mvneta Makefile v5: * fixed wrong order of clenup in mvneta_eth_dev_create() * inlined one auxilary function (mvneta_priv_create()) v4: * rebased on top of next-net (DEV_RX_OFFLOAD_CRC_STRIP removed) * Rx/Tx functionality moved to new mvneta_rxtx.c file * removed eth_mvneta alias (and docs updated accordingly) * fixed additional review comments v3: No changes against v2, just resubmitting again to have clean patch set after faulty format-patch. My apologies for the noise. v2: * fixed couple of checkpatch warnings * removed '\n' from MVNETA_LOG invocations (appended by the macro) * removed unused MVNETA_MUSDK_DMA_MEMSIZE define * changed one printf into MVNETA_LOG * removed __func__ from one MVNETA_LOG invocation (inserted automatically by the macro) * minor grammar/spelling correction in comments * removed license text from file with SPDX tag (mvneta.rst) * removed misleading part of comment for mvneta_shadow_txq * changed authorship of the patches to the original author Natalie Samsonov (1): net/mvneta: add reset statistics callback Zyta Szpak (7): net/mvneta: add neta PMD skeleton net/mvneta: add Rx/Tx support net/mvneta: support for setting of MTU net/mvneta: add link update net/mvneta: support for promiscuous net/mvneta: add MAC filtering net/mvneta: add support for basic stats MAINTAINERS | 8 + config/common_base | 5 + devtools/test-build.sh | 2 + doc/guides/nics/features/mvneta.ini | 19 + doc/guides/nics/index.rst | 1 + doc/guides/nics/mvneta.rst | 171 +++++ doc/guides/rel_notes/release_18_11.rst | 4 + drivers/common/Makefile | 4 +- drivers/common/mvep/rte_mvep_common.h | 1 + drivers/net/Makefile | 1 + drivers/net/meson.build | 1 + drivers/net/mvneta/Makefile | 42 + drivers/net/mvneta/meson.build | 28 + drivers/net/mvneta/mvneta_ethdev.c | 993 ++++++++++++++++++++++++ drivers/net/mvneta/mvneta_ethdev.h | 79 ++ drivers/net/mvneta/mvneta_rxtx.c | 1021 +++++++++++++++++++++++++ drivers/net/mvneta/mvneta_rxtx.h | 32 + drivers/net/mvneta/rte_pmd_mvneta_version.map | 3 + mk/rte.app.mk | 7 +- 19 files changed, 2419 insertions(+), 3 deletions(-) create mode 100644 doc/guides/nics/features/mvneta.ini create mode 100644 doc/guides/nics/mvneta.rst create mode 100644 drivers/net/mvneta/Makefile create mode 100644 drivers/net/mvneta/meson.build create mode 100644 drivers/net/mvneta/mvneta_ethdev.c create mode 100644 drivers/net/mvneta/mvneta_ethdev.h create mode 100644 drivers/net/mvneta/mvneta_rxtx.c create mode 100644 drivers/net/mvneta/mvneta_rxtx.h create mode 100644 drivers/net/mvneta/rte_pmd_mvneta_version.map Reviewed-by: Ferruh Yigit