Adding bare minimum PMD library and doc build infrastructure and claim the maintainership for txgbe PMD.
Signed-off-by: Jiawen Wu <jiawe...@trustnetic.com> --- MAINTAINERS | 7 ++++++ doc/guides/nics/features/txgbe.ini | 11 +++++++++ doc/guides/nics/txgbe.rst | 27 +++++++++++++++++++++ drivers/net/meson.build | 1 + drivers/net/txgbe/meson.build | 7 ++++++ drivers/net/txgbe/rte_pmd_txgbe_version.map | 3 +++ drivers/net/txgbe/txgbe_ethdev.c | 4 +++ drivers/net/txgbe/txgbe_ethdev.h | 4 +++ 8 files changed, 64 insertions(+) create mode 100644 doc/guides/nics/features/txgbe.ini create mode 100644 doc/guides/nics/txgbe.rst create mode 100644 drivers/net/txgbe/meson.build create mode 100644 drivers/net/txgbe/rte_pmd_txgbe_version.map create mode 100644 drivers/net/txgbe/txgbe_ethdev.c create mode 100644 drivers/net/txgbe/txgbe_ethdev.h diff --git a/MAINTAINERS b/MAINTAINERS index 75a17d51c..433b1d72c 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -857,6 +857,13 @@ F: drivers/net/sfc/ F: doc/guides/nics/sfc_efx.rst F: doc/guides/nics/features/sfc_efx.ini +Wangxun txgbe +M: Jiawen Wu <jiawe...@trustnetic.com> +M: Jian Wang <jianw...@trustnetic.com> +F: drivers/net/txgbe/ +F: doc/guides/nics/txgbe.rst +F: doc/guides/nics/features/txgbe.ini + VMware vmxnet3 M: Yong Wang <yongw...@vmware.com> F: drivers/net/vmxnet3/ diff --git a/doc/guides/nics/features/txgbe.ini b/doc/guides/nics/features/txgbe.ini new file mode 100644 index 000000000..76c43c7f1 --- /dev/null +++ b/doc/guides/nics/features/txgbe.ini @@ -0,0 +1,11 @@ +; +; Supported features of the 'txgbe' network poll mode driver. +; +; Refer to default.ini for the full list of available PMD features. +; +[Features] +Linux UIO = Y +Linux VFIO = Y +ARMv8 = Y +x86-32 = Y +x86-64 = Y diff --git a/doc/guides/nics/txgbe.rst b/doc/guides/nics/txgbe.rst new file mode 100644 index 000000000..e3b9f1858 --- /dev/null +++ b/doc/guides/nics/txgbe.rst @@ -0,0 +1,27 @@ +.. SPDX-License-Identifier: BSD-3-Clause + Copyright(c) 2015-2020. + +TXGBE Poll Mode Driver +====================== + +The TXGBE PMD (librte_pmd_txgbe) provides poll mode driver support +for Wangxun 10 Gigabit Ethernet NICs. + +Prerequisites +------------- + +- Learning about Wangxun 10 Gigabit Ethernet NICs using + `<https://www.net-swift.com/a/383.html>`_. + +- 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. +X86-32, Power8, ARMv7 and BSD are not supported yet. diff --git a/drivers/net/meson.build b/drivers/net/meson.build index d56b24051..8a240134f 100644 --- a/drivers/net/meson.build +++ b/drivers/net/meson.build @@ -50,6 +50,7 @@ drivers = ['af_packet', 'szedata2', 'tap', 'thunderx', + 'txgbe', 'vdev_netvsc', 'vhost', 'virtio', diff --git a/drivers/net/txgbe/meson.build b/drivers/net/txgbe/meson.build new file mode 100644 index 000000000..d5b19af31 --- /dev/null +++ b/drivers/net/txgbe/meson.build @@ -0,0 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2015-2020 + +sources = files( + 'txgbe_ethdev.c', +) + diff --git a/drivers/net/txgbe/rte_pmd_txgbe_version.map b/drivers/net/txgbe/rte_pmd_txgbe_version.map new file mode 100644 index 000000000..4a76d1d52 --- /dev/null +++ b/drivers/net/txgbe/rte_pmd_txgbe_version.map @@ -0,0 +1,3 @@ +DPDK_21 { + local: *; +}; diff --git a/drivers/net/txgbe/txgbe_ethdev.c b/drivers/net/txgbe/txgbe_ethdev.c new file mode 100644 index 000000000..cb758762d --- /dev/null +++ b/drivers/net/txgbe/txgbe_ethdev.c @@ -0,0 +1,4 @@ +/* SPDX-License-Identifier: BSD-3-Clause + * Copyright(c) 2015-2020 + */ + diff --git a/drivers/net/txgbe/txgbe_ethdev.h b/drivers/net/txgbe/txgbe_ethdev.h new file mode 100644 index 000000000..cb758762d --- /dev/null +++ b/drivers/net/txgbe/txgbe_ethdev.h @@ -0,0 +1,4 @@ +/* SPDX-License-Identifier: BSD-3-Clause + * Copyright(c) 2015-2020 + */ + -- 2.18.4