The branch stable/14 has been updated by kbowling:

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

commit 930464eecabe65c42f42d1b688576b6bf9f0f4a5
Author:     Kevin Bowling <[email protected]>
AuthorDate: 2026-09-03 10:55:36 +0000
Commit:     Kevin Bowling <[email protected]>
CommitDate: 2026-09-18 00:11:41 +0000

    ixl: Reset VSI statistics after initial sampling
    
    The initial statistics update runs before the PF VSI has obtained its
    firmware-assigned statistics counter index.  Discard that provisional
    VSI baseline so the first update after initialization records the
    correct hardware counter.
    
    Without this reset, subtracting a larger provisional value from a newly
    selected counter can be mistaken for a 32-bit wrap and report nearly
    UINT32_MAX receive drops immediately after boot.
    
    Reported by:    Daniel Braniss <[email protected]>
    Tested by:      Daniel Braniss <[email protected]>
    Obtained from:  Intel ixl 1.14.2
    Sponsored by:   BBOX.io
    Differential Revision:  https://reviews.freebsd.org/D59336
    
    (cherry picked from commit 429cb537015ea11808de23dac8c1cc7ade3a4552)
---
 sys/dev/ixl/if_ixl.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/dev/ixl/if_ixl.c b/sys/dev/ixl/if_ixl.c
index 3215dd163b72..1c985a779b96 100644
--- a/sys/dev/ixl/if_ixl.c
+++ b/sys/dev/ixl/if_ixl.c
@@ -795,6 +795,7 @@ ixl_if_attach_post(if_ctx_t ctx)
        ixl_pf_reset_stats(pf);
        ixl_update_stats_counters(pf);
        ixl_add_hw_stats(pf);
+       ixl_vsi_reset_stats(vsi);
 
        /*
         * Driver may have been reloaded. Ensure that the link state

Reply via email to