igc: Add Host Good Packets Transmitted Count
authorSasha Neftin <sasha.neftin@intel.com>
Sun, 6 Dec 2020 12:07:00 +0000 (14:07 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Wed, 3 Feb 2021 23:20:32 +0000 (15:20 -0800)
This counter counts the number of good (non-erred) packets
transmitted sent by the host.
A good transmit packet is considered one that is 64 or more bytes
in length (from <Destination Address> through <CRC>,
inclusively) in length

Signed-off-by: Sasha Neftin <sasha.neftin@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/igc/igc_main.c

index 43aec42..e26ec0c 100644 (file)
@@ -3674,6 +3674,7 @@ void igc_update_stats(struct igc_adapter *adapter)
        adapter->stats.prc1522 += rd32(IGC_PRC1522);
        adapter->stats.tlpic += rd32(IGC_TLPIC);
        adapter->stats.rlpic += rd32(IGC_RLPIC);
+       adapter->stats.hgptc += rd32(IGC_HGPTC);
 
        mpc = rd32(IGC_MPC);
        adapter->stats.mpc += mpc;