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 D268542FB1; Tue, 1 Aug 2023 12:31:21 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 40BA443255; Tue, 1 Aug 2023 12:31:18 +0200 (CEST) Received: from smtpbg150.qq.com (smtpbg150.qq.com [18.132.163.193]) by mails.dpdk.org (Postfix) with ESMTP id 76E2D40F16 for ; Tue, 1 Aug 2023 08:45:54 +0200 (CEST) X-QQ-mid: bizesmtp79t1690872345ty18z2ew Received: from steven.localdomain ( [183.81.182.182]) by bizesmtp.qq.com (ESMTP) with id ; Tue, 01 Aug 2023 14:45:44 +0800 (CST) X-QQ-SSF: 01400000000000C0E000000A0000000 X-QQ-FEAT: 0b1/4t+gNkIrfsNrTWIz0USG6J8cUoLQdNIKCc9256aFYYXhOkQcfckDHMOj3 MJBYLZSo7vCjr5H1tVvjjCk9wk3yZczJbL6Ms96FnDO+qg15oDxQUakYlWH89vTQLB4IXvr TpnsFLz0+SvJMMqeMAzGafS7oH/+UIMMMr9mnEgxBfzP3I9f5jZprkfVuFx0v0E7qjKAM0/ apd3ul2t0Z5cIG1RnAdPw5tXtJj9lf8jH6cCoA8Ykd7zRWzy+w92c6AGg6/3avSJaZAV9xd xPTDXhszuj0lPzJGjnjcFlcKHW8eH8xN5e18jzN7LVWTzHtxz14k3nHN1fTxy8hvO2I/4n+ OZZqSpvpkjq7pQ8rsFgt/x4VgJagMXv339KGSp4PEw+oBAk/RpLe7y2H+Ane41qpPT31zPW ppViV+HV8pk= X-QQ-GoodBg: 2 X-BIZMAIL-ID: 13183600653926302496 From: Wenbo Cao To: Thomas Monjalon , caowenbo@mucse.com Cc: dev@dpdk.org Subject: [[PATCH v1] 1/8] net/rnp: add skeleton Date: Tue, 1 Aug 2023 06:43:39 +0000 Message-Id: <20230801064346.805294-2-caowenbo@mucse.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20230801064346.805294-1-caowenbo@mucse.com> References: <20230801064346.805294-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-Mailman-Approved-At: Tue, 01 Aug 2023 12:31:16 +0200 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 | 12 +++++++++ drivers/net/rnp/rnp_ethdev.c | 3 +++ 7 files changed, 74 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..36f4867cf8 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: caowenbo@mucse.com +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..8785972fd9 --- /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..8bdbf05857 100644 --- a/drivers/net/meson.build +++ b/drivers/net/meson.build @@ -56,6 +56,7 @@ drivers = [ 'ring', 'sfc', 'softnic', + 'rnp', 'tap', 'thunderx', 'txgbe', diff --git a/drivers/net/rnp/meson.build b/drivers/net/rnp/meson.build new file mode 100644 index 0000000000..0c38d39347 --- /dev/null +++ b/drivers/net/rnp/meson.build @@ -0,0 +1,12 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(C) 2023 Mucse IC Design Ltd. +# +if is_windows + build = false + reason = 'not supported on Windows' + subdir_done() +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