netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [NET]: Please revert disallowing zero listen queues
@ 2007-03-06 13:32 Gerrit Renker
  2007-03-06 18:37 ` David Miller
  0 siblings, 1 reply; 6+ messages in thread
From: Gerrit Renker @ 2007-03-06 13:32 UTC (permalink / raw)
  To: David Miller; +Cc: netdev, weid

Please can you reconsider the patch regarding the accept_queue

http://git.kernel.org/?p=linux/kernel/git/davem/net-2.6.22.git;a=commit;h=8488df894d05d6fa41c2bd298c335f944bb0e401

It disallows to set a `backlog' argument to listen(2) of zero. Using
a zero backlog is often done (e.g. ttcp), and disallowing a zero 
backlog will break many applications. I had to recode several applications
which rely on this convention.

The problem further spreads from TCP to DCCP (same behaviour).

Below is a patch to revert this change.

Thank you 
Gerrit

diff --git a/include/net/sock.h b/include/net/sock.h
index 849c7df..2c7d60c 100644
--- a/include/net/sock.h
+++ b/include/net/sock.h
@@ -426,7 +426,7 @@ static inline void sk_acceptq_added(stru
 
 static inline int sk_acceptq_is_full(struct sock *sk)
 {
-	return sk->sk_ack_backlog >= sk->sk_max_ack_backlog;
+	return sk->sk_ack_backlog > sk->sk_max_ack_backlog;
 }
 
 /*

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-03-09 19:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-06 13:32 [NET]: Please revert disallowing zero listen queues Gerrit Renker
2007-03-06 18:37 ` David Miller
2007-03-06 18:45   ` David Miller
2007-03-06 18:54   ` Rick Jones
2007-03-06 19:11     ` David Miller
2007-03-09 19:14       ` Vlad Yasevich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).