diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2009-02-01 03:45:17 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-01 03:45:17 -0500 |
commit | 09640e6365c679b5642b1c41b6d7078f51689ddf (patch) | |
tree | a2b80c153bd23fe59db8c6994fda29923819fcea /drivers/net/e1000 | |
parent | ee437770c42088b9b653e8b3bf28a61fa647f84e (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/e1000')
-rw-r--r-- | drivers/net/e1000/e1000_main.c | 4 |
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; |