nfp: clear ring delayed kick counters
authorJakub Kicinski <jakub.kicinski@netronome.com>
Wed, 16 Dec 2015 19:08:52 +0000 (19:08 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Dec 2015 20:27:38 +0000 (15:27 -0500)
commit301c141d6a5ddacb8b2310a87a7e8fe997d17a39
treec1d0a64bb06dc397c4d622c11b756e83cf964cb7
parent1bd4978a88ac2589f3105f599b1d404a312fb7f6
nfp: clear ring delayed kick counters

We need to clear delayed kick counters when we free rings otherwise
after ndo_close()/ndo_open() we could kick HW by more entries than
actually written to rings.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Rolf Neugebauer <rolf.neugebauer@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_net_common.c