Let the sowwakeup macro decide when to call sowakeup rather than have

tcp "know" about it.  A pending upcall would be missed, eg: used by NFS.

Obtained from: NetBSD
This commit is contained in:
Peter Wemm 1998-05-31 18:42:49 +00:00
parent 4dc75870b2
commit 04a3fd1276
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=36529
2 changed files with 6 additions and 10 deletions

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)tcp_input.c 8.12 (Berkeley) 5/24/95
* $Id: tcp_input.c,v 1.76 1998/05/18 17:07:58 guido Exp $
* $Id: tcp_input.c,v 1.77 1998/05/18 17:11:24 guido Exp $
*/
#include "opt_tcpdebug.h"
@ -538,8 +538,7 @@ tcp_input(m, iphlen)
else if (tp->t_timer[TCPT_PERSIST] == 0)
tp->t_timer[TCPT_REXMT] = tp->t_rxtcur;
if (so->so_snd.sb_flags & SB_NOTIFY)
sowwakeup(so);
sowwakeup(so);
if (so->so_snd.sb_cc)
(void) tcp_output(tp);
return;
@ -1373,8 +1372,7 @@ tcp_input(m, iphlen)
tp->snd_wnd -= acked;
ourfinisacked = 0;
}
if (so->so_snd.sb_flags & SB_NOTIFY)
sowwakeup(so);
sowwakeup(so);
tp->snd_una = ti->ti_ack;
if (SEQ_LT(tp->snd_nxt, tp->snd_una))
tp->snd_nxt = tp->snd_una;

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)tcp_input.c 8.12 (Berkeley) 5/24/95
* $Id: tcp_input.c,v 1.76 1998/05/18 17:07:58 guido Exp $
* $Id: tcp_input.c,v 1.77 1998/05/18 17:11:24 guido Exp $
*/
#include "opt_tcpdebug.h"
@ -538,8 +538,7 @@ tcp_input(m, iphlen)
else if (tp->t_timer[TCPT_PERSIST] == 0)
tp->t_timer[TCPT_REXMT] = tp->t_rxtcur;
if (so->so_snd.sb_flags & SB_NOTIFY)
sowwakeup(so);
sowwakeup(so);
if (so->so_snd.sb_cc)
(void) tcp_output(tp);
return;
@ -1373,8 +1372,7 @@ tcp_input(m, iphlen)
tp->snd_wnd -= acked;
ourfinisacked = 0;
}
if (so->so_snd.sb_flags & SB_NOTIFY)
sowwakeup(so);
sowwakeup(so);
tp->snd_una = ti->ti_ack;
if (SEQ_LT(tp->snd_nxt, tp->snd_una))
tp->snd_nxt = tp->snd_una;