git: d6a9f4918579 - main - igc: Initialize helper variables in igc_neweitr()

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Wed, 28 May 2025 15:42:31 UTC
The branch main has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=d6a9f49185797c6b67e517a3d83ef63436c8d4f3

commit d6a9f49185797c6b67e517a3d83ef63436c8d4f3
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2025-05-28 13:31:34 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2025-05-28 15:41:53 +0000

    igc: Initialize helper variables in igc_neweitr()
    
    The justification is the same as in commit
    a5b5220b1807 ("e1000: Initialize helper variables in em_newitr()").
    
    Reviewed by:    kbowling
    MFC after:      2 weeks
    Differential Revision:  https://reviews.freebsd.org/D50547
---
 sys/dev/igc/if_igc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/dev/igc/if_igc.c b/sys/dev/igc/if_igc.c
index 318d2770911c..f34b0507c1ea 100644
--- a/sys/dev/igc/if_igc.c
+++ b/sys/dev/igc/if_igc.c
@@ -936,6 +936,7 @@ igc_neweitr(struct igc_softc *sc, struct igc_rx_queue *que,
 			goto igc_set_next_eitr;
 		}
 
+		bytes = bytes_packets = 0;
 		/* Get largest values from the associated tx and rx ring */
 		if (txr->tx_bytes && txr->tx_packets) {
 			bytes = txr->tx_bytes;