DPDK patches and discussions
 help / color / mirror / Atom feed
From: <wanry@3snic.com>
To: <dev@dpdk.org>
Cc: <ferruh.yigit@amd.com>, Renyong Wan <wanry@3snic.com>,
	Steven Song <steven.song@3snic.com>
Subject: [PATCH v4 01/32] net/sssnic: add build and doc infrastructure
Date: Fri, 1 Sep 2023 17:34:43 +0800	[thread overview]
Message-ID: <20230901093514.224824-2-wanry@3snic.com> (raw)
In-Reply-To: <20230901093514.224824-1-wanry@3snic.com>

From: Renyong Wan <wanry@3snic.com>

Adding minimum PMD code, doc and build infrastructure for sssnic.

Signed-off-by: Steven Song <steven.song@3snic.com>
Signed-off-by: Renyong Wan <wanry@3snic.com>
---
v2:
* Fixed 'Title underline too short' in doc/guides/nics/sssnic.rst.
* Removed error.h from including files.
---
 .mailmap                            |  5 +-
 MAINTAINERS                         |  8 ++++
 doc/guides/nics/features/sssnic.ini |  9 ++++
 doc/guides/nics/index.rst           |  1 +
 doc/guides/nics/sssnic.rst          | 73 +++++++++++++++++++++++++++++
 drivers/net/meson.build             |  1 +
 drivers/net/sssnic/meson.build      | 18 +++++++
 drivers/net/sssnic/sssnic_ethdev.c  | 28 +++++++++++
 8 files changed, 140 insertions(+), 3 deletions(-)
 create mode 100644 doc/guides/nics/features/sssnic.ini
 create mode 100644 doc/guides/nics/sssnic.rst
 create mode 100644 drivers/net/sssnic/meson.build
 create mode 100644 drivers/net/sssnic/sssnic_ethdev.c

diff --git a/.mailmap b/.mailmap
index 864d33ee46..6fa73d3b79 100644
--- a/.mailmap
+++ b/.mailmap
@@ -151,7 +151,6 @@ Bao-Long Tran <longtb5@viettel.com.vn>
 Bar Neuman <bneuman@nvidia.com>
 Barak Enat <barak@saguna.net>
 Barry Cao <barry.cao@nxp.com>
-Bartosz Staszewski <bartoszx.staszewski@intel.com>
 Baruch Siach <baruch@tkos.co.il>
 Bassam Zaid AlKilani <bzalkilani@nvidia.com>
 Beilei Xing <beilei.xing@intel.com>
@@ -496,7 +495,6 @@ Helin Zhang <helin.zhang@intel.com>
 Hemant Agrawal <hemant.agrawal@nxp.com> <hemant@freescale.com>
 Heng Ding <hengx.ding@intel.com>
 Hengjian Zhang <hengjianx.zhang@intel.com>
-Heng Jiang <jiangheng14@huawei.com>
 Heng Wang <heng.wang@ericsson.com>
 Henning Schild <henning.schild@siemens.com>
 Henry Cai <caihe@huawei.com>
@@ -630,7 +628,6 @@ Jie Liu <jie2.liu@hxt-semitech.com>
 Jie Pan <panjie5@jd.com>
 Jie Wang <jie1x.wang@intel.com>
 Jie Zhou <jizh@linux.microsoft.com> <jizh@microsoft.com>
-Jieqiang Wang <jieqiang.wang@arm.com>
 Jijiang Liu <jijiang.liu@intel.com>
 Jilei Chen <chenjilei@cmss.chinamobile.com>
 Jim Harris <james.r.harris@intel.com>
@@ -1156,6 +1153,7 @@ Rebecca Troy <rebecca.troy@intel.com>
 Remi Pommarel <repk@triplefau.lt>
 Remy Horton <remy.horton@intel.com>
 Renata Saiakhova <renata.saiakhova@ekinops.com>
+Renyong Wan <wanry@3snic.com>
 Reshma Pattan <reshma.pattan@intel.com> <reshma.pattan@gmail.com>
 Ricardo Roldan <rroldan@bequant.com>
 Ricardo Salveti <ricardo.salveti@linaro.org>
@@ -1329,6 +1327,7 @@ Stephen Hurd <stephen.hurd@broadcom.com> <shurd@broadcom.com>
 Steve Capper <steve.capper@arm.com>
 Steven Lariau <steven.lariau@arm.com>
 Steven Luong <sluong@cisco.com>
+Steven Song <steven.song@3snic.com>
 Steven Webster <steven.webster@windriver.com>
 Steven Zou <steven.zou@intel.com>
 Steve Rempe <steve.rempe@broadcom.com>
diff --git a/MAINTAINERS b/MAINTAINERS
index a926155f26..1e57d29aa3 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -633,6 +633,13 @@ F: drivers/net/af_xdp/
 F: doc/guides/nics/af_xdp.rst
 F: doc/guides/nics/features/af_xdp.ini
 
+3SNIC sssnic
+M: Renyong Wan <wanry@3snic.com>
+M: Steven Song <steven.song@3snic.com>
+F: driver/net/sssnic/
+F: doc/guides/nics/sssnic.rst
+F: doc/guides/nics/features/sssnic.ini
+
 Amazon ENA
 M: Michal Krawczyk <mk@semihalf.com>
 M: Shai Brandes <shaibran@amazon.com>
@@ -1793,6 +1800,7 @@ F: doc/guides/tools/img/eventdev_*
 F: app/test/test_event_ring.c
 
 Procinfo tool
+M: Maryam Tahhan <maryam.tahhan@intel.com>
 M: Reshma Pattan <reshma.pattan@intel.com>
 F: app/proc-info/
 F: doc/guides/tools/proc_info.rst
diff --git a/doc/guides/nics/features/sssnic.ini b/doc/guides/nics/features/sssnic.ini
new file mode 100644
index 0000000000..6d9786db7e
--- /dev/null
+++ b/doc/guides/nics/features/sssnic.ini
@@ -0,0 +1,9 @@
+;
+; Supported features of the 'sssnic' network poll mode driver.
+;
+; Refer to default.ini for the full list of available PMD features.
+;
+[Features]
+Linux                = Y
+ARMv8                = Y
+x86-64               = Y
diff --git a/doc/guides/nics/index.rst b/doc/guides/nics/index.rst
index 7bfcac880f..9d2b29383b 100644
--- a/doc/guides/nics/index.rst
+++ b/doc/guides/nics/index.rst
@@ -61,6 +61,7 @@ Network Interface Controller Drivers
     qede
     sfc_efx
     softnic
+    sssnic
     tap
     thunderx
     txgbe
diff --git a/doc/guides/nics/sssnic.rst b/doc/guides/nics/sssnic.rst
new file mode 100644
index 0000000000..fe0180c2e6
--- /dev/null
+++ b/doc/guides/nics/sssnic.rst
@@ -0,0 +1,73 @@
+..  SPDX-License-Identifier: BSD-3-Clause
+    Copyright(c) 2022 Shenzhen 3SNIC Information Technology Co., Ltd.
+
+SSSNIC Poll Mode Driver
+=======================
+
+The sssnic PMD (**librte_pmd_sssnic**) provides poll mode driver support
+for 3SNIC 9x0 serials family of Ethernet adapters.
+
+
+Supported NICs
+--------------
+
+- 3S910 Dual Port SFP28 10/25GbE Ethernet adapter
+- 3S920 Quad Port SFP28 10/25GbE Ethernet adapter
+- 3S920 Quad Port QSFP28 100GbE Ethernet adapter
+
+
+Features
+--------
+
+Features of sssnic PMD are:
+
+- Link status
+- Link status event
+- Queue start/stop
+- Rx interrupt
+- Scattered Rx
+- TSO
+- LRO
+- Promiscuous mode
+- Allmulticast mode
+- Unicast MAC filter
+- Multicast MAC filte
+- RSS hash
+- RSS key update
+- RSS reta update
+- Inner RSS
+- VLAN filter
+- VLAN offload
+- L3 checksum offload
+- L4 checksum offload
+- Inner L3 checksum
+- Inner L4 checksum
+- Basic stats
+- Extended stats
+- Stats per queue
+- Flow control
+- FW version
+- Generic flow API
+
+
+Prerequisites
+-------------
+
+- Learning about 3SNIC Ethernet NICs using
+  `<https://www.3snic.com/products/SSSNIC>`_.
+
+- Follow the DPDK :ref:`Getting Started Guide for Linux <linux_gsg>` to setup the basic DPDK environment.
+
+
+Driver compilation and testing
+------------------------------
+
+Refer to the document :ref:`compiling and testing a PMD for a NIC <pmd_build_and_test>`
+for details.
+
+
+Limitations or Known issues
+---------------------------
+
+Build with ICC is not supported yet.
+Power8, ARMv7 and BSD are not supported yet.
diff --git a/drivers/net/meson.build b/drivers/net/meson.build
index bd38b533c5..224eab99a7 100644
--- a/drivers/net/meson.build
+++ b/drivers/net/meson.build
@@ -54,6 +54,7 @@ drivers = [
         'ring',
         'sfc',
         'softnic',
+        'sssnic',
         'tap',
         'thunderx',
         'txgbe',
diff --git a/drivers/net/sssnic/meson.build b/drivers/net/sssnic/meson.build
new file mode 100644
index 0000000000..fda65aa380
--- /dev/null
+++ b/drivers/net/sssnic/meson.build
@@ -0,0 +1,18 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018-2022 Shenzhen 3SNIC Information Technology Co., Ltd.
+
+if not is_linux
+    build = false
+    reason = 'only supported on Linux'
+    subdir_done()
+endif
+
+if (arch_subdir != 'x86' and arch_subdir != 'arm') or (not dpdk_conf.get('RTE_ARCH_64'))
+    build = false
+    reason = 'only supported on x86_64 and aarch64'
+    subdir_done()
+endif
+
+sources = files(
+        'sssnic_ethdev.c',
+)
diff --git a/drivers/net/sssnic/sssnic_ethdev.c b/drivers/net/sssnic/sssnic_ethdev.c
new file mode 100644
index 0000000000..dcda01eeb8
--- /dev/null
+++ b/drivers/net/sssnic/sssnic_ethdev.c
@@ -0,0 +1,28 @@
+/* SPDX-License-Identifier: BSD-3-Clause
+ * Copyright(c) 2018-2022 Shenzhen 3SNIC Information Technology Co., Ltd.
+ */
+
+#include <rte_common.h>
+#include <ethdev_pci.h>
+
+static int
+sssnic_pci_probe(struct rte_pci_driver *pci_drv, struct rte_pci_device *pci_dev)
+{
+	RTE_SET_USED(pci_drv);
+	RTE_SET_USED(pci_dev);
+	return -EINVAL;
+}
+
+static int
+sssnic_pci_remove(struct rte_pci_device *pci_dev)
+{
+	RTE_SET_USED(pci_dev);
+	return -EINVAL;
+}
+
+static struct rte_pci_driver sssnic_pmd = {
+	.probe = sssnic_pci_probe,
+	.remove = sssnic_pci_remove,
+};
+
+RTE_PMD_REGISTER_PCI(net_sssnic, sssnic_pmd);
-- 
2.27.0


  reply	other threads:[~2023-09-01  9:35 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-01  9:34 [PATCH v4 00/32] Introduce sssnic PMD for 3SNIC's 9x0 serials Ethernet adapters wanry
2023-09-01  9:34 ` wanry [this message]
2023-09-01 11:54   ` [PATCH v4 01/32] net/sssnic: add build and doc infrastructure David Marchand
2023-09-04  3:26     ` Renyong Wan
2023-09-01  9:34 ` [PATCH v4 02/32] net/sssnic: add log type and log macros wanry
2023-09-01  9:34 ` [PATCH v4 03/32] net/sssnic: support probe and remove wanry
2023-09-01  9:34 ` [PATCH v4 04/32] net/sssnic: initialize hardware base wanry
2023-09-01  9:34 ` [PATCH v4 05/32] net/sssnic: add event queue wanry
2023-09-01  9:34 ` [PATCH v4 06/32] net/sssnic/base: add message definition and utility wanry
2023-09-01  9:34 ` [PATCH v4 07/32] net/sssnic/base: add mailbox support wanry
2023-09-01  9:34 ` [PATCH v4 08/32] net/sssnic/base: add work queue wanry
2023-09-01  9:34 ` [PATCH v4 09/32] net/sssnic/base: add control queue wanry
2023-09-01  9:34 ` [PATCH v4 10/32] net/sssnic: add dev configure and infos get wanry
2023-09-01  9:34 ` [PATCH v4 11/32] net/sssnic: add dev MAC ops wanry
2023-09-01  9:34 ` [PATCH v4 12/32] net/sssnic: support dev link status wanry
2023-09-01  9:34 ` [PATCH v4 13/32] net/sssnic: support link status event wanry
2023-09-01  9:34 ` [PATCH v4 14/32] net/sssnic: support Rx queue setup and release wanry
2023-09-01  9:34 ` [PATCH v4 15/32] net/sssnic: support Tx " wanry
2023-09-01  9:34 ` [PATCH v4 16/32] net/sssnic: support Rx queue start and stop wanry
2023-09-01  9:34 ` [PATCH v4 17/32] net/sssnic: support Tx " wanry
2023-09-01  9:35 ` [PATCH v4 18/32] net/sssnic: add Rx interrupt support wanry
2023-09-01  9:35 ` [PATCH v4 19/32] net/sssnic: support dev start and stop wanry
2023-09-01  9:35 ` [PATCH v4 20/32] net/sssnic: support dev close and reset wanry
2023-09-01  9:35 ` [PATCH v4 21/32] net/sssnic: add allmulticast and promiscuous ops wanry
2023-09-01  9:35 ` [PATCH v4 22/32] net/sssnic: add basic and extended stats ops wanry
2023-09-01  9:35 ` [PATCH v4 23/32] net/sssnic: support Rx packet burst wanry
2023-09-01  9:35 ` [PATCH v4 24/32] net/sssnic: support Tx " wanry
2023-09-01  9:35 ` [PATCH v4 25/32] net/sssnic: add RSS support wanry
2023-09-01  9:35 ` [PATCH v4 26/32] net/sssnic: support dev MTU set wanry
2023-09-01  9:35 ` [PATCH v4 27/32] net/sssnic: support dev queue info get wanry
2023-09-01  9:35 ` [PATCH v4 28/32] net/sssnic: support dev firmware version get wanry
2023-09-01  9:35 ` [PATCH v4 29/32] net/sssnic: add dev flow control ops wanry
2023-09-01  9:35 ` [PATCH v4 30/32] net/sssnic: support VLAN offload and filter wanry
2023-09-01  9:35 ` [PATCH v4 31/32] net/sssnic: add generic flow ops wanry
2023-09-01  9:35 ` [PATCH v4 32/32] net/sssnic: add VF dev support wanry

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230901093514.224824-2-wanry@3snic.com \
    --to=wanry@3snic.com \
    --cc=dev@dpdk.org \
    --cc=ferruh.yigit@amd.com \
    --cc=steven.song@3snic.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).