patch-2.2.0-pre8 linux/include/net/tcp.h

Next file: linux/kernel/exit.c
Previous file: linux/include/linux/videodev.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.0-pre7/linux/include/net/tcp.h linux/include/net/tcp.h
@@ -813,8 +813,9 @@
 /* This tells the input processing path that an ACK should go out
  * right now.
  */
-#define tcp_enter_quickack_mode(__tp)	((__tp)->ato = (HZ/100))
-#define tcp_in_quickack_mode(__tp)	((__tp)->ato == (HZ/100))
+#define tcp_enter_quickack_mode(__tp)	((__tp)->ato |= (1<<31))
+#define tcp_exit_quickack_mode(__tp)	((__tp)->ato &= ~(1<<31))
+#define tcp_in_quickack_mode(__tp)	(((__tp)->ato & (1 << 31)) != 0)
 
 /*
  * List all states of a TCP socket that can be viewed as a "connected"

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov