net/ena: perform Tx cleanup before sending packets
authorMichal Krawczyk <mk@semihalf.com>
Wed, 23 Feb 2022 12:19:31 +0000 (13:19 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 23 Feb 2022 18:01:03 +0000 (19:01 +0100)
commit67216c31e43d1f09bc02493465d578292f2d9b7a
tree7d5ee4febcc0198a77188f71725b2f68ee3f9196
parente2174a54469febb2905f06d5c942ff76c492c2ff
net/ena: perform Tx cleanup before sending packets

To increase likelihood that current burst will fit in the HW rings,
perform Tx cleanup before pushing packets to the HW. It may increase
latency a bit for sparse bursts, but the Tx flow now should be more
smooth.

It's also common order in the Tx burst function for other PMDs.

Signed-off-by: Michal Krawczyk <mk@semihalf.com>
Reviewed-by: Dawid Gorecki <dgr@semihalf.com>
Reviewed-by: Shai Brandes <shaibran@amazon.com>
drivers/net/ena/ena_ethdev.c