diff options
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/tcp.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index 882436da9a3a..be354155b2f9 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c | |||
@@ -756,13 +756,9 @@ static inline int select_size(struct sock *sk, struct tcp_sock *tp) | |||
756 | { | 756 | { |
757 | int tmp = tp->mss_cache_std; | 757 | int tmp = tp->mss_cache_std; |
758 | 758 | ||
759 | if (sk->sk_route_caps & NETIF_F_SG) { | 759 | if (sk->sk_route_caps & NETIF_F_SG) |
760 | int pgbreak = SKB_MAX_HEAD(MAX_TCP_HEADER); | 760 | tmp = 0; |
761 | 761 | ||
762 | if (tmp >= pgbreak && | ||
763 | tmp <= pgbreak + (MAX_SKB_FRAGS - 1) * PAGE_SIZE) | ||
764 | tmp = pgbreak; | ||
765 | } | ||
766 | return tmp; | 762 | return tmp; |
767 | } | 763 | } |
768 | 764 | ||
@@ -872,11 +868,6 @@ new_segment: | |||
872 | tcp_mark_push(tp, skb); | 868 | tcp_mark_push(tp, skb); |
873 | goto new_segment; | 869 | goto new_segment; |
874 | } else if (page) { | 870 | } else if (page) { |
875 | /* If page is cached, align | ||
876 | * offset to L1 cache boundary | ||
877 | */ | ||
878 | off = (off + L1_CACHE_BYTES - 1) & | ||
879 | ~(L1_CACHE_BYTES - 1); | ||
880 | if (off == PAGE_SIZE) { | 871 | if (off == PAGE_SIZE) { |
881 | put_page(page); | 872 | put_page(page); |
882 | TCP_PAGE(sk) = page = NULL; | 873 | TCP_PAGE(sk) = page = NULL; |