aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/tcp.c')
-rw-r--r--net/ipv4/tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c
index b7cf26e0e5c2..59e30bab0606 100644
--- a/net/ipv4/tcp.c
+++ b/net/ipv4/tcp.c
@@ -643,7 +643,7 @@ static inline int select_size(struct sock *sk, struct tcp_sock *tp)
643 int tmp = tp->mss_cache; 643 int tmp = tp->mss_cache;
644 644
645 if (sk->sk_route_caps & NETIF_F_SG) { 645 if (sk->sk_route_caps & NETIF_F_SG) {
646 if (sk->sk_route_caps & NETIF_F_TSO) 646 if (sk_can_gso(sk))
647 tmp = 0; 647 tmp = 0;
648 else { 648 else {
649 int pgbreak = SKB_MAX_HEAD(MAX_TCP_HEADER); 649 int pgbreak = SKB_MAX_HEAD(MAX_TCP_HEADER);