net/ena: support Tx mbuf free on demand
authorDawid Gorecki <dgr@semihalf.com>
Wed, 23 Feb 2022 12:19:36 +0000 (13:19 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 23 Feb 2022 18:01:03 +0000 (19:01 +0100)
commita52b317e7d8b89a12d2e8b08e19f380fe61c5220
tree3338ed285071b54de8f771845e83b754e7856a27
parent850e1bb1c72b3d1163b2857ab7a02af11ba29c40
net/ena: support Tx mbuf free on demand

ENA driver did not allow applications to call tx_cleanup. Freeing Tx
mbufs was always done by the driver and it was not possible to manually
request the driver to free mbufs.

Modify ena_tx_cleanup function to accept maximum number of packets to
free and return number of packets that was freed.

Signed-off-by: Dawid Gorecki <dgr@semihalf.com>
Reviewed-by: Michal Krawczyk <mk@semihalf.com>
Reviewed-by: Shai Brandes <shaibran@amazon.com>
doc/guides/nics/features/ena.ini
doc/guides/rel_notes/release_22_03.rst
drivers/net/ena/ena_ethdev.c