mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
[TCP]: Move __tcp_data_snd_check into tcp_output.c
It reimplements portions of tcp_snd_check(), so it we move it to tcp_output.c we can consolidate it's logic much easier in a later change. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f6302d1d78
commit
84d3e7b957
3 changed files with 11 additions and 10 deletions
|
@ -3346,16 +3346,6 @@ static inline void tcp_check_space(struct sock *sk)
|
|||
}
|
||||
}
|
||||
|
||||
static void __tcp_data_snd_check(struct sock *sk, struct sk_buff *skb)
|
||||
{
|
||||
struct tcp_sock *tp = tcp_sk(sk);
|
||||
|
||||
if (after(TCP_SKB_CB(skb)->end_seq, tp->snd_una + tp->snd_wnd) ||
|
||||
tcp_packets_in_flight(tp) >= tp->snd_cwnd ||
|
||||
tcp_write_xmit(sk, tp->nonagle))
|
||||
tcp_check_probe_timer(sk, tp);
|
||||
}
|
||||
|
||||
static __inline__ void tcp_data_snd_check(struct sock *sk)
|
||||
{
|
||||
struct sk_buff *skb = sk->sk_send_head;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue