Page MenuHomeFreeBSD

gve: Fix qpl_buf_head being initialized improperly
ClosedPublic

Authored by jtranoleary_google.com on Wed, Feb 12, 6:16 PM.
Tags
None
Referenced Files
F110246644: D48968.diff
Sat, Feb 15, 4:45 PM
F110178845: D48968.diff
Fri, Feb 14, 5:04 PM
Unknown Object (File)
Fri, Feb 14, 3:05 PM
Subscribers

Details

Summary

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>

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 62432
Build 59316: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Thu, Feb 13, 8:51 AM
markj added inline comments.
sys/dev/gve/gve_tx_dqo.c
992

This line should be wrapped.

This revision now requires review to proceed.Thu, Feb 13, 10:43 PM
jtranoleary_google.com added inline comments.
sys/dev/gve/gve_tx_dqo.c
992

Done.

This revision is now accepted and ready to land.Fri, Feb 14, 9:12 AM