File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -1600,6 +1600,11 @@ enum tcp_chrono {
16001600void tcp_chrono_start (struct sock * sk , const enum tcp_chrono type );
16011601void tcp_chrono_stop (struct sock * sk , const enum tcp_chrono type );
16021602
1603+ static inline void tcp_init_send_head (struct sock * sk )
1604+ {
1605+ sk -> sk_send_head = NULL ;
1606+ }
1607+
16031608/* write queue abstraction */
16041609static inline void tcp_write_queue_purge (struct sock * sk )
16051610{
@@ -1610,6 +1615,7 @@ static inline void tcp_write_queue_purge(struct sock *sk)
16101615 sk_wmem_free_skb (sk , skb );
16111616 sk_mem_reclaim (sk );
16121617 tcp_clear_all_retrans_hints (tcp_sk (sk ));
1618+ tcp_init_send_head (sk );
16131619}
16141620
16151621static inline struct sk_buff * tcp_write_queue_head (const struct sock * sk )
@@ -1672,11 +1678,6 @@ static inline void tcp_check_send_head(struct sock *sk, struct sk_buff *skb_unli
16721678 tcp_sk (sk )-> highest_sack = NULL ;
16731679}
16741680
1675- static inline void tcp_init_send_head (struct sock * sk )
1676- {
1677- sk -> sk_send_head = NULL ;
1678- }
1679-
16801681static inline void __tcp_add_write_queue_tail (struct sock * sk , struct sk_buff * skb )
16811682{
16821683 __skb_queue_tail (& sk -> sk_write_queue , skb );
You can’t perform that action at this time.
0 commit comments