net/thunderx: avoid sq door bell write on zero packet
authorKiran Kumar <kkokkilagadda@caviumnetworks.com>
Wed, 11 Jul 2018 08:24:36 +0000 (13:54 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 23 Jul 2018 21:55:26 +0000 (23:55 +0200)
commit47636efe878dd8885bb47b142765c9ccae6babe3
treee3c597e82d76a94114e23a9538b3e11d648c2040
parent9726c51df05037e505ffcb4aa2e6d4f0385c3ef1
net/thunderx: avoid sq door bell write on zero packet

Avoid sq door bell write on zero packet case to reduce additional
traffic on register bus.

Fixes: 1c421f18e0 ("net/thunderx: add single and multi-segment Tx")
Cc: stable@dpdk.org
Signed-off-by: Kiran Kumar <kkokkilagadda@caviumnetworks.com>
Acked-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
drivers/net/thunderx/nicvf_rxtx.c