]> git.baikalelectronics.ru Git - kernel.git/commit
igb: Implement reading of reg RQDPC (Receive Queue Drop Packet Count)
authorJesper Dangaard Brouer <hawk@comx.dk>
Tue, 26 May 2009 13:50:31 +0000 (13:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 May 2009 03:35:05 +0000 (20:35 -0700)
commitb896d82cc8cc4f09294028d26f68feddbedf8893
treef7be759f12ba98ea679ba8c7b161f17eaba7fdeb
parentf99492f6bb9c690684c7453cee074800c90701c8
igb: Implement reading of reg RQDPC (Receive Queue Drop Packet Count)

Based on the previous patches from Jesper Dangaard Brouer <hawk@comx.dk>

Implement reading the per queue drop stats register
RQDPC (Receive Queue Drop Packet Count).  It counts the number of
packets dropped by a queue due to lack of descriptors available.

Notice RQDPC (Receive Queue Drop Packet Count) stats only gets
incremented, if the DROP_EN bit it set (in the SRRCTL register
for that queue).  If DROP_EN bit is NOT set, then the some what
equivalent count is stored in RNBC (not per queue basis).

The RQDPC register is only 12 bit, thus the precision might
suffer due to overrun in-netween the watchdog polling interval.

Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
CC: Jesper Dangaard Brouer <hawk@comx.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/igb/igb.h
drivers/net/igb/igb_ethtool.c
drivers/net/igb/igb_main.c