aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/igb/igb_main.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/igb/igb_main.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/igb/igb_main.c')
-rw-r--r--drivers/net/igb/igb_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/igb/igb_main.c b/drivers/net/igb/igb_main.c
index bd166803671d..cd794bac8b80 100644
--- a/drivers/net/igb/igb_main.c
+++ b/drivers/net/igb/igb_main.c
@@ -2749,12 +2749,12 @@ static inline bool igb_tx_csum_adv(struct igb_adapter *adapter,
2749 2749
2750 if (skb->ip_summed == CHECKSUM_PARTIAL) { 2750 if (skb->ip_summed == CHECKSUM_PARTIAL) {
2751 switch (skb->protocol) { 2751 switch (skb->protocol) {
2752 case __constant_htons(ETH_P_IP): 2752 case cpu_to_be16(ETH_P_IP):
2753 tu_cmd |= E1000_ADVTXD_TUCMD_IPV4; 2753 tu_cmd |= E1000_ADVTXD_TUCMD_IPV4;
2754 if (ip_hdr(skb)->protocol == IPPROTO_TCP) 2754 if (ip_hdr(skb)->protocol == IPPROTO_TCP)
2755 tu_cmd |= E1000_ADVTXD_TUCMD_L4T_TCP; 2755 tu_cmd |= E1000_ADVTXD_TUCMD_L4T_TCP;
2756 break; 2756 break;
2757 case __constant_htons(ETH_P_IPV6): 2757 case cpu_to_be16(ETH_P_IPV6):
2758 /* XXX what about other V6 headers?? */ 2758 /* XXX what about other V6 headers?? */
2759 if (ipv6_hdr(skb)->nexthdr == IPPROTO_TCP) 2759 if (ipv6_hdr(skb)->nexthdr == IPPROTO_TCP)
2760 tu_cmd |= E1000_ADVTXD_TUCMD_L4T_TCP; 2760 tu_cmd |= E1000_ADVTXD_TUCMD_L4T_TCP;