aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/enic
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/enic
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/enic')
-rw-r--r--drivers/net/enic/enic_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c
index 4617956821cd..5dd11563553e 100644
--- a/drivers/net/enic/enic_main.c
+++ b/drivers/net/enic/enic_main.c
@@ -570,11 +570,11 @@ static inline void enic_queue_wq_skb_tso(struct enic *enic,
570 * to each TCP segment resulting from the TSO. 570 * to each TCP segment resulting from the TSO.
571 */ 571 */
572 572
573 if (skb->protocol == __constant_htons(ETH_P_IP)) { 573 if (skb->protocol == cpu_to_be16(ETH_P_IP)) {
574 ip_hdr(skb)->check = 0; 574 ip_hdr(skb)->check = 0;
575 tcp_hdr(skb)->check = ~csum_tcpudp_magic(ip_hdr(skb)->saddr, 575 tcp_hdr(skb)->check = ~csum_tcpudp_magic(ip_hdr(skb)->saddr,
576 ip_hdr(skb)->daddr, 0, IPPROTO_TCP, 0); 576 ip_hdr(skb)->daddr, 0, IPPROTO_TCP, 0);
577 } else if (skb->protocol == __constant_htons(ETH_P_IPV6)) { 577 } else if (skb->protocol == cpu_to_be16(ETH_P_IPV6)) {
578 tcp_hdr(skb)->check = ~csum_ipv6_magic(&ipv6_hdr(skb)->saddr, 578 tcp_hdr(skb)->check = ~csum_ipv6_magic(&ipv6_hdr(skb)->saddr,
579 &ipv6_hdr(skb)->daddr, 0, IPPROTO_TCP, 0); 579 &ipv6_hdr(skb)->daddr, 0, IPPROTO_TCP, 0);
580 } 580 }