All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/8]: Add FIXME for send_delayed_ack
@ 2007-09-25 14:29 Gerrit Renker
  2007-09-25 14:40 ` Arnaldo Carvalho de Melo
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Gerrit Renker @ 2007-09-25 14:29 UTC (permalink / raw)
  To: dccp

[DCCP]: Add FIXME for send_delayed_ack

This adds a FIXME to signal that the function dccp_send_delayed_ack is nowhere
used in the entire DCCP/CCID code.

Using a delayed Ack timer is suggested in 11.3 of RFC 4340, but it has also
rather subtle implications for the Ack-Ratio-accounting.

CCID2 does not use this (maybe it should).

I think leaving the function in is good, in case someone wants to implement
this.

Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
---
 net/dccp/dccp.h   |    1 -
 net/dccp/output.c |    1 +
 2 files changed, 1 insertion(+), 1 deletion(-)

--- a/net/dccp/dccp.h
+++ b/net/dccp/dccp.h
@@ -214,7 +214,6 @@ extern void dccp_v4_send_check(struct so
 extern int  dccp_retransmit_skb(struct sock *sk, struct sk_buff *skb);
 
 extern void dccp_send_ack(struct sock *sk);
-extern void dccp_send_delayed_ack(struct sock *sk);
 extern void dccp_reqsk_send_ack(struct sk_buff *sk, struct request_sock *rsk);
 
 extern void dccp_send_sync(struct sock *sk, const u64 seq,
--- a/net/dccp/output.c
+++ b/net/dccp/output.c
@@ -481,6 +481,7 @@ void dccp_send_ack(struct sock *sk)
 
 EXPORT_SYMBOL_GPL(dccp_send_ack);
 
+/* FIXME: Is this still necessary (11.3) - currently nowhere used by DCCP. */
 void dccp_send_delayed_ack(struct sock *sk)
 {
 	struct inet_connection_sock *icsk = inet_csk(sk);

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

* Re: [PATCH 1/8]: Add FIXME for send_delayed_ack
  2007-09-25 14:29 [PATCH 1/8]: Add FIXME for send_delayed_ack Gerrit Renker
@ 2007-09-25 14:40 ` Arnaldo Carvalho de Melo
  2007-09-25 19:27 ` Ian McDonald
  2007-09-26  8:44 ` Gerrit Renker
  2 siblings, 0 replies; 4+ messages in thread
From: Arnaldo Carvalho de Melo @ 2007-09-25 14:40 UTC (permalink / raw)
  To: dccp

Em Tue, Sep 25, 2007 at 03:29:52PM +0100, Gerrit Renker escreveu:
> [DCCP]: Add FIXME for send_delayed_ack
> 
> This adds a FIXME to signal that the function dccp_send_delayed_ack is nowhere
> used in the entire DCCP/CCID code.
> 
> Using a delayed Ack timer is suggested in 11.3 of RFC 4340, but it has also
> rather subtle implications for the Ack-Ratio-accounting.
> 
> CCID2 does not use this (maybe it should).
> 
> I think leaving the function in is good, in case someone wants to implement
> this.
> 
> Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>

Well spotted, I just checked and it really was never used!

applying

- Arnaldo

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

* Re: [PATCH 1/8]: Add FIXME for send_delayed_ack
  2007-09-25 14:29 [PATCH 1/8]: Add FIXME for send_delayed_ack Gerrit Renker
  2007-09-25 14:40 ` Arnaldo Carvalho de Melo
@ 2007-09-25 19:27 ` Ian McDonald
  2007-09-26  8:44 ` Gerrit Renker
  2 siblings, 0 replies; 4+ messages in thread
From: Ian McDonald @ 2007-09-25 19:27 UTC (permalink / raw)
  To: dccp

On 9/26/07, Gerrit Renker <gerrit@erg.abdn.ac.uk> wrote:
> [DCCP]: Add FIXME for send_delayed_ack
>
> This adds a FIXME to signal that the function dccp_send_delayed_ack is nowhere
> used in the entire DCCP/CCID code.
>
> Using a delayed Ack timer is suggested in 11.3 of RFC 4340, but it has also
> rather subtle implications for the Ack-Ratio-accounting.
>
> CCID2 does not use this (maybe it should).
>
> I think leaving the function in is good, in case someone wants to implement
> this.
>
> Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>

How about using #if 0, #endif around it to keep the code in the tree
but not compiled.

This is done a fair bit elsewhere and if never used it gets removed.

Ian
-- 
Web1: http://wand.net.nz/~iam4/
Web2: http://www.jandi.co.nz
Blog: http://iansblog.jandi.co.nz

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

* Re: [PATCH 1/8]: Add FIXME for send_delayed_ack
  2007-09-25 14:29 [PATCH 1/8]: Add FIXME for send_delayed_ack Gerrit Renker
  2007-09-25 14:40 ` Arnaldo Carvalho de Melo
  2007-09-25 19:27 ` Ian McDonald
@ 2007-09-26  8:44 ` Gerrit Renker
  2 siblings, 0 replies; 4+ messages in thread
From: Gerrit Renker @ 2007-09-26  8:44 UTC (permalink / raw)
  To: dccp

Ian -
|  How about using #if 0, #endif around it to keep the code in the tree
|  but not compiled.
|  
|  This is done a fair bit elsewhere and if never used it gets removed.
this is a good idea actually, the problem that I have with this is it makes the 
code look unfinished and hackish, but this is a self-contained function which I 
think would serve its purpose - it is just not used at the moment.

I was considering taking this on board, but noted that Arnaldo had applied this
already. And I think that keeping delayed Acks an option might be useful for CCID2.
 

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

end of thread, other threads:[~2007-09-26  8:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-25 14:29 [PATCH 1/8]: Add FIXME for send_delayed_ack Gerrit Renker
2007-09-25 14:40 ` Arnaldo Carvalho de Melo
2007-09-25 19:27 ` Ian McDonald
2007-09-26  8:44 ` Gerrit Renker

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.