]> git.baikalelectronics.ru Git - kernel.git/commit
net: thunderx: Reset RXQ HW stats when interface is brought down
authorJerin Jacob <jerin.jacob@caviumnetworks.com>
Fri, 12 Aug 2016 11:21:39 +0000 (16:51 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Aug 2016 18:59:32 +0000 (11:59 -0700)
commit8ffedaafdc808cca3ade993d3dcedda8d574f29c
tree3417896c57ccfc7b1a488f1e051ea08d65b3afd6
parent3963589410bcb5f64edf79c2aded9e7b68d817fd
net: thunderx: Reset RXQ HW stats when interface is brought down

When SQ/TXQ is reclaimed i.e reset it's stats also automatically reset
by HW. This is not the case with RQ. Also VF doesn't have write access
to statistics counter registers. Hence a new Mbox msg is introduced which
supports resetting RQ, SQ and full Qset stats. Currently only RQ stats
are being reset using this mbox message.

Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Sunil Goutham <sgoutham@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/thunder/nic.h
drivers/net/ethernet/cavium/thunder/nic_main.c
drivers/net/ethernet/cavium/thunder/nicvf_queues.c