Page MenuHomeFreeBSD

Fix panics when using iflib pseudo device support
ClosedPublic

Authored by mmacy on Feb 16 2020, 2:02 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 16, 12:11 PM
Unknown Object (File)
Wed, Apr 15, 2:43 AM
Unknown Object (File)
Sat, Apr 11, 3:31 PM
Unknown Object (File)
Sat, Apr 11, 7:45 AM
Unknown Object (File)
Sat, Apr 11, 1:30 AM
Unknown Object (File)
Fri, Apr 10, 8:11 PM
Unknown Object (File)
Wed, Apr 8, 10:05 AM
Unknown Object (File)
Mon, Apr 6, 9:47 AM

Details

Summary
  • _iflib_assert checks for values that are only relevant when doing queue management
  • iflib_pseudo_register can return without dropping the context sx lock
Test Plan

ifconfig wg create with the fixes

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

gallatin added a subscriber: gallatin.

I'd prefer the check be moved inside _iflib_assert(), but that's just a nit.

This revision is now accepted and ready to land.Feb 18 2020, 2:31 PM

Are there any objections to not committing this?

No objections. Maybe split the commit into two when upstreaming and write a good commit message and don't forget to MFC.

This revision was automatically updated to reflect the committed changes.