Skip to contentSkip to conversation

: Remove old RX history interface

PATCH New Gerrit Renker 1 participant 1 message Nov 17, 2007 Networking

lore
Share & tools
lore
#0 lore raw

PATCH 10/16 : Remove old RX history interface

---
 net/dccp/ccids/lib/loss_interval.c  |    9 ++
 net/dccp/ccids/lib/packet_history.c |  162 -----------------------------------
 net/dccp/ccids/lib/packet_history.h |   84 ------------------
 3 files changed, 9 insertions(+), 246 deletions(-)
net/dccp/ccids/lib/loss_interval.c +9 -0
index e8a9d09..cd8d668 100644
@@ -129,6 +129,12 @@ static u32 dccp_li_calc_first_li(struct sock *sk,
 				 u16 s, u32 bytes_recv,
 				 u32 previous_x_recv)
 {
+	/*
+	 * XXX This function still relies on the old RX interface and thus can not be
+	 * kept. But it can also not be removed since the loss interval code calls it.
+	 * Since it will be replaced anyway, comment it out for this moment.
+	 */
+#ifdef __THIS_IS_RESOLVED_IN_NEXT_PATCH__
 	struct dccp_rx_hist_entry *entry, *next, *tail = NULL;
 	u32 x_recv, p;
 	suseconds_t rtt, delta;
@@ -220,6 +226,9 @@ found:
 		return ~0;
 	else
 		return 1000000 / p;
+#else
+	return ~0;
+#endif
 }
 
 void dccp_li_update_li(struct sock *sk,
net/dccp/ccids/lib/packet_history.c +0 -162

174 lines not on this page · raw message

net/dccp/ccids/lib/packet_history.h +0 -84

109 lines not on this page · raw message

Signature · 1 line
1.5.2.2.238.g7cbf2f2-dirty