common/cnxk: fix batch alloc completion poll logic
authorJerin Jacob <jerinj@marvell.com>
Wed, 23 Jun 2021 04:46:02 +0000 (10:16 +0530)
committerJerin Jacob <jerinj@marvell.com>
Tue, 29 Jun 2021 18:21:22 +0000 (20:21 +0200)
commit50d08d3934ecbd6f2906ff6048b21358e3142db1
tree76e75bfca441bef6145b0bb39e017ff9f682c161
parent6b7fcb7a5dae4d39383b452dfac5fda9f027b7c8
common/cnxk: fix batch alloc completion poll logic

The instruction generation was not correct due to
fact that volatile suppose to use with ccode variable
as well.

Change the logic to use gcc atomic builtin to
simplify and avoid explicit volatile from the code.

Fixes: 81af26789316 ("common/cnxk: support NPA batch alloc/free")
Cc: stable@dpdk.org
Signed-off-by: Jerin Jacob <jerinj@marvell.com>
Signed-off-by: Ashwin Sekhar T K <asekhar@marvell.com>
drivers/common/cnxk/roc_npa.c
drivers/common/cnxk/roc_npa.h