mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
- Switch to INP_WLOCK macro from inp_wlock
- calling sodisconnect after tcp_twstart is both gratuitous and unsafe - remove Submitted by: rwatson
This commit is contained in:
parent
828e07694c
commit
84330faa64
2 changed files with 1 additions and 16 deletions
|
|
@ -103,25 +103,11 @@ tcp_offload_twstart(struct tcpcb *tp)
|
|||
{
|
||||
|
||||
INP_INFO_WLOCK(&tcbinfo);
|
||||
inp_wlock(tp->t_inpcb);
|
||||
INP_WLOCK(tp->t_inpcb);
|
||||
tcp_twstart(tp);
|
||||
INP_INFO_WUNLOCK(&tcbinfo);
|
||||
}
|
||||
|
||||
void
|
||||
tcp_offload_twstart_disconnect(struct tcpcb *tp)
|
||||
{
|
||||
struct socket *so;
|
||||
|
||||
INP_INFO_WLOCK(&tcbinfo);
|
||||
inp_wlock(tp->t_inpcb);
|
||||
so = tp->t_inpcb->inp_socket;
|
||||
tcp_twstart(tp);
|
||||
if (so)
|
||||
soisdisconnected(so);
|
||||
INP_INFO_WUNLOCK(&tcbinfo);
|
||||
}
|
||||
|
||||
struct tcpcb *
|
||||
tcp_offload_close(struct tcpcb *tp)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -335,7 +335,6 @@ tcp_offload_listen_close(struct tcpcb *tp)
|
|||
#undef tp_offload
|
||||
|
||||
void tcp_offload_twstart(struct tcpcb *tp);
|
||||
void tcp_offload_twstart_disconnect(struct tcpcb *tp);
|
||||
struct tcpcb *tcp_offload_close(struct tcpcb *tp);
|
||||
struct tcpcb *tcp_offload_drop(struct tcpcb *tp, int error);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue