Page MenuHomeFreeBSD

Don't assume all children of a nexus are ports.
ClosedPublic

Authored by jhb on Feb 28 2019, 12:53 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 17, 2:47 AM
Unknown Object (File)
Wed, Apr 15, 9:41 AM
Unknown Object (File)
Wed, Apr 8, 10:22 AM
Unknown Object (File)
Wed, Apr 8, 12:20 AM
Unknown Object (File)
Mon, Apr 6, 12:39 PM
Unknown Object (File)
Wed, Mar 25, 8:51 AM
Unknown Object (File)
Mar 18 2026, 1:23 AM
Unknown Object (File)
Mar 8 2026, 6:36 PM
Subscribers

Details

Summary

Specifically, ccr(4) devices are also children of cxgbe nexus devices.
Rather than making assumptions about the child device's softc, walk the
list of ports from the nexus' softc to determine if a child is a port
in t4_child_location_str(). This fixes a panic when detaching a ccr
device.

Test Plan
  • kldunload of ccr currently panicks
  • after change, kldunload no longer panicks, and no location info shows up for ccr0 in 'devinfo -v'

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 22801
Build 21892: arc lint + arc unit