diff options
author | Alexander Duyck <alexander.h.duyck@intel.com> | 2012-05-04 10:26:56 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-06 13:13:19 -0400 |
commit | ec47ea82477404631d49b8e568c71826c9b663ac (patch) | |
tree | 8b7890f23ad078d9eccbd4571e0b2da86b04a6a0 /drivers/net/wimax | |
parent | 3e24591a19bbda6fcb2cbe383b41b4ba794501bf (diff) |
skb: Add inline helper for getting the skb end offset from head
With the recent changes for how we compute the skb truesize it occurs to me
we are probably going to have a lot of calls to skb_end_pointer -
skb->head. Instead of running all over the place doing that it would make
more sense to just make it a separate inline skb_end_offset(skb) that way
we can return the correct value without having gcc having to do all the
optimization to cancel out skb->head - skb->head.
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wimax')
-rw-r--r-- | drivers/net/wimax/i2400m/usb-rx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wimax/i2400m/usb-rx.c b/drivers/net/wimax/i2400m/usb-rx.c index e3257681e360..b78ee676e102 100644 --- a/drivers/net/wimax/i2400m/usb-rx.c +++ b/drivers/net/wimax/i2400m/usb-rx.c | |||
@@ -277,7 +277,7 @@ retry: | |||
277 | d_printf(1, dev, "RX: size changed to %d, received %d, " | 277 | d_printf(1, dev, "RX: size changed to %d, received %d, " |
278 | "copied %d, capacity %ld\n", | 278 | "copied %d, capacity %ld\n", |
279 | rx_size, read_size, rx_skb->len, | 279 | rx_size, read_size, rx_skb->len, |
280 | (long) (skb_end_pointer(new_skb) - new_skb->head)); | 280 | (long) skb_end_offset(new_skb)); |
281 | goto retry; | 281 | goto retry; |
282 | } | 282 | } |
283 | /* In most cases, it happens due to the hardware scheduling a | 283 | /* In most cases, it happens due to the hardware scheduling a |