Add minimum PMD code, doc and build infrastructure for xsc.

Signed-off-by: WanRenyong <[email protected]>

---

v2:
* fix compilation error
---
 .mailmap                         |  4 ++++
 MAINTAINERS                      |  9 +++++++++
 doc/guides/nics/features/xsc.ini |  9 +++++++++
 doc/guides/nics/index.rst        |  1 +
 doc/guides/nics/xsc.rst          | 31 +++++++++++++++++++++++++++++++
 drivers/net/meson.build          |  1 +
 drivers/net/xsc/meson.build      | 13 +++++++++++++
 drivers/net/xsc/xsc_ethdev.c     |  3 +++
 8 files changed, 71 insertions(+)
 create mode 100644 doc/guides/nics/features/xsc.ini
 create mode 100644 doc/guides/nics/xsc.rst
 create mode 100644 drivers/net/xsc/meson.build
 create mode 100644 drivers/net/xsc/xsc_ethdev.c

diff --git a/.mailmap b/.mailmap
index 09fa253e12..d09ed30e16 100644
--- a/.mailmap
+++ b/.mailmap
@@ -1034,6 +1034,7 @@ Nagadheeraj Rottela <[email protected]>
 Naga Harish K S V <[email protected]>
 Naga Suresh Somarowthu <[email protected]>
 Nalla Pradeep <[email protected]>
+Na Na <[email protected]>
 Na Na <[email protected]>
 Nan Chen <[email protected]>
 Nannan Lu <[email protected]>
@@ -1268,6 +1269,7 @@ Ronak Doshi <[email protected]> <[email protected]>
 Ron Beider <[email protected]>
 Ronghua Zhang <[email protected]>
 RongQiang Xie <[email protected]>
+Rong Qian <[email protected]>
 RongQing Li <[email protected]>
 Rongwei Liu <[email protected]>
 Rory Sexton <[email protected]>
@@ -1586,6 +1588,7 @@ Waldemar Dworakowski <[email protected]>
 Walter Heymans <[email protected]>
 Wang Sheng-Hui <[email protected]>
 Wangyu (Eric) <[email protected]>
+WanRenyong <[email protected]>
 Waterman Cao <[email protected]>
 Wathsala Vithanage <[email protected]>
 Weichun Chen <[email protected]>
@@ -1638,6 +1641,7 @@ Xiaonan Zhang <[email protected]>
 Xiao Wang <[email protected]>
 Xiaoxiao Zeng <[email protected]>
 Xiaoxin Peng <[email protected]>
+Xiaoxiong Zhang <[email protected]>
 Xiaoyu Min <[email protected]> <[email protected]>
 Xiaoyun Li <[email protected]>
 Xiaoyun Wang <[email protected]>
diff --git a/MAINTAINERS b/MAINTAINERS
index c5a703b5c0..f87d802b24 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -994,6 +994,15 @@ F: drivers/net/txgbe/
 F: doc/guides/nics/txgbe.rst
 F: doc/guides/nics/features/txgbe.ini
 
+Yunsilicon xsc
+M: WanRenyong <[email protected]>
+M: Na Na <[email protected]>
+M: Rong Qian <[email protected]>
+M: Xiaoxiong Zhang <[email protected]>
+F: drivers/net/xsc/
+F: doc/guides/nics/xsc.rst
+F: doc/guides/nics/features/xsc.ini
+
 VMware vmxnet3
 M: Jochen Behrens <[email protected]>
 F: drivers/net/vmxnet3/
diff --git a/doc/guides/nics/features/xsc.ini b/doc/guides/nics/features/xsc.ini
new file mode 100644
index 0000000000..b5c44ce535
--- /dev/null
+++ b/doc/guides/nics/features/xsc.ini
@@ -0,0 +1,9 @@
+;
+; Supported features of the 'xsc' 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 c14bc7988a..9781097a21 100644
--- a/doc/guides/nics/index.rst
+++ b/doc/guides/nics/index.rst
@@ -69,3 +69,4 @@ Network Interface Controller Drivers
     vhost
     virtio
     vmxnet3
+    xsc
diff --git a/doc/guides/nics/xsc.rst b/doc/guides/nics/xsc.rst
new file mode 100644
index 0000000000..b7643b3ce2
--- /dev/null
+++ b/doc/guides/nics/xsc.rst
@@ -0,0 +1,31 @@
+..  SPDX-License-Identifier: BSD-3-Clause
+    Copyright 2024 Yunsilicon Technology Co., Ltd
+
+XSC Poll Mode Driver
+======================
+
+The xsc PMD (**librte_net_xsc**) provides poll mode driver support for
+10/25/50/100/200 Gbps Yunsilicon metaScale Series Network Adapters.
+
+Supported NICs
+--------------
+
+The following Yunsilicon device models are supported by the same xsc driver:
+
+  - metaScale-200S
+  - metaScale-200
+  - metaScale-100Q
+  - metaScale-50
+
+Prerequisites
+--------------
+
+- Follow the DPDK :doc:`../linux_gsg/index` to setup the basic DPDK 
environment.
+
+- Learning about Yunsilicon metaScale Series NICs using
+  `<https://www.yunsilicon.com/#/productInformation>`_.
+
+Limitations or Known issues
+---------------------------
+32bit ARCHs have not been tested and may not be supported.
+Windows and BSD are not supported yet.
diff --git a/drivers/net/meson.build b/drivers/net/meson.build
index fb6d34b782..67fbe81861 100644
--- a/drivers/net/meson.build
+++ b/drivers/net/meson.build
@@ -62,6 +62,7 @@ drivers = [
         'vhost',
         'virtio',
         'vmxnet3',
+        'xsc',
 ]
 std_deps = ['ethdev', 'kvargs'] # 'ethdev' also pulls in mbuf, net, eal etc
 std_deps += ['bus_pci']         # very many PMDs depend on PCI, so make std
diff --git a/drivers/net/xsc/meson.build b/drivers/net/xsc/meson.build
new file mode 100644
index 0000000000..11cdcf912b
--- /dev/null
+++ b/drivers/net/xsc/meson.build
@@ -0,0 +1,13 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright 2024 Yunsilicon Technology Co., Ltd.
+
+if not is_linux
+    build = false
+    reason = 'only supported on Linux'
+endif
+
+sources = files(
+        'xsc_ethdev.c',
+)
+
+
diff --git a/drivers/net/xsc/xsc_ethdev.c b/drivers/net/xsc/xsc_ethdev.c
new file mode 100644
index 0000000000..0e48cb76fa
--- /dev/null
+++ b/drivers/net/xsc/xsc_ethdev.c
@@ -0,0 +1,3 @@
+/* SPDX-License-Identifier: BSD-3-Clause
+ * Copyright 2024 Yunsilicon Technology Co., Ltd.
+ */
-- 
2.25.1

Reply via email to