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
F166514335: D23710.diff
Thu, Aug 13, 9:55 PM
F166494734: D23710.id72478.diff
Thu, Aug 13, 8:29 PM
F166486085: D23710.id68389.diff
Thu, Aug 13, 7:55 PM
F166461415: D23710.id68429.diff
Thu, Aug 13, 5:22 PM
Unknown Object (File)
Wed, Aug 12, 4:44 PM
Unknown Object (File)
Wed, Aug 12, 3:04 PM
Unknown Object (File)
Wed, Aug 12, 1:07 PM
Unknown Object (File)
Sat, Aug 8, 9:49 PM

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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 29412

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.