mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
cxgbe/iw_cxgbe: Catch up with r319722. The socket lock is not the same as the
lock for the receive buffer any more. Sponsored by: Chelsio Communications
This commit is contained in:
parent
d37837249b
commit
edc9c9cd54
1 changed files with 2 additions and 3 deletions
|
|
@ -622,11 +622,10 @@ init_iwarp_socket(struct socket *so, void *arg)
|
|||
struct sockopt sopt;
|
||||
int on = 1;
|
||||
|
||||
/* Note that SOCK_LOCK(so) is same as SOCKBUF_LOCK(&so->so_rcv) */
|
||||
SOCK_LOCK(so);
|
||||
SOCKBUF_LOCK(&so->so_rcv);
|
||||
soupcall_set(so, SO_RCV, c4iw_so_upcall, arg);
|
||||
so->so_state |= SS_NBIO;
|
||||
SOCK_UNLOCK(so);
|
||||
SOCKBUF_UNLOCK(&so->so_rcv);
|
||||
sopt.sopt_dir = SOPT_SET;
|
||||
sopt.sopt_level = IPPROTO_TCP;
|
||||
sopt.sopt_name = TCP_NODELAY;
|
||||
|
|
|
|||
Loading…
Reference in a new issue