HomeFreeBSD

ccr: Retire ccr_softc member in struct adapter.

Description

ccr: Retire ccr_softc member in struct adapter.

Prior to Conrad's changes to replace session integer IDs with a
pointer to the driver-specific state in commit 1b0909d51a8aa, the
driver had to find the softc pointer from the adapter before it could
locate the ccr_session structure for a completed request. Since
Conrad's changes, the ccr_session pointer can now be obtained directly
from the crp. Add a backpoint from ccr_session back to ccr_softc and
use this in place of the ccr_softc member in cxgbe's struct adapter.

Sponsored by: Chelsio Communications

(cherry picked from commit 7063b9974f8a39d860b7abd03884324e71994f65)

Details

Provenance
jhbAuthored on Dec 29 2022, 7:39 PM
Parents
rG519395f62d29: h_resolv: Fix a buffer overflow in load().
Branches
Unknown
Tags
Unknown