HomeFreeBSD

gve: Fix qpl_buf_head being initialized improperly

Description

gve: Fix qpl_buf_head being initialized improperly

Currently, for DQO QPL our MPASS assertion on qpl_buf_head for available
pending_pkts (i.e. not holding a packet) fails due to incorrect
initialization. The MPASS fails on the first run of packets through the
ring when INVARIANTS is on, and when INVARIANTS is off, things work
without a bug.

The MPASS guards against improper reaping of "pending_pkt" objects,
and thus was failing for the first run through the ring. By correctly
initializing the objects in this patch we make the MPASS not fail on the
first run too.

Signed-off-by: Vee Agarwal <veethebee@google.com>
Signed-off-by: Jasper Tran O'Leary <jtranoleary@google.com>

Reviewed by: delphij, markj
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D48968

(cherry picked from commit 73c3fe4db3ebc2bd6cb732aae77ea017fd376d22)

Details

Provenance
jtranoleary_google.comAuthored on Feb 14 2025, 3:05 PM
markjCommitted on Fri, Mar 7, 10:51 PM
Reviewer
delphij
Differential Revision
D48968: gve: Fix qpl_buf_head being initialized improperly
Parents
rG28ba212a95f2: gve: Do minor cleanup and bump version
Branches
Unknown
Tags
Unknown