nfp: don't keep count for free buffers delayed kick
authorJakub Kicinski <jakub.kicinski@netronome.com>
Mon, 29 May 2017 00:53:04 +0000 (17:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 May 2017 15:27:08 +0000 (11:27 -0400)
commit9ed9ea7084f34fcb1d962a4fbd012fe8a2942df8
tree7c45bae9e25e441c4858a9d05eadda48c558a4b8
parent770f0cea19510098cb01ac87370e800b53a6bf5d
nfp: don't keep count for free buffers delayed kick

We only kick RX free buffer queue controller every NFP_NET_FL_BATCH
(currently 16) entries.  This means that we will always kick the QC
when write ring index is divisable by NFP_NET_FL_BATCH.  There is
no need to keep counts.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_net.h
drivers/net/ethernet/netronome/nfp/nfp_net_common.c