diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-04-14 18:59:40 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-04-14 19:11:33 -0400 |
commit | e743d31312d00932391b123dfac3324d2b9e8c81 (patch) | |
tree | e5ac3aacbfdde1fe8eb44c4e010085915da5ea05 /drivers/net/ixgbevf/ixgbevf_main.c | |
parent | b4bf665c5761837f693e87ab27870a5868185ccc (diff) |
drivers: net: use skb_headlen()
replaces (skb->len - skb->data_len) occurrences by skb_headlen(skb)
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ixgbevf/ixgbevf_main.c')
-rw-r--r-- | drivers/net/ixgbevf/ixgbevf_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ixgbevf/ixgbevf_main.c b/drivers/net/ixgbevf/ixgbevf_main.c index 960e98532ee2..f484161418b6 100644 --- a/drivers/net/ixgbevf/ixgbevf_main.c +++ b/drivers/net/ixgbevf/ixgbevf_main.c | |||
@@ -604,7 +604,7 @@ static bool ixgbevf_clean_rx_irq(struct ixgbevf_q_vector *q_vector, | |||
604 | * packets not getting split correctly | 604 | * packets not getting split correctly |
605 | */ | 605 | */ |
606 | if (staterr & IXGBE_RXD_STAT_LB) { | 606 | if (staterr & IXGBE_RXD_STAT_LB) { |
607 | u32 header_fixup_len = skb->len - skb->data_len; | 607 | u32 header_fixup_len = skb_headlen(skb); |
608 | if (header_fixup_len < 14) | 608 | if (header_fixup_len < 14) |
609 | skb_push(skb, header_fixup_len); | 609 | skb_push(skb, header_fixup_len); |
610 | } | 610 | } |