aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>2010-12-14 10:24:08 -0500
committerDavid S. Miller <davem@davemloft.net>2010-12-16 17:43:14 -0500
commit55508d601dab7df5cbcc7a63f4be8620eface204 (patch)
tree346f30fae9c726d2e73aba2e37ce1e4a31dcea8c /net/ipv4
parent04fb451eff978ca059399eab83d5594b073caf6f (diff)
net: Use skb_checksum_start_offset()
Replace skb->csum_start - skb_headroom(skb) with skb_checksum_start_offset(). Note for usb/smsc95xx: skb->data - skb->head == skb_headroom(skb). Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r--net/ipv4/udp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c
index b37181da487c..1198adf45102 100644
--- a/net/ipv4/udp.c
+++ b/net/ipv4/udp.c
@@ -2226,7 +2226,7 @@ struct sk_buff *udp4_ufo_fragment(struct sk_buff *skb, int features)
2226 /* Do software UFO. Complete and fill in the UDP checksum as HW cannot 2226 /* Do software UFO. Complete and fill in the UDP checksum as HW cannot
2227 * do checksum of UDP packets sent as multiple IP fragments. 2227 * do checksum of UDP packets sent as multiple IP fragments.
2228 */ 2228 */
2229 offset = skb->csum_start - skb_headroom(skb); 2229 offset = skb_checksum_start_offset(skb);
2230 csum = skb_checksum(skb, offset, skb->len - offset, 0); 2230 csum = skb_checksum(skb, offset, skb->len - offset, 0);
2231 offset += skb->csum_offset; 2231 offset += skb->csum_offset;
2232 *(__sum16 *)(skb->data + offset) = csum_fold(csum); 2232 *(__sum16 *)(skb->data + offset) = csum_fold(csum);