diff options
Diffstat (limited to 'drivers/net/bnx2.c')
-rw-r--r-- | drivers/net/bnx2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c index e85f5ec48f96..b8091c55d441 100644 --- a/drivers/net/bnx2.c +++ b/drivers/net/bnx2.c | |||
@@ -4527,7 +4527,7 @@ bnx2_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
4527 | if (skb->h.th->doff > 5) { | 4527 | if (skb->h.th->doff > 5) { |
4528 | tcp_opt_len = (skb->h.th->doff - 5) << 2; | 4528 | tcp_opt_len = (skb->h.th->doff - 5) << 2; |
4529 | } | 4529 | } |
4530 | ip_tcp_len = (skb->nh.iph->ihl << 2) + sizeof(struct tcphdr); | 4530 | ip_tcp_len = ip_hdrlen(skb) + sizeof(struct tcphdr); |
4531 | 4531 | ||
4532 | skb->nh.iph->check = 0; | 4532 | skb->nh.iph->check = 0; |
4533 | skb->nh.iph->tot_len = htons(mss + ip_tcp_len + tcp_opt_len); | 4533 | skb->nh.iph->tot_len = htons(mss + ip_tcp_len + tcp_opt_len); |