net/ark: refactor Rx buffer recovery
authorEd Czeck <ed.czeck@atomicrules.com>
Thu, 18 Mar 2021 17:36:56 +0000 (13:36 -0400)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 22 Mar 2021 15:56:27 +0000 (16:56 +0100)
commit31d7dded033fc061950312253919237dde07ac63
treea11b6781672521134f2d808eaabc45c45ef1ceb7
parent3b4f34f6b6071524a3de6a1db316eca65b4804ca
net/ark: refactor Rx buffer recovery

Allocate mbufs for Rx path in bulk of at least 64 buffers
to improve performance. Allow recovery even without
a Rx operation to support lack of buffers in pool.

Fixes: be410a861598 ("net/ark: add recovery for lack of mbufs")
Cc: stable@dpdk.org
Signed-off-by: Ed Czeck <ed.czeck@atomicrules.com>
drivers/net/ark/ark_ethdev_rx.c