[RFC 21/32] mempool/octeontx: use IO barrier in pool destroy
Stephen Hemminger
stephen at networkplumber.org
Wed Jul 29 19:54:14 CEST 2026
The barrier flushes outstanding writes to the FPA pool before the
teardown mailbox sequence. That is ordering against the device, so
use rte_io_wmb(). Control path.
Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
---
drivers/mempool/octeontx/octeontx_fpavf.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mempool/octeontx/octeontx_fpavf.c b/drivers/mempool/octeontx/octeontx_fpavf.c
index 6cd0fc057f..7051422cb7 100644
--- a/drivers/mempool/octeontx/octeontx_fpavf.c
+++ b/drivers/mempool/octeontx/octeontx_fpavf.c
@@ -616,8 +616,8 @@ octeontx_fpa_bufpool_destroy(uintptr_t handle, int node_id)
RTE_SET_USED(node_id);
- /* Wait for all outstanding writes to be committed */
- rte_smp_wmb();
+ /* Make outstanding pool writes visible to the device */
+ rte_io_wmb();
if (unlikely(!octeontx_fpa_handle_valid(handle)))
return -EINVAL;
--
2.53.0
More information about the dev
mailing list