aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/core/dev.c')
-rw-r--r--net/core/dev.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 794b20de5d44..92d414ac0e30 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -1793,7 +1793,7 @@ int skb_checksum_help(struct sk_buff *skb)
1793 goto out_set_summed; 1793 goto out_set_summed;
1794 } 1794 }
1795 1795
1796 offset = skb->csum_start - skb_headroom(skb); 1796 offset = skb_checksum_start_offset(skb);
1797 BUG_ON(offset >= skb_headlen(skb)); 1797 BUG_ON(offset >= skb_headlen(skb));
1798 csum = skb_checksum(skb, offset, skb->len - offset, 0); 1798 csum = skb_checksum(skb, offset, skb->len - offset, 0);
1799 1799
@@ -2090,8 +2090,8 @@ int dev_hard_start_xmit(struct sk_buff *skb, struct net_device *dev,
2090 * checksumming here. 2090 * checksumming here.
2091 */ 2091 */
2092 if (skb->ip_summed == CHECKSUM_PARTIAL) { 2092 if (skb->ip_summed == CHECKSUM_PARTIAL) {
2093 skb_set_transport_header(skb, skb->csum_start - 2093 skb_set_transport_header(skb,
2094 skb_headroom(skb)); 2094 skb_checksum_start_offset(skb));
2095 if (!dev_can_checksum(dev, skb) && 2095 if (!dev_can_checksum(dev, skb) &&
2096 skb_checksum_help(skb)) 2096 skb_checksum_help(skb))
2097 goto out_kfree_skb; 2097 goto out_kfree_skb;