diff options
author | Michał Mirosław <mirq-linux@rere.qmqm.pl> | 2010-12-14 10:24:08 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-12-16 17:43:14 -0500 |
commit | 55508d601dab7df5cbcc7a63f4be8620eface204 (patch) | |
tree | 346f30fae9c726d2e73aba2e37ce1e4a31dcea8c /drivers/net/atlx | |
parent | 04fb451eff978ca059399eab83d5594b073caf6f (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 'drivers/net/atlx')
-rw-r--r-- | drivers/net/atlx/atl1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/atlx/atl1.c b/drivers/net/atlx/atl1.c index 53363108994e..def8df83359c 100644 --- a/drivers/net/atlx/atl1.c +++ b/drivers/net/atlx/atl1.c | |||
@@ -2174,7 +2174,7 @@ static int atl1_tx_csum(struct atl1_adapter *adapter, struct sk_buff *skb, | |||
2174 | u8 css, cso; | 2174 | u8 css, cso; |
2175 | 2175 | ||
2176 | if (likely(skb->ip_summed == CHECKSUM_PARTIAL)) { | 2176 | if (likely(skb->ip_summed == CHECKSUM_PARTIAL)) { |
2177 | css = (u8) (skb->csum_start - skb_headroom(skb)); | 2177 | css = skb_checksum_start_offset(skb); |
2178 | cso = css + (u8) skb->csum_offset; | 2178 | cso = css + (u8) skb->csum_offset; |
2179 | if (unlikely(css & 0x1)) { | 2179 | if (unlikely(css & 0x1)) { |
2180 | /* L1 hardware requires an even number here */ | 2180 | /* L1 hardware requires an even number here */ |