Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 177164
b: refs/heads/master
c: ca55398
h: refs/heads/master
v: v3
  • Loading branch information
Gurucharan Shetty authored and David S. Miller committed Dec 16, 2009
1 parent 1489a11 commit ba202cf
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: 734e979f25a74e0d7da4ae0498ecac644db6377d
refs/heads/master: ca553980432898da5d4125573a9e2aee6ed5d355
13 changes: 12 additions & 1 deletion trunk/drivers/net/ixgbe/ixgbe_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -5006,7 +5006,18 @@ static bool ixgbe_tx_csum(struct ixgbe_adapter *adapter,
IXGBE_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):
type_tucmd_mlhl |= IXGBE_ADVTXD_TUCMD_IPV4;
if (ip_hdr(skb)->protocol == IPPROTO_TCP)
Expand Down

0 comments on commit ba202cf

Please sign in to comment.