Skip to content

Commit 28dc1b8

Browse files
jbrandebanguy11
authored andcommitted
ice: ignore dropped packets during init
If the hardware is constantly receiving unicast or broadcast packets during driver load, the device previously counted many GLV_RDPC (VSI dropped packets) events during init. This causes confusing dropped packet statistics during driver load. The dropped packets counter incrementing does stop once the driver finishes loading. Avoid this problem by baselining our statistics at the end of driver open instead of the end of probe. Fixes: cdedef5 ("ice: Configure VSIs for Tx/Rx") Signed-off-by: Jesse Brandeburg <[email protected]> Tested-by: Gurucharan G <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
1 parent 6d39ea1 commit 28dc1b8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/net/ethernet/intel/ice/ice_main.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5881,6 +5881,9 @@ static int ice_up_complete(struct ice_vsi *vsi)
58815881
netif_carrier_on(vsi->netdev);
58825882
}
58835883

5884+
/* clear this now, and the first stats read will be used as baseline */
5885+
vsi->stat_offsets_loaded = false;
5886+
58845887
ice_service_task_schedule(pf);
58855888

58865889
return 0;

0 commit comments

Comments
 (0)