patch-2.1.34 linux/drivers/net/de600.c
Next file: linux/drivers/net/eepro100.c
Previous file: linux/drivers/net/de4x5.c.lock~
Back to the patch index
Back to the overall index
- Lines: 11
- Date:
Mon Apr 14 09:31:09 1997
- Orig file:
v2.1.33/linux/drivers/net/de600.c
- Orig date:
Fri Apr 4 08:52:20 1997
diff -u --recursive --new-file v2.1.33/linux/drivers/net/de600.c linux/drivers/net/de600.c
@@ -804,8 +804,8 @@
sk->max_unacked = DE600_MAX_WINDOW - DE600_TCP_WINDOW_DIFF;
*/
- if (sk->rmem_alloc >= sk->rcvbuf-2*DE600_MIN_WINDOW) return(0);
- amt = min((sk->rcvbuf-sk->rmem_alloc)/2/*-DE600_MIN_WINDOW*/, DE600_MAX_WINDOW);
+ if (atomic_read(&sk->rmem_alloc) >= sk->rcvbuf-2*DE600_MIN_WINDOW) return(0);
+ amt = min((sk->rcvbuf-atomic_read(&sk->rmem_alloc))/2/*-DE600_MIN_WINDOW*/, DE600_MAX_WINDOW);
if (amt < 0) return(0);
return(amt);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov