Page MenuHomeFreeBSD

Remove freelist contiguous-indexes assertion from rxd_frag_to_sd()
ClosedPublic

Authored by pkelsey on Mar 3 2020, 4:14 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Mar 30, 8:49 PM
Unknown Object (File)
Jan 13 2024, 12:39 AM
Unknown Object (File)
Dec 20 2023, 7:05 AM
Unknown Object (File)
Dec 17 2023, 2:51 PM
Unknown Object (File)
Dec 6 2023, 4:02 PM
Unknown Object (File)
Sep 6 2023, 7:19 PM
Unknown Object (File)
Jun 24 2023, 5:30 AM
Unknown Object (File)
Jun 24 2023, 4:22 AM
Subscribers

Details

Summary

The vmx driver is an example of an iflib driver that might report packets using non-contiguous descriptors (with unused descriptors either between received packets or between the fragments of a received packet), so this assertion needs to be removed.

For such drivers, the freelist producer and consumer indexes don't relate directly to driver ring slots (the driver deals directly with freelist buffer indexes supplied by iflib during refill, and reports them with each fragment during packet reception), but do continue to be used by iflib for accounting, such as determining the number of ring slots that are refillable.

Test Plan

This has been tested on a 12.1 system (with r356932 applied) with em and vmx devices.

This builds for 13-current, but testing on 13-current is waiting for the package system to get fixed.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

Funny how the comment right above the assert calls it out as bogus..

This revision is now accepted and ready to land.Mar 3 2020, 6:20 PM

Funny how the comment right above the assert calls it out as bogus..

Conditioned on not resolving how bxe actually works...

I think it could have been left out earlier given iflib is apparently designed to allow this to happen (otherwise why provide the array of buffer indexes to the driver during refill, and why use a bitmap to track freelist index states?)