diff options
Diffstat (limited to 'drivers/net/igb/igb_main.c')
-rw-r--r-- | drivers/net/igb/igb_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/igb/igb_main.c b/drivers/net/igb/igb_main.c index bd166803671d..cd794bac8b80 100644 --- a/drivers/net/igb/igb_main.c +++ b/drivers/net/igb/igb_main.c | |||
@@ -2749,12 +2749,12 @@ static inline bool igb_tx_csum_adv(struct igb_adapter *adapter, | |||
2749 | 2749 | ||
2750 | if (skb->ip_summed == CHECKSUM_PARTIAL) { | 2750 | if (skb->ip_summed == CHECKSUM_PARTIAL) { |
2751 | switch (skb->protocol) { | 2751 | switch (skb->protocol) { |
2752 | case __constant_htons(ETH_P_IP): | 2752 | case cpu_to_be16(ETH_P_IP): |
2753 | tu_cmd |= E1000_ADVTXD_TUCMD_IPV4; | 2753 | tu_cmd |= E1000_ADVTXD_TUCMD_IPV4; |
2754 | if (ip_hdr(skb)->protocol == IPPROTO_TCP) | 2754 | if (ip_hdr(skb)->protocol == IPPROTO_TCP) |
2755 | tu_cmd |= E1000_ADVTXD_TUCMD_L4T_TCP; | 2755 | tu_cmd |= E1000_ADVTXD_TUCMD_L4T_TCP; |
2756 | break; | 2756 | break; |
2757 | case __constant_htons(ETH_P_IPV6): | 2757 | case cpu_to_be16(ETH_P_IPV6): |
2758 | /* XXX what about other V6 headers?? */ | 2758 | /* XXX what about other V6 headers?? */ |
2759 | if (ipv6_hdr(skb)->nexthdr == IPPROTO_TCP) | 2759 | if (ipv6_hdr(skb)->nexthdr == IPPROTO_TCP) |
2760 | tu_cmd |= E1000_ADVTXD_TUCMD_L4T_TCP; | 2760 | tu_cmd |= E1000_ADVTXD_TUCMD_L4T_TCP; |