From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5ACD9A0561; Thu, 18 Mar 2021 10:32:19 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 44298140F1B; Thu, 18 Mar 2021 10:32:19 +0100 (CET) Received: from smtpbgeu1.qq.com (smtpbgeu1.qq.com [52.59.177.22]) by mails.dpdk.org (Postfix) with ESMTP id 4F324140F19 for ; Thu, 18 Mar 2021 10:32:17 +0100 (CET) X-QQ-mid: bizesmtp14t1616059933td0cucyk Received: from jiawenwu.trustnetic.com (unknown [183.129.236.74]) by esmtp6.qq.com (ESMTP) with id ; Thu, 18 Mar 2021 17:32:13 +0800 (CST) X-QQ-SSF: 01400000002000C0E000000A0000000 X-QQ-FEAT: Me8y4DzRu2QT2z+xpTwSUF2MiibAfS5xuoo48uhWre9V0Jr4YjzWhI8VBVfSx Y7F8p+hMLpvxR+QzClwzMkHWp80h17ir6w40SRK9xgLSRdRXkodhh8AGEsU6aKKB6c+aVko VeiC6AMAhhI6l8DfRUff6OyOhQ+EPFfgzj8qGCqLYuFR4CvnHeSC8Szv7z649h2Tyj16qns lDxVxkM7Zn8056niCf+3NTsje20viZY/JHulxsn8SwH9cRIIn/guQYiUNgLjBE5bhJmRcm6 PqgpxKwu6xnAs7bvzeMXM3OC5weic2UxFOHmFDy0FWysHfWw/aKsRvtijVFNnHsI47PfRK1 lblAdXxS+QwgIDiu9AXWfD8I+uL9P+jBeJ0Mzah6b4DjjuXLdU= X-QQ-GoodBg: 2 From: Jiawen Wu To: dev@dpdk.org Cc: Jiawen Wu Date: Thu, 18 Mar 2021 17:32:03 +0800 Message-Id: <20210318093208.17824-2-jiawenwu@trustnetic.com> X-Mailer: git-send-email 2.21.0.windows.1 In-Reply-To: <20210318093208.17824-1-jiawenwu@trustnetic.com> References: <20210318093208.17824-1-jiawenwu@trustnetic.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:trustnetic.com:qybgforeign:qybgforeign6 X-QQ-Bgrelay: 1 Subject: [dpdk-dev] [PATCH 1/6] net/ngbe: add build and doc infrastructure X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" Adding bare minimum PMD library and doc build infrastructure and claim the maintainership for ngbe PMD. Signed-off-by: Jiawen Wu --- MAINTAINERS | 6 ++++++ doc/guides/nics/features/ngbe.ini | 10 +++++++++ doc/guides/nics/index.rst | 1 + doc/guides/nics/ngbe.rst | 28 ++++++++++++++++++++++++++ doc/guides/rel_notes/release_21_05.rst | 6 ++++++ drivers/net/meson.build | 1 + drivers/net/ngbe/meson.build | 12 +++++++++++ drivers/net/ngbe/ngbe_ethdev.c | 4 ++++ drivers/net/ngbe/ngbe_ethdev.h | 4 ++++ drivers/net/ngbe/version.map | 3 +++ 10 files changed, 75 insertions(+) create mode 100644 doc/guides/nics/features/ngbe.ini create mode 100644 doc/guides/nics/ngbe.rst create mode 100644 drivers/net/ngbe/meson.build create mode 100644 drivers/net/ngbe/ngbe_ethdev.c create mode 100644 drivers/net/ngbe/ngbe_ethdev.h create mode 100644 drivers/net/ngbe/version.map diff --git a/MAINTAINERS b/MAINTAINERS index e341bc81d..a611b6595 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -886,6 +886,12 @@ F: drivers/net/txgbe/ F: doc/guides/nics/txgbe.rst F: doc/guides/nics/features/txgbe.ini +Wangxun txgbe +M: Jiawen Wu +F: drivers/net/ngbe/ +F: doc/guides/nics/ngbe.rst +F: doc/guides/nics/features/ngbe.ini + VMware vmxnet3 M: Yong Wang F: drivers/net/vmxnet3/ diff --git a/doc/guides/nics/features/ngbe.ini b/doc/guides/nics/features/ngbe.ini new file mode 100644 index 000000000..a7a524def --- /dev/null +++ b/doc/guides/nics/features/ngbe.ini @@ -0,0 +1,10 @@ +; +; Supported features of the 'ngbe' network poll mode driver. +; +; Refer to default.ini for the full list of available PMD features. +; +[Features] +Linux = Y +ARMv8 = Y +x86-32 = Y +x86-64 = Y diff --git a/doc/guides/nics/index.rst b/doc/guides/nics/index.rst index 799697caf..31a3e6bcd 100644 --- a/doc/guides/nics/index.rst +++ b/doc/guides/nics/index.rst @@ -47,6 +47,7 @@ Network Interface Controller Drivers netvsc nfb nfp + ngbe null octeontx octeontx2 diff --git a/doc/guides/nics/ngbe.rst b/doc/guides/nics/ngbe.rst new file mode 100644 index 000000000..007d8e80e --- /dev/null +++ b/doc/guides/nics/ngbe.rst @@ -0,0 +1,28 @@ +.. SPDX-License-Identifier: BSD-3-Clause + Copyright(c) 2018-2020. + +NGBE Poll Mode Driver +====================== + +The NGBE PMD (librte_pmd_ngbe) provides poll mode driver support +for Wangxun 1 Gigabit Ethernet NICs. + +Prerequisites +------------- + +- Learning about Wangxun 10 Gigabit Ethernet NICs using + ``_. + +- Follow the DPDK :ref:`Getting Started Guide for Linux ` to setup the basic DPDK environment. + +Driver compilation and testing +------------------------------ + +Refer to the document :ref:`compiling and testing a PMD for a NIC ` +for details. + +Limitations or Known issues +--------------------------- + +Build with ICC is not supported yet. +Power8, ARMv7 and BSD are not supported yet. diff --git a/doc/guides/rel_notes/release_21_05.rst b/doc/guides/rel_notes/release_21_05.rst index 21dc6d234..c23b14970 100644 --- a/doc/guides/rel_notes/release_21_05.rst +++ b/doc/guides/rel_notes/release_21_05.rst @@ -76,6 +76,12 @@ New Features * Added support for txgbevf PMD. +* **Added Wangxun ngbe PMD.** + + Added a new PMD driver for Wangxun 1 Gigabit Ethernet NICs. + + See the :doc:`../nics/ngbe` for more details. + * **Updated testpmd.** * Added a command line option to configure forced speed for Ethernet port. diff --git a/drivers/net/meson.build b/drivers/net/meson.build index fb9ff05a1..d1baa2842 100644 --- a/drivers/net/meson.build +++ b/drivers/net/meson.build @@ -36,6 +36,7 @@ drivers = ['af_packet', 'netvsc', 'nfb', 'nfp', + 'ngbe', 'null', 'octeontx', 'octeontx2', diff --git a/drivers/net/ngbe/meson.build b/drivers/net/ngbe/meson.build new file mode 100644 index 000000000..d6388d061 --- /dev/null +++ b/drivers/net/ngbe/meson.build @@ -0,0 +1,12 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2018-2020 + +if is_windows + build = false + reason = 'not supported on Windows' + subdir_done() +endif + +sources = files( + 'ngbe_ethdev.c', +) diff --git a/drivers/net/ngbe/ngbe_ethdev.c b/drivers/net/ngbe/ngbe_ethdev.c new file mode 100644 index 000000000..e2756315a --- /dev/null +++ b/drivers/net/ngbe/ngbe_ethdev.c @@ -0,0 +1,4 @@ + /* SPDX-License-Identifier: BSD-3-Clause + * Copyright(c) 2018-2020 + */ + diff --git a/drivers/net/ngbe/ngbe_ethdev.h b/drivers/net/ngbe/ngbe_ethdev.h new file mode 100644 index 000000000..20f37e9d4 --- /dev/null +++ b/drivers/net/ngbe/ngbe_ethdev.h @@ -0,0 +1,4 @@ +/* SPDX-License-Identifier: BSD-3-Clause + * Copyright(c) 2018-2020 + */ + diff --git a/drivers/net/ngbe/version.map b/drivers/net/ngbe/version.map new file mode 100644 index 000000000..4a76d1d52 --- /dev/null +++ b/drivers/net/ngbe/version.map @@ -0,0 +1,3 @@ +DPDK_21 { + local: *; +}; -- 2.21.0.windows.1