net: Use skb_checksum_start_offset()
[deliverable/linux.git] / net / core / dev.c
index 794b20de5d44cdfad677d0f710661d19c860aa2b..92d414ac0e30e79392a44c686697d334205149da 100644 (file)
@@ -1793,7 +1793,7 @@ int skb_checksum_help(struct sk_buff *skb)
                goto out_set_summed;
        }
 
-       offset = skb->csum_start - skb_headroom(skb);
+       offset = skb_checksum_start_offset(skb);
        BUG_ON(offset >= skb_headlen(skb));
        csum = skb_checksum(skb, offset, skb->len - offset, 0);
 
@@ -2090,8 +2090,8 @@ int dev_hard_start_xmit(struct sk_buff *skb, struct net_device *dev,
                         * checksumming here.
                         */
                        if (skb->ip_summed == CHECKSUM_PARTIAL) {
-                               skb_set_transport_header(skb, skb->csum_start -
-                                             skb_headroom(skb));
+                               skb_set_transport_header(skb,
+                                       skb_checksum_start_offset(skb));
                                if (!dev_can_checksum(dev, skb) &&
                                     skb_checksum_help(skb))
                                        goto out_kfree_skb;
This page took 0.025345 seconds and 5 git commands to generate.