aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/tcp.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r--include/net/tcp.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h
index 90b4c3b4c336..265392470b26 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -1192,6 +1192,11 @@ static inline struct sk_buff *tcp_write_queue_next(struct sock *sk, struct sk_bu
1192 return skb_queue_next(&sk->sk_write_queue, skb); 1192 return skb_queue_next(&sk->sk_write_queue, skb);
1193} 1193}
1194 1194
1195static inline struct sk_buff *tcp_write_queue_prev(struct sock *sk, struct sk_buff *skb)
1196{
1197 return skb_queue_prev(&sk->sk_write_queue, skb);
1198}
1199
1195#define tcp_for_write_queue(skb, sk) \ 1200#define tcp_for_write_queue(skb, sk) \
1196 skb_queue_walk(&(sk)->sk_write_queue, skb) 1201 skb_queue_walk(&(sk)->sk_write_queue, skb)
1197 1202