On Thu, 17 Oct 2024 14:32:00 +0800
Howard Wang <howard_w...@realsil.com.cn> wrote:

> Signed-off-by: Howard Wang <howard_w...@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;

Reply via email to