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

Details

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