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 <[email protected]> --- 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

