Message ID | 20241120024504.65581-1-howard_wang@realsil.com.cn (mailing list archive) |
---|---|
State | New |
Delegated to: | Thomas Monjalon |
Headers | |
Series | net/r8169: replace rte_smp_rmb with atomic read | |
Checks
Context | Check | Description |
---|---|---|
ci/checkpatch | warning | coding style issues |
ci/loongarch-compilation | success | Compilation OK |
ci/loongarch-unit-testing | success | Unit Testing PASS |
ci/github-robot: build | fail | github build: failed |
ci/iol-marvell-Functional | success | Functional Testing PASS |
ci/iol-compile-amd64-testing | pending | Testing pending |
ci/Intel-compilation | success | Compilation OK |
ci/intel-Testing | success | Testing PASS |
ci/iol-unit-amd64-testing | success | Testing PASS |
ci/intel-Functional | success | Functional PASS |
ci/iol-unit-arm64-testing | success | Testing PASS |
ci/iol-broadcom-Performance | success | Performance Testing PASS |
ci/iol-compile-arm64-testing | success | Testing PASS |
ci/iol-sample-apps-testing | success | Testing PASS |
ci/iol-intel-Functional | success | Functional Testing PASS |
ci/iol-intel-Performance | success | Performance Testing PASS |
Commit Message
diff --git a/drivers/net/r8169/r8169_rxtx.c b/drivers/net/r8169/r8169_rxtx.c index a3b86300f0..57b97338d4 100644 --- a/drivers/net/r8169/r8169_rxtx.c +++ b/drivers/net/r8169/r8169_rxtx.c @@ -38,7 +38,7 @@ /* Struct TxDesc in kernel r8169 */ struct rtl_tx_desc { - u32 opts1; + RTE_ATOMIC(u32) opts1; u32 opts2; u64 addr; u32 reserved0; @@ -1264,9 +1264,9 @@ rtl_get_hw_clo_ptr(struct rtl_hw *hw) static u32 rtl_get_opts1(struct rtl_tx_desc *txd) { - rte_smp_rmb(); + u32 opts1 = rte_atomic_load_explicit(&txd->opts1, rte_memory_order_acquire); - return rte_le_to_cpu_32(txd->opts1); + return rte_le_to_cpu_32(opts1); } static void