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)
Fri, Jan 16, 8:38 PM
Unknown Object (File)
Thu, Jan 15, 10:32 AM
Unknown Object (File)
Wed, Jan 14, 11:37 AM
Unknown Object (File)
Tue, Jan 13, 4:43 PM
Unknown Object (File)
Jan 1 2026, 7:50 PM
Unknown Object (File)
Dec 29 2025, 12:30 PM
Unknown Object (File)
Dec 24 2025, 10:15 PM
Unknown Object (File)
Dec 24 2025, 7:13 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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.