net: thunderx: Wakeup TXQ only if CQE_TX are processed
authorSunil Goutham <sgoutham@cavium.com>
Wed, 29 Jul 2015 13:49:42 +0000 (16:49 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Jul 2015 06:52:31 +0000 (23:52 -0700)
commit74840b83bd59ee51c591714470c6629ac18f424a
tree5732034820e8d8f51b266e5747e7ba446c04df62
parentf8ce9666fa63da7e5afd9ff6e3221f86555621f3
net: thunderx: Wakeup TXQ only if CQE_TX are processed

Previously TXQ is wakedup whenever napi is executed
and irrespective of if any CQE_TX are processed or not.
Added 'txq_stop' and 'txq_wake' counters to aid in debugging
if there are any future issues.

Signed-off-by: Sunil Goutham <sgoutham@cavium.com>
Signed-off-by: Aleksey Makarov <aleksey.makarov@caviumnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/nic.h
drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c
drivers/net/ethernet/cavium/thunder/nicvf_main.c