event/octeontx2: fix unconditional Tx flush
authorPavan Nikhilesh <pbhagavatula@marvell.com>
Fri, 20 Nov 2020 10:41:46 +0000 (16:11 +0530)
committerJerin Jacob <jerinj@marvell.com>
Fri, 20 Nov 2020 17:53:47 +0000 (18:53 +0100)
commit52f2fcb3e29adbe7f9deb3090df7436b1652c20d
treed20f25169c1452b0b666ab50883b2f4adc114468
parenta912cb5bdd373b2db8052ee7f21a3216dfc144d0
event/octeontx2: fix unconditional Tx flush

Fix unconditional Tx flush, in case of Tx only we need to check if
work slot is non-empty before issuing flush.
Also, in packet retransmit cases added check for the reference
count and flush the work slot only for the last packet.

Fixes: cb7ee83b6365 ("event/octeontx2: improve single flow performance")
Cc: stable@dpdk.org
Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
drivers/event/octeontx2/otx2_evdev.h
drivers/event/octeontx2/otx2_worker.c
drivers/event/octeontx2/otx2_worker.h