Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/cxgbe/tom/t4_cpl_io.c
Show First 20 Lines • Show All 1,254 Lines • ▼ Show 20 Lines | case TCPS_ESTABLISHED: | ||||
tcp_state_change(tp, TCPS_CLOSE_WAIT); | tcp_state_change(tp, TCPS_CLOSE_WAIT); | ||||
break; | break; | ||||
case TCPS_FIN_WAIT_1: | case TCPS_FIN_WAIT_1: | ||||
tcp_state_change(tp, TCPS_CLOSING); | tcp_state_change(tp, TCPS_CLOSING); | ||||
break; | break; | ||||
case TCPS_FIN_WAIT_2: | case TCPS_FIN_WAIT_2: | ||||
restore_so_proto(so, inp->inp_vflag & INP_IPV6); | |||||
tcp_twstart(tp); | tcp_twstart(tp); | ||||
INP_UNLOCK_ASSERT(inp); /* safe, we have a ref on the inp */ | INP_UNLOCK_ASSERT(inp); /* safe, we have a ref on the inp */ | ||||
NET_EPOCH_EXIT(et); | NET_EPOCH_EXIT(et); | ||||
CURVNET_RESTORE(); | CURVNET_RESTORE(); | ||||
INP_WLOCK(inp); | INP_WLOCK(inp); | ||||
final_cpl_received(toep); | final_cpl_received(toep); | ||||
return (0); | return (0); | ||||
▲ Show 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | #endif | ||||
if (toep->flags & TPF_ABORT_SHUTDOWN) | if (toep->flags & TPF_ABORT_SHUTDOWN) | ||||
goto done; | goto done; | ||||
so = inp->inp_socket; | so = inp->inp_socket; | ||||
tp->snd_una = be32toh(cpl->snd_nxt) - 1; /* exclude FIN */ | tp->snd_una = be32toh(cpl->snd_nxt) - 1; /* exclude FIN */ | ||||
switch (tp->t_state) { | switch (tp->t_state) { | ||||
case TCPS_CLOSING: /* see TCPS_FIN_WAIT_2 in do_peer_close too */ | case TCPS_CLOSING: /* see TCPS_FIN_WAIT_2 in do_peer_close too */ | ||||
restore_so_proto(so, inp->inp_vflag & INP_IPV6); | |||||
tcp_twstart(tp); | tcp_twstart(tp); | ||||
release: | release: | ||||
INP_UNLOCK_ASSERT(inp); /* safe, we have a ref on the inp */ | INP_UNLOCK_ASSERT(inp); /* safe, we have a ref on the inp */ | ||||
NET_EPOCH_EXIT(et); | NET_EPOCH_EXIT(et); | ||||
CURVNET_RESTORE(); | CURVNET_RESTORE(); | ||||
INP_WLOCK(inp); | INP_WLOCK(inp); | ||||
final_cpl_received(toep); /* no more CPLs expected */ | final_cpl_received(toep); /* no more CPLs expected */ | ||||
▲ Show 20 Lines • Show All 982 Lines • Show Last 20 Lines |