]> git.proxmox.com Git - mirror_ubuntu-artful-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)
commit3458c40d608ab7d3b2b591eb9b1f1b84502b55d2
tree3417896c57ccfc7b1a488f1e051ea08d65b3afd6
parentecae29cb15c1a9502bb24f44ff9b84075c0b1dcd
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