]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit643f5058c6464e874f2f6fd8303ddc534c655df7
tree7c45bae9e25e441c4858a9d05eadda48c558a4b8
parentd9eef55f0a3c9e49ed78c57f15f87e9234a96309
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