diff options
Diffstat (limited to 'include/net/tcp.h')
| -rw-r--r-- | include/net/tcp.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index ca3d38dfc00b..7a093d0aa0fe 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h | |||
| @@ -751,7 +751,7 @@ static inline int tcp_is_cwnd_limited(const struct sock *sk, u32 in_flight) | |||
| 751 | if (in_flight >= tp->snd_cwnd) | 751 | if (in_flight >= tp->snd_cwnd) |
| 752 | return 1; | 752 | return 1; |
| 753 | 753 | ||
| 754 | if (!(sk->sk_route_caps & NETIF_F_TSO)) | 754 | if (!sk_can_gso(sk)) |
| 755 | return 0; | 755 | return 0; |
| 756 | 756 | ||
| 757 | left = tp->snd_cwnd - in_flight; | 757 | left = tp->snd_cwnd - in_flight; |
| @@ -914,6 +914,9 @@ static inline void tcp_set_state(struct sock *sk, int state) | |||
| 914 | 914 | ||
| 915 | static inline void tcp_done(struct sock *sk) | 915 | static inline void tcp_done(struct sock *sk) |
| 916 | { | 916 | { |
| 917 | if(sk->sk_state == TCP_SYN_SENT || sk->sk_state == TCP_SYN_RECV) | ||
| 918 | TCP_INC_STATS_BH(TCP_MIB_ATTEMPTFAILS); | ||
| 919 | |||
| 917 | tcp_set_state(sk, TCP_CLOSE); | 920 | tcp_set_state(sk, TCP_CLOSE); |
| 918 | tcp_clear_xmit_timers(sk); | 921 | tcp_clear_xmit_timers(sk); |
| 919 | 922 | ||
| @@ -1086,7 +1089,8 @@ extern struct request_sock_ops tcp_request_sock_ops; | |||
| 1086 | 1089 | ||
| 1087 | extern int tcp_v4_destroy_sock(struct sock *sk); | 1090 | extern int tcp_v4_destroy_sock(struct sock *sk); |
| 1088 | 1091 | ||
| 1089 | extern struct sk_buff *tcp_tso_segment(struct sk_buff *skb, int sg); | 1092 | extern int tcp_v4_gso_send_check(struct sk_buff *skb); |
| 1093 | extern struct sk_buff *tcp_tso_segment(struct sk_buff *skb, int features); | ||
| 1090 | 1094 | ||
| 1091 | #ifdef CONFIG_PROC_FS | 1095 | #ifdef CONFIG_PROC_FS |
| 1092 | extern int tcp4_proc_init(void); | 1096 | extern int tcp4_proc_init(void); |
