aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/e1000e/netdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/e1000e/netdev.c')
-rw-r--r--drivers/net/e1000e/netdev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/e1000e/netdev.c b/drivers/net/e1000e/netdev.c
index e04b392c9a59..c425b19e3362 100644
--- a/drivers/net/e1000e/netdev.c
+++ b/drivers/net/e1000e/netdev.c
@@ -3770,11 +3770,11 @@ static bool e1000_tx_csum(struct e1000_adapter *adapter, struct sk_buff *skb)
3770 return 0; 3770 return 0;
3771 3771
3772 switch (skb->protocol) { 3772 switch (skb->protocol) {
3773 case __constant_htons(ETH_P_IP): 3773 case cpu_to_be16(ETH_P_IP):
3774 if (ip_hdr(skb)->protocol == IPPROTO_TCP) 3774 if (ip_hdr(skb)->protocol == IPPROTO_TCP)
3775 cmd_len |= E1000_TXD_CMD_TCP; 3775 cmd_len |= E1000_TXD_CMD_TCP;
3776 break; 3776 break;
3777 case __constant_htons(ETH_P_IPV6): 3777 case cpu_to_be16(ETH_P_IPV6):
3778 /* XXX not handling all IPV6 headers */ 3778 /* XXX not handling all IPV6 headers */
3779 if (ipv6_hdr(skb)->nexthdr == IPPROTO_TCP) 3779 if (ipv6_hdr(skb)->nexthdr == IPPROTO_TCP)
3780 cmd_len |= E1000_TXD_CMD_TCP; 3780 cmd_len |= E1000_TXD_CMD_TCP;