]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/net/sock.h
[TCP]: speed up SACK processing
[linux-2.6-omap-h63xx.git] / include / net / sock.h
index ff13c4cc287add76e658418aaae91970c1c87f66..982b4ecd187b9393b9470a3da7462bdd878a0e52 100644 (file)
@@ -1247,6 +1247,12 @@ static inline struct page *sk_stream_alloc_page(struct sock *sk)
                     (skb != (struct sk_buff *)&(sk)->sk_write_queue);  \
                     skb = skb->next)
 
+/*from STCP for fast SACK Process*/
+#define sk_stream_for_retrans_queue_from(skb, sk)                      \
+               for (; (skb != (sk)->sk_send_head) &&                   \
+                    (skb != (struct sk_buff *)&(sk)->sk_write_queue);  \
+                    skb = skb->next)
+
 /*
  *     Default write policy as shown to user space via poll/select/SIGIO
  */