diff options
Diffstat (limited to 'drivers/net/tg3.c')
-rw-r--r-- | drivers/net/tg3.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index 76a31afe20de..7ca30d76bf6f 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c | |||
@@ -3911,7 +3911,7 @@ static int tg3_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
3911 | else { | 3911 | else { |
3912 | struct iphdr *iph = ip_hdr(skb); | 3912 | struct iphdr *iph = ip_hdr(skb); |
3913 | 3913 | ||
3914 | tcp_opt_len = ((skb->h.th->doff - 5) * 4); | 3914 | tcp_opt_len = tcp_optlen(skb); |
3915 | ip_tcp_len = ip_hdrlen(skb) + sizeof(struct tcphdr); | 3915 | ip_tcp_len = ip_hdrlen(skb) + sizeof(struct tcphdr); |
3916 | 3916 | ||
3917 | iph->check = 0; | 3917 | iph->check = 0; |
@@ -4065,7 +4065,7 @@ static int tg3_start_xmit_dma_bug(struct sk_buff *skb, struct net_device *dev) | |||
4065 | goto out_unlock; | 4065 | goto out_unlock; |
4066 | } | 4066 | } |
4067 | 4067 | ||
4068 | tcp_opt_len = ((skb->h.th->doff - 5) * 4); | 4068 | tcp_opt_len = tcp_optlen(skb); |
4069 | ip_tcp_len = ip_hdrlen(skb) + sizeof(struct tcphdr); | 4069 | ip_tcp_len = ip_hdrlen(skb) + sizeof(struct tcphdr); |
4070 | 4070 | ||
4071 | hdr_len = ip_tcp_len + tcp_opt_len; | 4071 | hdr_len = ip_tcp_len + tcp_opt_len; |