Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 286707
b: refs/heads/master
c: a5a1195
h: refs/heads/master
i:
  286705: 9b2bb91
  286703: dc570ce
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Jan 23, 2012
1 parent 0aaeec8 commit a95a2f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: da057fb7d272c7e7609465a54bcac8ec8072ead5
refs/heads/master: a5a1195559f2e20bd975f58e50f53ebe84d5cca6
9 changes: 2 additions & 7 deletions trunk/drivers/net/ethernet/broadcom/tg3.c
Original file line number Diff line number Diff line change
Expand Up @@ -6667,14 +6667,9 @@ static netdev_tx_t tg3_start_xmit(struct sk_buff *skb, struct net_device *dev)
iph = ip_hdr(skb);
tcp_opt_len = tcp_optlen(skb);

if (skb_is_gso_v6(skb)) {
hdr_len = skb_headlen(skb) - ETH_HLEN;
} else {
u32 ip_tcp_len;

ip_tcp_len = ip_hdrlen(skb) + sizeof(struct tcphdr);
hdr_len = ip_tcp_len + tcp_opt_len;
hdr_len = skb_transport_offset(skb) + tcp_hdrlen(skb) - ETH_HLEN;

if (!skb_is_gso_v6(skb)) {
iph->check = 0;
iph->tot_len = htons(mss + hdr_len);
}
Expand Down

0 comments on commit a95a2f0

Please sign in to comment.