add minimum PMD code, doc and build infrastructure for nbl driver. Signed-off-by: Kyo Liu <[email protected]> --- .mailmap | 5 ++++ MAINTAINERS | 9 +++++++ doc/guides/nics/features/nbl.ini | 9 +++++++ doc/guides/nics/index.rst | 1 + doc/guides/nics/nbl.rst | 42 ++++++++++++++++++++++++++++++++ drivers/net/meson.build | 1 + drivers/net/nbl/meson.build | 11 +++++++++ drivers/net/nbl/nbl_ethdev.c | 3 +++ 8 files changed, 81 insertions(+) create mode 100644 doc/guides/nics/features/nbl.ini create mode 100644 doc/guides/nics/nbl.rst create mode 100644 drivers/net/nbl/meson.build create mode 100644 drivers/net/nbl/nbl_ethdev.c
diff --git a/.mailmap b/.mailmap index 3dec1492aa..c8b592e0de 100644 --- a/.mailmap +++ b/.mailmap @@ -362,6 +362,7 @@ Diana Wang <[email protected]> Didier Pallard <[email protected]> Dilshod Urazov <[email protected]> Dima Ruinskiy <[email protected]> +Dimon Zhao <[email protected]> Ding Zhi <[email protected]> Diogo Behrens <[email protected]> Dirk-Holger Lenz <[email protected]> @@ -832,6 +833,7 @@ Kumar Amber <[email protected]> Kumara Parameshwaran <[email protected]> <[email protected]> Kumar Sanghvi <[email protected]> Kyle Larose <[email protected]> +Kyo Liu<[email protected]> Lance Richardson <[email protected]> Laszlo Ersek <[email protected]> Laura Stroe <[email protected]> @@ -846,6 +848,7 @@ Lei Gong <[email protected]> Lei Ji <[email protected]> Lei Yao <[email protected]> Leonid Myravjev <[email protected]> +Leon Yu <[email protected]> Leo Xu <[email protected]> Leszek Zygo <[email protected]> Levend Sayar <[email protected]> @@ -1351,6 +1354,7 @@ Saikrishna Edupuganti <[email protected]> Saleh Alsouqi <[email protected]> <[email protected]> Salem Sol <[email protected]> Sam Andrew <[email protected]> +Sam Chen <[email protected]> Sameh Gobriel <[email protected]> Sam Grove <[email protected]> Samik Gupta <[email protected]> @@ -1849,3 +1853,4 @@ Ziye Yang <[email protected]> Zoltan Kiss <[email protected]> <[email protected]> Zorik Machulsky <[email protected]> Zyta Szpak <[email protected]> <[email protected]> <[email protected]> +Leon Yu <[email protected]> diff --git a/MAINTAINERS b/MAINTAINERS index 57679d40bc..ec4cc568f2 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1026,6 +1026,15 @@ F: drivers/net/sfc/ F: doc/guides/nics/sfc_efx.rst F: doc/guides/nics/features/sfc.ini +nebulamatrix nbl +M: Dimon Zhao <[email protected]> +M: Kyo Liu<[email protected]> +M: Leon Yu <[email protected]> +M: Sam Chen <[email protected]> +F: drivers/net/nbl +F: doc/guides/nics/nbl.rst +F: doc/guides/nics/features/nbl.ini + Wangxun ngbe M: Jiawen Wu <[email protected]> F: drivers/net/ngbe/ diff --git a/doc/guides/nics/features/nbl.ini b/doc/guides/nics/features/nbl.ini new file mode 100644 index 0000000000..6daabe6ed3 --- /dev/null +++ b/doc/guides/nics/features/nbl.ini @@ -0,0 +1,9 @@ +; +; Supported features of the 'nbl' 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 618c52d618..a82dfcf5c7 100644 --- a/doc/guides/nics/index.rst +++ b/doc/guides/nics/index.rst @@ -50,6 +50,7 @@ Network Interface Controller Drivers mvneta mvpp2 netvsc + nbl nfb nfp ngbe diff --git a/doc/guides/nics/nbl.rst b/doc/guides/nics/nbl.rst new file mode 100644 index 0000000000..6cd09fe97f --- /dev/null +++ b/doc/guides/nics/nbl.rst @@ -0,0 +1,42 @@ +.. SPDX-License-Identifier: BSD-3-Clause + Copyright 2025 Nebulamatrix Technology Co., Ltd + +NBL Poll Mode Driver +==================== + +The NBL PMD (**librte_net_nbl**) provides poll mode driver support for +10/25/50/100/200 Gbps Nebulamatrix Series Network Adapters. + + +Supported NICs +-------------- + +The following Nebulamatrix device models are supported by the same nbl driver: + + - S1205CQ-A00CHT + - S1105AS-A00CHT + - S1055AS-A00CHT + - S1052AS-A00CHT + - S1051AS-A00CHT + - S1045XS-A00CHT + - S1205CQ-A00CSP + - S1055AS-A00CSP + - S1052AS-A00CSP + + +Prerequisites +------------- + +- Follow the DPDK :ref:`Getting Started Guide for Linux <linux_gsg>` + to setup the basic DPDK environment. + +- Learn about `Nebulamatrix Series NICs + <https://www.nebula-matrix.com/main>`_. + + +Limitations or Known Issues +--------------------------- + +32-bit architectures are not supported. + +Windows and BSD are not supported yet. diff --git a/drivers/net/meson.build b/drivers/net/meson.build index 61f8cddb30..517e78d18b 100644 --- a/drivers/net/meson.build +++ b/drivers/net/meson.build @@ -40,6 +40,7 @@ drivers = [ 'mlx5', 'mvneta', 'mvpp2', + 'nbl', 'netvsc', 'nfb', 'nfp', diff --git a/drivers/net/nbl/meson.build b/drivers/net/nbl/meson.build new file mode 100644 index 0000000000..4cfbdb023f --- /dev/null +++ b/drivers/net/nbl/meson.build @@ -0,0 +1,11 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2025 NebulaMatrix Technology Co., Ltd. + +if not is_linux + build = false + reason = 'only supported on Linux' +endif + +sources = files( + 'nbl_ethdev.c', +) diff --git a/drivers/net/nbl/nbl_ethdev.c b/drivers/net/nbl/nbl_ethdev.c new file mode 100644 index 0000000000..3ad8e4033a --- /dev/null +++ b/drivers/net/nbl/nbl_ethdev.c @@ -0,0 +1,3 @@ +/* SPDX-License-Identifier: BSD-3-Clause + * Copyright 2025 Nebulamatrix Technology Co., Ltd. + */ -- 2.43.0

