examples/vhost: add ioat ring space count and check
authorCheng Jiang <cheng1.jiang@intel.com>
Tue, 12 Jan 2021 04:38:56 +0000 (04:38 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 29 Jan 2021 17:16:09 +0000 (18:16 +0100)
commit2aa47e94bfb2d9ffb650b761ec82f1447c0c712c
tree893e91aeecc0656ea8be5c78879effecdda9c605
parent2e4c1b50d4a3fbfb5f59fdbeed6e10c1d3761cc2
examples/vhost: add ioat ring space count and check

Add ioat ring space count and check, if ioat ring space is not enough
for the next async vhost packet enqueue, then just return to prevent
enqueue failure. Add rte_ioat_completed_ops() fail handler.

Signed-off-by: Cheng Jiang <cheng1.jiang@intel.com>
Reviewed-by: Jiayu Hu <jiayu.hu@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
examples/vhost/ioat.c