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)
Nov 22 2024, 6:38 PM
Unknown Object (File)
Sep 26 2024, 2:35 PM
Unknown Object (File)
Sep 19 2024, 12:38 PM
Unknown Object (File)
Sep 19 2024, 4:37 AM
Unknown Object (File)
Sep 11 2024, 10:57 PM
Unknown Object (File)
Sep 8 2024, 4:27 PM
Unknown Object (File)
Sep 8 2024, 3:53 PM
Unknown Object (File)
Sep 5 2024, 3:54 AM
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

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