aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/e1000e/netdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/e1000e/netdev.c')
-rw-r--r--drivers/net/e1000e/netdev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/e1000e/netdev.c b/drivers/net/e1000e/netdev.c
index 1bd581eedd06..5f70c437fa41 100644
--- a/drivers/net/e1000e/netdev.c
+++ b/drivers/net/e1000e/netdev.c
@@ -4132,7 +4132,7 @@ static netdev_tx_t e1000_xmit_frame(struct sk_buff *skb,
4132 unsigned int max_per_txd = E1000_MAX_PER_TXD; 4132 unsigned int max_per_txd = E1000_MAX_PER_TXD;
4133 unsigned int max_txd_pwr = E1000_MAX_TXD_PWR; 4133 unsigned int max_txd_pwr = E1000_MAX_TXD_PWR;
4134 unsigned int tx_flags = 0; 4134 unsigned int tx_flags = 0;
4135 unsigned int len = skb->len - skb->data_len; 4135 unsigned int len = skb_headlen(skb);
4136 unsigned int nr_frags; 4136 unsigned int nr_frags;
4137 unsigned int mss; 4137 unsigned int mss;
4138 int count = 0; 4138 int count = 0;
@@ -4182,7 +4182,7 @@ static netdev_tx_t e1000_xmit_frame(struct sk_buff *skb,
4182 dev_kfree_skb_any(skb); 4182 dev_kfree_skb_any(skb);
4183 return NETDEV_TX_OK; 4183 return NETDEV_TX_OK;
4184 } 4184 }
4185 len = skb->len - skb->data_len; 4185 len = skb_headlen(skb);
4186 } 4186 }
4187 } 4187 }
4188 4188