Skip to contentSkip to conversation

ice: ignore dropped packets during init

PATCH New G 1 participant 1 message Nov 2, 2021 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

G

#1 lore raw

PATCH 1/1 ice: ignore dropped packets during init

Quoted 20 lines

-----Original Message-----
From: Intel-wired-lan <[email protected]> On Behalf Of Jesse Brandeburg
Sent: Saturday, October 23, 2021 5:58 AM
To: intel-wired-lan at lists.osuosl.org
Subject: [Intel-wired-lan] [PATCH net] 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 cdedef59deb0 ("ice: Configure VSIs for Tx/Rx")
Quoted 9 lines

---
Testing Hints: pktgen or ping flood the DUT, while reloading the driver and bringing up the interface (in a script or with networkmanager) and note dropped packets with ip -s -s link or ifconfig, after this patch there should be none.

---
 drivers/net/ethernet/intel/ice/ice_main.c | 3 +++
 1 file changed, 3 insertions(+)