[PATCH 01/19] net/xsc: add doc and minimum build framework
WanRenyong
wanry at yunsilicon.com
Fri Sep 6 14:13:47 CEST 2024
Add minimum PMD code, doc and build infrastructure for xsc.
Signed-off-by: WanRenyong <wanry at yunsilicon.com>
---
.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 <rnagadheeraj at marvell.com>
Naga Harish K S V <s.v.naga.harish.k at intel.com>
Naga Suresh Somarowthu <naga.sureshx.somarowthu at intel.com>
Nalla Pradeep <pnalla at marvell.com>
+Na Na <nana at yunsilicon.com>
Na Na <nana.nn at alibaba-inc.com>
Nan Chen <whutchennan at gmail.com>
Nannan Lu <nannan.lu at intel.com>
@@ -1268,6 +1269,7 @@ Ronak Doshi <ronak.doshi at broadcom.com> <doshir at vmware.com>
Ron Beider <rbeider at amazon.com>
Ronghua Zhang <rzhang at vmware.com>
RongQiang Xie <xie.rongqiang at zte.com.cn>
+Rong Qian <qianr at yunsilicon.com>
RongQing Li <lirongqing at baidu.com>
Rongwei Liu <rongweil at nvidia.com>
Rory Sexton <rory.sexton at intel.com>
@@ -1586,6 +1588,7 @@ Waldemar Dworakowski <waldemar.dworakowski at intel.com>
Walter Heymans <walter.heymans at corigine.com>
Wang Sheng-Hui <shhuiw at gmail.com>
Wangyu (Eric) <seven.wangyu at huawei.com>
+WanRenyong <wanry at yunsilicon.com>
Waterman Cao <waterman.cao at intel.com>
Wathsala Vithanage <wathsala.vithanage at arm.com>
Weichun Chen <weichunx.chen at intel.com>
@@ -1638,6 +1641,7 @@ Xiaonan Zhang <xiaonanx.zhang at intel.com>
Xiao Wang <xiao.w.wang at intel.com>
Xiaoxiao Zeng <xiaoxiaox.zeng at intel.com>
Xiaoxin Peng <xiaoxin.peng at broadcom.com>
+Xiaoxiong Zhang <zhangxx at yunsilicon.com>
Xiaoyu Min <jackmin at nvidia.com> <jackmin at mellanox.com>
Xiaoyun Li <xiaoyun.li at intel.com>
Xiaoyun Wang <cloud.wangxiaoyun at huawei.com>
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 <wanry at yunsilicon.com>
+M: Na Na <nana at yunsilicon.com>
+M: Rong Qian <qianr at yunsilicon.com>
+M: Xiaoxiong Zhang <zhangxx at yunsilicon.com>
+F: drivers/net/xsc/
+F: doc/guides/nics/xsc.rst
+F: doc/guides/nics/features/xsc.ini
+
VMware vmxnet3
M: Jochen Behrens <jochen.behrens at broadcom.com>
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..d34447a259
--- /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 :ref:`Getting Started Guide for Linux <linux_gsg>` 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
More information about the dev
mailing list