Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 112227
b: refs/heads/master
c: a1efb4b
h: refs/heads/master
i:
  112225: 6f11c3c
  112223: 06ccbaf
v: v3
  • Loading branch information
Michael Chan authored and David S. Miller committed Oct 9, 2008
1 parent 5dc8c3a commit 10119b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 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: d5321e309c2fd1a1d534fc7bb674a1fff9f25d94
refs/heads/master: a1efb4b686babf38e5e63add8b990f18e38becc4
16 changes: 1 addition & 15 deletions trunk/drivers/net/bnx2.c
Original file line number Diff line number Diff line change
Expand Up @@ -6008,7 +6008,7 @@ bnx2_start_xmit(struct sk_buff *skb, struct net_device *dev)
}
#endif
if ((mss = skb_shinfo(skb)->gso_size)) {
u32 tcp_opt_len, ip_tcp_len;
u32 tcp_opt_len;
struct iphdr *iph;

vlan_tag_flags |= TX_BD_FLAGS_SW_LSO;
Expand All @@ -6032,21 +6032,7 @@ bnx2_start_xmit(struct sk_buff *skb, struct net_device *dev)
mss |= (tcp_off & 0xc) << TX_BD_TCP6_OFF2_SHL;
}
} else {
if (skb_header_cloned(skb) &&
pskb_expand_head(skb, 0, 0, GFP_ATOMIC)) {
dev_kfree_skb(skb);
return NETDEV_TX_OK;
}

ip_tcp_len = ip_hdrlen(skb) + sizeof(struct tcphdr);

iph = ip_hdr(skb);
iph->check = 0;
iph->tot_len = htons(mss + ip_tcp_len + tcp_opt_len);
tcp_hdr(skb)->check = ~csum_tcpudp_magic(iph->saddr,
iph->daddr, 0,
IPPROTO_TCP,
0);
if (tcp_opt_len || (iph->ihl > 5)) {
vlan_tag_flags |= ((iph->ihl - 5) +
(tcp_opt_len >> 2)) << 8;
Expand Down

0 comments on commit 10119b9

Please sign in to comment.