aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/e1000/e1000_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/e1000/e1000_main.c')
-rw-r--r--drivers/net/e1000/e1000_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/e1000/e1000_main.c b/drivers/net/e1000/e1000_main.c
index c4a303023b31..40db34deebde 100644
--- a/drivers/net/e1000/e1000_main.c
+++ b/drivers/net/e1000/e1000_main.c
@@ -2860,11 +2860,11 @@ static bool e1000_tx_csum(struct e1000_adapter *adapter,
2860 return false; 2860 return false;
2861 2861
2862 switch (skb->protocol) { 2862 switch (skb->protocol) {
2863 case __constant_htons(ETH_P_IP): 2863 case cpu_to_be16(ETH_P_IP):
2864 if (ip_hdr(skb)->protocol == IPPROTO_TCP) 2864 if (ip_hdr(skb)->protocol == IPPROTO_TCP)
2865 cmd_len |= E1000_TXD_CMD_TCP; 2865 cmd_len |= E1000_TXD_CMD_TCP;
2866 break; 2866 break;
2867 case __constant_htons(ETH_P_IPV6): 2867 case cpu_to_be16(ETH_P_IPV6):
2868 /* XXX not handling all IPV6 headers */ 2868 /* XXX not handling all IPV6 headers */
2869 if (ipv6_hdr(skb)->nexthdr == IPPROTO_TCP) 2869 if (ipv6_hdr(skb)->nexthdr == IPPROTO_TCP)
2870 cmd_len |= E1000_TXD_CMD_TCP; 2870 cmd_len |= E1000_TXD_CMD_TCP;