Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135304
b: refs/heads/master
c: 5f66f20
h: refs/heads/master
v: v3
  • Loading branch information
Arthur Jones authored and David S. Miller committed Mar 20, 2009
1 parent d7fe8bb commit f20c244
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 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: 1b7719c4559dc1522065d4cfd033f8bb8f969159
refs/heads/master: 5f66f208064f083aab5e55935d0575892e033b59
9 changes: 8 additions & 1 deletion trunk/drivers/net/e1000e/netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -3764,10 +3764,16 @@ static bool e1000_tx_csum(struct e1000_adapter *adapter, struct sk_buff *skb)
unsigned int i;
u8 css;
u32 cmd_len = E1000_TXD_CMD_DEXT;
__be16 protocol;

if (skb->ip_summed != CHECKSUM_PARTIAL)
return 0;

if (skb->protocol == cpu_to_be16(ETH_P_8021Q))
protocol = vlan_eth_hdr(skb)->h_vlan_encapsulated_proto;
else
protocol = skb->protocol;

switch (skb->protocol) {
case cpu_to_be16(ETH_P_IP):
if (ip_hdr(skb)->protocol == IPPROTO_TCP)
Expand All @@ -3780,7 +3786,8 @@ static bool e1000_tx_csum(struct e1000_adapter *adapter, struct sk_buff *skb)
break;
default:
if (unlikely(net_ratelimit()))
e_warn("checksum_partial proto=%x!\n", skb->protocol);
e_warn("checksum_partial proto=%x!\n",
be16_to_cpu(protocol));
break;
}

Expand Down

0 comments on commit f20c244

Please sign in to comment.