Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/cxgbe/tom/t4_tom.c
Show First 20 Lines • Show All 353 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* The kernel is done with the TCP PCB and this is our opportunity to unhook the | * The kernel is done with the TCP PCB and this is our opportunity to unhook the | ||||
* toepcb hanging off of it. If the TOE driver is also done with the toepcb (no | * toepcb hanging off of it. If the TOE driver is also done with the toepcb (no | ||||
* pending CPL) then it is time to release all resources tied to the toepcb. | * pending CPL) then it is time to release all resources tied to the toepcb. | ||||
* | * | ||||
* Also gets called when an offloaded active open fails and the TOM wants the | * Also gets called when an offloaded active open fails and the TOM wants the | ||||
* kernel to take the TCP PCB back. | * kernel to take the TCP PCB back. | ||||
*/ | */ | ||||
static void | void | ||||
t4_pcb_detach(struct toedev *tod __unused, struct tcpcb *tp) | t4_pcb_detach(struct toedev *tod __unused, struct tcpcb *tp) | ||||
{ | { | ||||
#if defined(KTR) || defined(INVARIANTS) | #if defined(KTR) || defined(INVARIANTS) | ||||
struct inpcb *inp = tptoinpcb(tp); | struct inpcb *inp = tptoinpcb(tp); | ||||
#endif | #endif | ||||
struct toepcb *toep = tp->t_toe; | struct toepcb *toep = tp->t_toe; | ||||
INP_WLOCK_ASSERT(inp); | INP_WLOCK_ASSERT(inp); | ||||
▲ Show 20 Lines • Show All 1,697 Lines • Show Last 20 Lines |