[v2,18/18] doc/guides/nics: add documents for r8169 pmd
Checks
Commit Message
Signed-off-by: Howard Wang <howard_wang@realsil.com.cn>
---
MAINTAINERS | 2 ++
doc/guides/nics/features/r8169.ini | 32 ++++++++++++++++++++++++++++++
doc/guides/nics/index.rst | 1 +
doc/guides/nics/r8169.rst | 17 ++++++++++++++++
4 files changed, 52 insertions(+)
create mode 100644 doc/guides/nics/features/r8169.ini
create mode 100644 doc/guides/nics/r8169.rst
Comments
On Thu, 17 Oct 2024 14:32:00 +0800
Howard Wang <howard_wang@realsil.com.cn> wrote:
> Signed-off-by: Howard Wang <howard_wang@realsil.com.cn>
> ---
> MAINTAINERS | 2 ++
> doc/guides/nics/features/r8169.ini | 32 ++++++++++++++++++++++++++++++
> doc/guides/nics/index.rst | 1 +
> doc/guides/nics/r8169.rst | 17 ++++++++++++++++
> 4 files changed, 52 insertions(+)
> create mode 100644 doc/guides/nics/features/r8169.ini
> create mode 100644 doc/guides/nics/r8169.rst
Build is failing because the tx_tail field is using stdatomic but
the field is not marked with atomic attribute.
Think you need:
diff --git a/drivers/net/r8169/r8169_rxtx.c b/drivers/net/r8169/r8169_rxtx.c
index b1a1eea033..97e0195995 100644
--- a/drivers/net/r8169/r8169_rxtx.c
+++ b/drivers/net/r8169/r8169_rxtx.c
@@ -76,7 +76,7 @@ struct rtl_tx_queue {
struct rtl_hw *hw;
uint64_t hw_ring_phys_addr;
uint16_t nb_tx_desc;
- uint32_t tx_tail;
+ RTE_ATOMIC(uint32_t) tx_tail;
uint16_t tx_head;
uint16_t queue_id;
uint16_t port_id;
@@ -1082,6 +1082,8 @@ M: ChunHao Lin <hau@realtek.com>
M: Xing Wang <xing_wang@realsil.com.cn>
M: Realtek NIC SW <pro_nic_dpdk@realtek.com>
F: drivers/net/r8169
+F: doc/guides/nics/r8169.rst
+F: doc/guides/nics/features/r8169.ini
Crypto Drivers
new file mode 100644
@@ -0,0 +1,32 @@
+;
+; Supported features of the 'r8169' network poll mode driver.
+;
+; Refer to default.ini for the full list of available PMD features.
+;
+[Features]
+Speed capabilities = Y
+Link speed configuration = Y
+Link status = Y
+Link status event = Y
+MTU update = Y
+Scattered Rx = Y
+TSO = Y
+Promiscuous mode = Y
+Allmulticast mode = Y
+Unicast MAC filter = Y
+Multicast MAC filter = Y
+Flow control = Y
+CRC offload = Y
+L3 checksum offload = Y
+L4 checksum offload = Y
+Packet type parsing = Y
+Rx descriptor status = Y
+Tx descriptor status = Y
+Basic stats = Y
+Extended stats = Y
+Stats per queue = Y
+FW version = Y
+Registers dump = Y
+Linux = Y
+x86-32 = Y
+x86-64 = Y
@@ -60,6 +60,7 @@ Network Interface Controller Drivers
pcap_ring
pfe
qede
+ r8169
sfc_efx
softnic
tap
new file mode 100644
@@ -0,0 +1,17 @@
+.. SPDX-License-Identifier: BSD-3-Clause
+ Copyright(c) 2024 Realtek Corporation. All rights reserved
+
+R8169 Poll Mode Driver
+======================
+
+The R8169 PMD provides poll mode driver support for Realtek 2.5 and 5 Gigabit
+Ethernet NICs.
+
+Features
+--------
+
+Features of the R8169 PMD are:
+
+* Checksum offload
+* TCP segmentation offload
+* Jumbo frames supported