From: Sasha Neftin Date: Sun, 6 Dec 2020 12:07:00 +0000 (+0200) Subject: igc: Add Host Good Packets Transmitted Count X-Git-Tag: accepted/tizen/unified/20230118.172025~7901^2~148^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e65299444e3cad6d7cdfd09f9ebd77020f451887;p=platform%2Fkernel%2Flinux-rpi.git igc: Add Host Good Packets Transmitted Count 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 through , inclusively) in length Signed-off-by: Sasha Neftin Signed-off-by: Tony Nguyen --- diff --git a/drivers/net/ethernet/intel/igc/igc_main.c b/drivers/net/ethernet/intel/igc/igc_main.c index 43aec42..e26ec0c 100644 --- a/drivers/net/ethernet/intel/igc/igc_main.c +++ b/drivers/net/ethernet/intel/igc/igc_main.c @@ -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;