Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135359
b: refs/heads/master
c: fa4a7ef
h: refs/heads/master
i:
  135357: 01dd402
  135355: 71fb00d
  135351: 33c7d20
  135343: 6f6a0a1
  135327: cb7d685
  135295: 0570e76
v: v3
  • Loading branch information
Arthur Jones authored and David S. Miller committed Mar 21, 2009
1 parent 58c2aa3 commit 994a6ee
Show file tree
Hide file tree
Showing 2 changed files with 13 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: 6e06cb626229567629e1dc6eed9399bec549f3cf
refs/heads/master: fa4a7ef36ec834fee1719636b30d2f28f4cb0166
13 changes: 12 additions & 1 deletion trunk/drivers/net/igb/igb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3008,7 +3008,18 @@ static inline bool igb_tx_csum_adv(struct igb_adapter *adapter,
tu_cmd |= (E1000_TXD_CMD_DEXT | E1000_ADVTXD_DTYP_CTXT);

if (skb->ip_summed == CHECKSUM_PARTIAL) {
switch (skb->protocol) {
__be16 protocol;

if (skb->protocol == cpu_to_be16(ETH_P_8021Q)) {
const struct vlan_ethhdr *vhdr =
(const struct vlan_ethhdr*)skb->data;

protocol = vhdr->h_vlan_encapsulated_proto;
} else {
protocol = skb->protocol;
}

switch (protocol) {
case cpu_to_be16(ETH_P_IP):
tu_cmd |= E1000_ADVTXD_TUCMD_IPV4;
if (ip_hdr(skb)->protocol == IPPROTO_TCP)
Expand Down

0 comments on commit 994a6ee

Please sign in to comment.