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 716ED42FF3; Mon, 7 Aug 2023 04:16:37 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 06354410D3; Mon, 7 Aug 2023 04:16:37 +0200 (CEST) Received: from smtpbguseast1.qq.com (smtpbguseast1.qq.com [54.204.34.129]) by mails.dpdk.org (Postfix) with ESMTP id 6936240A8B for ; Mon, 7 Aug 2023 04:16:34 +0200 (CEST) X-QQ-mid: bizesmtp66t1691374585t0qg6wrl Received: from steven.localdomain ( [183.81.182.182]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 07 Aug 2023 10:16:23 +0800 (CST) X-QQ-SSF: 01400000000000D0F000000A0000000 X-QQ-FEAT: DEYZVVH8UvapqPLari9GuSIbUyan0K3ONfnLgYj9oRzbVVvw096WoKiY0JmM9 V/XdURzfqg8r84kajDWOyhE/1l1dlXSVZsaEXxZO2BjwBs7WzeuBzkKvxtUsoRSHP/MHMQ0 vgBxxBtaycgjvDWvsaxOCj2Ys9rD523YDamz72LlUcLh1PUHFHz/iB5PBZz7LbzNmNfZlNd bTrtqeN2kyCB3JZKEuMNNCuDByXEJMHTPAM9ZmxaR6eJLspwlq8ZD46UZfbTFgmxjjsCwxp r8bGwepHCnnucWjc8882VvLgGRyMqDJ92WBV64dBS/6cKicM/iBzvle1snexfO1qoWwQi67 JeeAQhZUvn49MGASpeziBVUuCU9VP0uHWUGJ00ahsNsPIlrdWZmCHv2ia4NDRpOTMYzm+lo W6U0/ANlibY= X-QQ-GoodBg: 2 X-BIZMAIL-ID: 6377446475403240490 From: Wenbo Cao To: Thomas Monjalon , Wenbo Cao Cc: dev@dpdk.org, ferruh.yigit@amd.com, andrew.rybchenko@oktetlabs.ru, yaojun@mucse.com Subject: [PATCH v5 1/8] net/rnp: add skeleton Date: Mon, 7 Aug 2023 02:16:08 +0000 Message-Id: <20230807021615.3663034-2-caowenbo@mucse.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20230807021615.3663034-1-caowenbo@mucse.com> References: <20230807021615.3663034-1-caowenbo@mucse.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:mucse.com:qybglogicsvrgz:qybglogicsvrgz5a-0 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 Add Basic PMD library and doc build infrastructure Update maintainers file to claim responsibility. Signed-off-by: Wenbo Cao --- MAINTAINERS | 6 +++++ doc/guides/nics/features/rnp.ini | 8 ++++++ doc/guides/nics/index.rst | 1 + doc/guides/nics/rnp.rst | 43 ++++++++++++++++++++++++++++++++ drivers/net/meson.build | 1 + drivers/net/rnp/meson.build | 11 ++++++++ drivers/net/rnp/rnp_ethdev.c | 3 +++ 7 files changed, 73 insertions(+) create mode 100644 doc/guides/nics/features/rnp.ini create mode 100644 doc/guides/nics/rnp.rst create mode 100644 drivers/net/rnp/meson.build create mode 100644 drivers/net/rnp/rnp_ethdev.c diff --git a/MAINTAINERS b/MAINTAINERS index a5219926ab..29c130b280 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -955,6 +955,12 @@ F: drivers/net/qede/ F: doc/guides/nics/qede.rst F: doc/guides/nics/features/qede*.ini +Mucse rnp +M: Wenbo Cao +F: drivers/net/rnp +F: doc/guides/nics/rnp.rst +F: doc/guides/nics/features/rnp.ini + Solarflare sfc_efx M: Andrew Rybchenko F: drivers/common/sfc_efx/ diff --git a/doc/guides/nics/features/rnp.ini b/doc/guides/nics/features/rnp.ini new file mode 100644 index 0000000000..2ad04ee330 --- /dev/null +++ b/doc/guides/nics/features/rnp.ini @@ -0,0 +1,8 @@ +; +; Supported features of the 'rnp' network poll mode driver. +; +; Refer to default.ini for the full list of available PMD features. +; +[Features] +Linux = Y +x86-64 = Y diff --git a/doc/guides/nics/index.rst b/doc/guides/nics/index.rst index 5c9d1edf5e..cc89d3154a 100644 --- a/doc/guides/nics/index.rst +++ b/doc/guides/nics/index.rst @@ -61,6 +61,7 @@ Network Interface Controller Drivers pcap_ring pfe qede + rnp sfc_efx softnic tap diff --git a/doc/guides/nics/rnp.rst b/doc/guides/nics/rnp.rst new file mode 100644 index 0000000000..5b3a3d0483 --- /dev/null +++ b/doc/guides/nics/rnp.rst @@ -0,0 +1,43 @@ +.. SPDX-License-Identifier: BSD-3-Clause + Copyright(c) 2023 Mucse IC Design Ltd. + +RNP Poll Mode driver +========================== + +The RNP ETHDEV PMD (**librte_net_rnp**) provides poll mode ethdev +driver support for the inbuilt network device found in the **Mucse RNP** + +Prerequisites +------------- +More information can be found at `Mucse, Official Website +`_. + +Supported RNP SoCs +------------------------ + +- N10 + +Driver compilation and testing +------------------------------ + +Refer to the document :ref:`compiling and testing a PMD for a NIC ` +for details. + +#. Running testpmd: + + Follow instructions available in the document + :ref:`compiling and testing a PMD for a NIC ` + to run testpmd. + +Limitations or Known issues +---------------------------- +Build with ICC is not supported yet. +CRC stripping +~~~~~~~~~~~~~~ +The RNP SoC family NICs strip the CRC for every packets coming into the +host interface irrespective of the offload configuration. +When You Want To Disable CRC_OFFLOAD The Feature Will Influence The RxCksum Offload +VLAN Strip +~~~~~~~~~~~ +For VLAN Strip RNP Just Support CVLAN(0x8100) Type If The Vlan Type Is SVLAN(0X88a8) +VLAN Filter Or Strip Will Not Effert For This Packet It Will Bypass To The Host. diff --git a/drivers/net/meson.build b/drivers/net/meson.build index b1df17ce8c..f9e013d38e 100644 --- a/drivers/net/meson.build +++ b/drivers/net/meson.build @@ -54,6 +54,7 @@ drivers = [ 'pfe', 'qede', 'ring', + 'rnp', 'sfc', 'softnic', 'tap', diff --git a/drivers/net/rnp/meson.build b/drivers/net/rnp/meson.build new file mode 100644 index 0000000000..4f37c6b456 --- /dev/null +++ b/drivers/net/rnp/meson.build @@ -0,0 +1,11 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(C) 2023 Mucse IC Design Ltd. +# +if not is_linux + build = false + reason = 'only supported on Linux' +endif + +sources = files( + 'rnp_ethdev.c', +) diff --git a/drivers/net/rnp/rnp_ethdev.c b/drivers/net/rnp/rnp_ethdev.c new file mode 100644 index 0000000000..9ce3c0b497 --- /dev/null +++ b/drivers/net/rnp/rnp_ethdev.c @@ -0,0 +1,3 @@ +/* SPDX-License-Identifier: BSD-3-Clause + * Copyright(C) 2023 Mucse IC Design Ltd. + */ -- 2.27.0