• Jesper Dangaard Brouer's avatar
    igb: Implement reading of reg RQDPC (Receive Queue Drop Packet Count) · 8c0ab70a
    Jesper Dangaard Brouer authored
    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: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
    CC: Jesper Dangaard Brouer <hawk@comx.dk>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    8c0ab70a
igb_main.c 150 KB