forked from mirrors/linux
		
	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: cdedef59de ("ice: Configure VSIs for Tx/Rx")
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Gurucharan G <gurucharanx.g@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
			
			
This commit is contained in:
		
							parent
							
								
									6d39ea19b0
								
							
						
					
					
						commit
						28dc1b86f8
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
					@ -5881,6 +5881,9 @@ static int ice_up_complete(struct ice_vsi *vsi)
 | 
				
			||||||
		netif_carrier_on(vsi->netdev);
 | 
							netif_carrier_on(vsi->netdev);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						/* clear this now, and the first stats read will be used as baseline */
 | 
				
			||||||
 | 
						vsi->stat_offsets_loaded = false;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	ice_service_task_schedule(pf);
 | 
						ice_service_task_schedule(pf);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return 0;
 | 
						return 0;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue