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 3AF2642219; Fri, 1 Sep 2023 04:31:22 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 19541402A7; Fri, 1 Sep 2023 04:31:14 +0200 (CEST) Received: from smtpbguseast3.qq.com (smtpbguseast3.qq.com [54.243.244.52]) by mails.dpdk.org (Postfix) with ESMTP id 0942240298 for ; Fri, 1 Sep 2023 04:31:10 +0200 (CEST) X-QQ-mid: bizesmtp81t1693535460tj2fyfm7 Received: from steven.localdomain ( [183.81.182.182]) by bizesmtp.qq.com (ESMTP) with id ; Fri, 01 Sep 2023 10:30:59 +0800 (CST) X-QQ-SSF: 01400000000000D0F000000A0000000 X-QQ-FEAT: 3M0okmaRx3i3UKUPPWvztR7Qa2WfdQ4XpNMnHVswANDis6E1Oe++jyZdtPe7E M7vKlL/HO1n0YQL90lw4LFHdiwY/2m6ekqC/JTdqewh89qVV9IqnIuYtKmjwINx5Bve6BGQ GIByE5oqI26hRudsGzFAF821aByWr8UxZFp3Tq6cMqpYthBeSZPNbBeVd/7HWuJjnzfUIUg +rODcqcsu4UFX4VPzBbzLxuyyP5hgNA17EXnOSD5gmPEkhTJVPse+KLlcRErz+IBuhiqdc7 BUB66/Yq5FlXILb0yfS01CdINfl30STBT139orHgKYj5P29XkF4ndNYVCF5pcxkjMChQBHX 2//OjXRIsulOwF0I+F2Ej8Zugx94XEDuhvZEa2pmDLjWZyoBQwXDCGKwUKg3gDPbX6Weu4d wbixcwV1SR8= X-QQ-GoodBg: 2 X-BIZMAIL-ID: 17402284158496476058 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 v6 1/8] net/rnp: add skeleton Date: Fri, 1 Sep 2023 02:30:43 +0000 Message-Id: <20230901023050.40893-2-caowenbo@mucse.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20230901023050.40893-1-caowenbo@mucse.com> References: <20230901023050.40893-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 | 38 ++++++++++++++++++++++++++++++++ drivers/net/meson.build | 1 + drivers/net/rnp/meson.build | 11 +++++++++ drivers/net/rnp/rnp_ethdev.c | 3 +++ 7 files changed, 68 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..0eb8f2d415 --- /dev/null +++ b/doc/guides/nics/rnp.rst @@ -0,0 +1,38 @@ +.. SPADIX-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 Chipsets and NICs +--------------------------- + +- MUCSE Ethernet Controller N10 Series for 10GbE or 40GbE (Dual-port) + +Limitations or Known issues +--------------------------- + +Build with ICC is not supported yet. +BSD are not supported yet. + +CRC stripping +~~~~~~~~~~~~~ + +The RNP Soc family Nic strip the CRC for every packets coming into the +host interface irrespective of the offload configuration. +When you want to disable CRC_OFFLOAD the operate will influence the rxCksum offload. + +VLAN Strip/Filter +~~~~~~~~~~~~~~~~~ + +For VLAN strip/filter, RNP just support vlan is CVLAN(0x8100).If the outvlan type is SVLAN(0X88a8) +VLAN filter or strip will not effort for this packet.It will bypass filter to the host default queue, +whatever the other filter rule is. 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