diff options
Diffstat (limited to 'drivers/net/ixgbe/ixgbe_main.c')
-rw-r--r-- | drivers/net/ixgbe/ixgbe_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c index fe4a4d17c4bc..88615f69976e 100644 --- a/drivers/net/ixgbe/ixgbe_main.c +++ b/drivers/net/ixgbe/ixgbe_main.c | |||
@@ -3567,13 +3567,13 @@ static bool ixgbe_tx_csum(struct ixgbe_adapter *adapter, | |||
3567 | 3567 | ||
3568 | if (skb->ip_summed == CHECKSUM_PARTIAL) { | 3568 | if (skb->ip_summed == CHECKSUM_PARTIAL) { |
3569 | switch (skb->protocol) { | 3569 | switch (skb->protocol) { |
3570 | case __constant_htons(ETH_P_IP): | 3570 | case cpu_to_be16(ETH_P_IP): |
3571 | type_tucmd_mlhl |= IXGBE_ADVTXD_TUCMD_IPV4; | 3571 | type_tucmd_mlhl |= IXGBE_ADVTXD_TUCMD_IPV4; |
3572 | if (ip_hdr(skb)->protocol == IPPROTO_TCP) | 3572 | if (ip_hdr(skb)->protocol == IPPROTO_TCP) |
3573 | type_tucmd_mlhl |= | 3573 | type_tucmd_mlhl |= |
3574 | IXGBE_ADVTXD_TUCMD_L4T_TCP; | 3574 | IXGBE_ADVTXD_TUCMD_L4T_TCP; |
3575 | break; | 3575 | break; |
3576 | case __constant_htons(ETH_P_IPV6): | 3576 | case cpu_to_be16(ETH_P_IPV6): |
3577 | /* XXX what about other V6 headers?? */ | 3577 | /* XXX what about other V6 headers?? */ |
3578 | if (ipv6_hdr(skb)->nexthdr == IPPROTO_TCP) | 3578 | if (ipv6_hdr(skb)->nexthdr == IPPROTO_TCP) |
3579 | type_tucmd_mlhl |= | 3579 | type_tucmd_mlhl |= |