aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/e1000e/netdev.c
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2009-02-01 03:45:17 -0500
committerDavid S. Miller <davem@davemloft.net>2009-02-01 03:45:17 -0500
commit09640e6365c679b5642b1c41b6d7078f51689ddf (patch)
treea2b80c153bd23fe59db8c6994fda29923819fcea /drivers/net/e1000e/netdev.c
parentee437770c42088b9b653e8b3bf28a61fa647f84e (diff)
net: replace uses of __constant_{endian}
Base versions handle constant folding now. Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
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;