]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - net/ipv4/tcp.c
net: Fix possible wrong checksum generation.
[~shefty/rdma-dev.git] / net / ipv4 / tcp.c
index 801b07b796f01a78b8bc0beeaae71eb1bca0d26c..1f0bedb8622f04bedd775412b9ab9023f948f48d 100644 (file)
@@ -897,8 +897,7 @@ new_segment:
                        get_page(page);
                        skb_fill_page_desc(skb, i, page, offset, copy);
                }
-
-               skb_shinfo(skb)->gso_type |= SKB_GSO_SHARED_FRAG;
+               skb_shinfo(skb)->tx_flags |= SKBTX_SHARED_FRAG;
 
                skb->len += copy;
                skb->data_len += copy;
@@ -3044,7 +3043,6 @@ struct sk_buff *tcp_tso_segment(struct sk_buff *skb,
                               SKB_GSO_DODGY |
                               SKB_GSO_TCP_ECN |
                               SKB_GSO_TCPV6 |
-                              SKB_GSO_SHARED_FRAG |
                               0) ||
                             !(type & (SKB_GSO_TCPV4 | SKB_GSO_TCPV6))))
                        goto out;