From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 48B87A04B3; Mon, 9 Dec 2019 22:48:41 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7B48A1B9B7; Mon, 9 Dec 2019 22:48:33 +0100 (CET) Received: from mail.ntop.org (mail-digitalocean.ntop.org [167.99.215.164]) by dpdk.org (Postfix) with ESMTP id 6E62F1F5 for ; Mon, 9 Dec 2019 22:48:29 +0100 (CET) Received: from devele.ntop.org (net-93-145-196-230.cust.vodafonedsl.it [93.145.196.230]) by mail.ntop.org (Postfix) with ESMTPSA id 106ED41B67; Mon, 9 Dec 2019 22:48:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntop.org; s=mail; t=1575928109; bh=nm24VSgYYm4EQckh2B6OAgt/41bQ28bUiX7PHeOO59Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Vnki8Qp+8erGdNq1VER/SX+Gi2fK9hy6bX5rO5TdgNl9CbP9c63O62tKZk4vFXfvP TwdyP8sxKrY7L/nGIe4C+38XWHF6YR9SO8L4kwYbRjcrPkhKCrSc68JkGwiTXqAHiI oTbYWMglpWQ3555o+Vv5HQFiAzgooeilpIqTd4lE= From: Alfredo Cardigliano To: Thomas Monjalon , Alfredo Cardigliano , John McNamara , Marko Kovacevic Cc: dev@dpdk.org Date: Mon, 9 Dec 2019 22:46:40 +0100 Message-Id: <20191209214656.27347-2-cardigliano@ntop.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191209214656.27347-1-cardigliano@ntop.org> References: <20191209214656.27347-1-cardigliano@ntop.org> Subject: [dpdk-dev] [PATCH v3 01/17] net/ionic: add skeleton 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" Add makefile and config file options to compile the Pensando ionic PMD. Add feature and version map file. Update maintainers file. Signed-off-by: Alfredo Cardigliano Reviewed-by: Shannon Nelson --- MAINTAINERS | 6 ++++ config/common_base | 5 +++ doc/guides/nics/features/ionic.ini | 8 +++++ doc/guides/nics/index.rst | 1 + doc/guides/nics/ionic.rst | 37 ++++++++++++++++++++ doc/guides/rel_notes/release_20_02.rst | 4 +++ drivers/net/Makefile | 1 + drivers/net/ionic/Makefile | 38 +++++++++++++++++++++ drivers/net/ionic/meson.build | 6 ++++ drivers/net/ionic/rte_pmd_ionic_version.map | 5 +++ mk/rte.app.mk | 1 + 11 files changed, 112 insertions(+) create mode 100644 doc/guides/nics/features/ionic.ini create mode 100644 doc/guides/nics/ionic.rst create mode 100644 drivers/net/ionic/Makefile create mode 100644 drivers/net/ionic/meson.build create mode 100644 drivers/net/ionic/rte_pmd_ionic_version.map diff --git a/MAINTAINERS b/MAINTAINERS index 4395d8df1..bb4422344 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -810,6 +810,12 @@ F: doc/guides/nics/pfe.rst F: drivers/net/pfe/ F: doc/guides/nics/features/pfe.ini +Pensando ionic +M: Alfredo Cardigliano +F: drivers/net/ionic/ +F: doc/guides/nics/ionic.rst +F: doc/guides/nics/features/ionic.ini + QLogic bnx2x M: Rasesh Mody M: Shahed Shaikh diff --git a/config/common_base b/config/common_base index 7dec7ed45..626c83d05 100644 --- a/config/common_base +++ b/config/common_base @@ -277,6 +277,11 @@ CONFIG_RTE_LIBRTE_E1000_DEBUG_TX=n CONFIG_RTE_LIBRTE_E1000_DEBUG_TX_FREE=n CONFIG_RTE_LIBRTE_E1000_PF_DISABLE_STRIP_CRC=n +# +# Compile Pensando IONIC PMD driver +# +CONFIG_RTE_LIBRTE_IONIC_PMD=y + # # Compile burst-oriented HINIC PMD driver # diff --git a/doc/guides/nics/features/ionic.ini b/doc/guides/nics/features/ionic.ini new file mode 100644 index 000000000..3a92eedc7 --- /dev/null +++ b/doc/guides/nics/features/ionic.ini @@ -0,0 +1,8 @@ +; +; Supported features of the 'ionic' network poll mode driver. +; +; Refer to default.ini for the full list of available PMD features. +; +[Features] +x86-64 = Y +Usage doc = Y diff --git a/doc/guides/nics/index.rst b/doc/guides/nics/index.rst index d61c27fdf..7b5fea029 100644 --- a/doc/guides/nics/index.rst +++ b/doc/guides/nics/index.rst @@ -33,6 +33,7 @@ Network Interface Controller Drivers ice ifc igb + ionic ipn3ke ixgbe intel_vf diff --git a/doc/guides/nics/ionic.rst b/doc/guides/nics/ionic.rst new file mode 100644 index 000000000..41eac0f6b --- /dev/null +++ b/doc/guides/nics/ionic.rst @@ -0,0 +1,37 @@ +.. SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0) + Copyright(c) 2018-2019 Pensando Systems, Inc. All rights reserved. + +IONIC Driver +============ + +The ionic driver provides support for Pensando server adapters. +Please visit https://pensando.io for more information about the +adapters. + +Identifying the Adapter +----------------------- + +To find if one or more Pensando PCI Ethernet devices are installed +on the host, check for the PCI devices: + + .. code-block:: console + + lspci -d 1dd8: + b5:00.0 Ethernet controller: Device 1dd8:1002 + b6:00.0 Ethernet controller: Device 1dd8:1002 + +Pre-Installation Configuration +------------------------------ + +The following options can be modified in the ``config`` file. + +- ``CONFIG_RTE_LIBRTE_IONIC_PMD`` (default ``y``) + + Toggle compilation of ionic PMD. + +Building DPDK +------------- + +The ionic PMD driver supports UIO and VFIO, please refer to the +:ref:`DPDK documentation that comes with the DPDK suite ` +for instructions on how to build DPDK. diff --git a/doc/guides/rel_notes/release_20_02.rst b/doc/guides/rel_notes/release_20_02.rst index 0eaa45a76..133c34e50 100644 --- a/doc/guides/rel_notes/release_20_02.rst +++ b/doc/guides/rel_notes/release_20_02.rst @@ -56,6 +56,10 @@ New Features Also, make sure to start the actual text at the margin. ========================================================= +* **Added IONIC net PMD.** + + Added the new ``ionic`` net driver for Pensando Ethernet Network Adapters. + See the :doc:`../nics/ionic` NIC guide for more details on this new driver. Removed Items ------------- diff --git a/drivers/net/Makefile b/drivers/net/Makefile index cee30367a..63a52ee79 100644 --- a/drivers/net/Makefile +++ b/drivers/net/Makefile @@ -34,6 +34,7 @@ DIRS-$(CONFIG_RTE_LIBRTE_HNS3_PMD) += hns3 DIRS-$(CONFIG_RTE_LIBRTE_I40E_PMD) += i40e DIRS-$(CONFIG_RTE_LIBRTE_IAVF_PMD) += iavf DIRS-$(CONFIG_RTE_LIBRTE_ICE_PMD) += ice +DIRS-$(CONFIG_RTE_LIBRTE_IONIC_PMD) += ionic DIRS-$(CONFIG_RTE_LIBRTE_IPN3KE_PMD) += ipn3ke DIRS-$(CONFIG_RTE_LIBRTE_IXGBE_PMD) += ixgbe DIRS-$(CONFIG_RTE_LIBRTE_LIO_PMD) += liquidio diff --git a/drivers/net/ionic/Makefile b/drivers/net/ionic/Makefile new file mode 100644 index 000000000..d2c2b53b3 --- /dev/null +++ b/drivers/net/ionic/Makefile @@ -0,0 +1,38 @@ +# SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0) +# Copyright(c) 2018-2019 Pensando Systems, Inc. All rights reserved. + +include $(RTE_SDK)/mk/rte.vars.mk + +# +# library name +# +LIB = librte_pmd_ionic.a + +CFLAGS += -O3 +CFLAGS += $(WERROR_FLAGS) + +EXPORT_MAP := rte_pmd_ionic_version.map + +ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y) +# +# CFLAGS for icc +# + +else ifeq ($(CONFIG_RTE_TOOLCHAIN_CLANG),y) +# +# CFLAGS for clang +# + +else +# +# CFLAGS for gcc +# + +endif + +# +# all source are stored in SRCS-y +# +SRCS-$(CONFIG_RTE_LIBRTE_IONIC_PMD) += + +include $(RTE_SDK)/mk/rte.lib.mk diff --git a/drivers/net/ionic/meson.build b/drivers/net/ionic/meson.build new file mode 100644 index 000000000..5386e23ca --- /dev/null +++ b/drivers/net/ionic/meson.build @@ -0,0 +1,6 @@ +# SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0) +# Copyright(c) 2019 Pensando + +sources = files( +) + diff --git a/drivers/net/ionic/rte_pmd_ionic_version.map b/drivers/net/ionic/rte_pmd_ionic_version.map new file mode 100644 index 000000000..3fb4ff7eb --- /dev/null +++ b/drivers/net/ionic/rte_pmd_ionic_version.map @@ -0,0 +1,5 @@ +DPDK_20.0 { + + local: *; +}; + diff --git a/mk/rte.app.mk b/mk/rte.app.mk index 05ea034b9..57f5f77de 100644 --- a/mk/rte.app.mk +++ b/mk/rte.app.mk @@ -183,6 +183,7 @@ _LDLIBS-$(CONFIG_RTE_LIBRTE_HNS3_PMD) += -lrte_pmd_hns3 _LDLIBS-$(CONFIG_RTE_LIBRTE_I40E_PMD) += -lrte_pmd_i40e _LDLIBS-$(CONFIG_RTE_LIBRTE_IAVF_PMD) += -lrte_pmd_iavf _LDLIBS-$(CONFIG_RTE_LIBRTE_ICE_PMD) += -lrte_pmd_ice +_LDLIBS-$(CONFIG_RTE_LIBRTE_IONIC_PMD) += -lrte_pmd_ionic _LDLIBS-$(CONFIG_RTE_LIBRTE_IXGBE_PMD) += -lrte_pmd_ixgbe ifeq ($(CONFIG_RTE_LIBRTE_KNI),y) _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_KNI) += -lrte_pmd_kni -- 2.17.1