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/ixgbe | |
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/ixgbe')
-rw-r--r-- | drivers/net/ixgbe/ixgbe_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c index fe4a4d17c4bc..88615f69976e 100644 --- a/drivers/net/ixgbe/ixgbe_main.c +++ b/drivers/net/ixgbe/ixgbe_main.c | |||
@@ -3567,13 +3567,13 @@ static bool ixgbe_tx_csum(struct ixgbe_adapter *adapter, | |||
3567 | 3567 | ||
3568 | if (skb->ip_summed == CHECKSUM_PARTIAL) { | 3568 | if (skb->ip_summed == CHECKSUM_PARTIAL) { |
3569 | switch (skb->protocol) { | 3569 | switch (skb->protocol) { |
3570 | case __constant_htons(ETH_P_IP): | 3570 | case cpu_to_be16(ETH_P_IP): |
3571 | type_tucmd_mlhl |= IXGBE_ADVTXD_TUCMD_IPV4; | 3571 | type_tucmd_mlhl |= IXGBE_ADVTXD_TUCMD_IPV4; |
3572 | if (ip_hdr(skb)->protocol == IPPROTO_TCP) | 3572 | if (ip_hdr(skb)->protocol == IPPROTO_TCP) |
3573 | type_tucmd_mlhl |= | 3573 | type_tucmd_mlhl |= |
3574 | IXGBE_ADVTXD_TUCMD_L4T_TCP; | 3574 | IXGBE_ADVTXD_TUCMD_L4T_TCP; |
3575 | break; | 3575 | break; |
3576 | case __constant_htons(ETH_P_IPV6): | 3576 | case cpu_to_be16(ETH_P_IPV6): |
3577 | /* XXX what about other V6 headers?? */ | 3577 | /* XXX what about other V6 headers?? */ |
3578 | if (ipv6_hdr(skb)->nexthdr == IPPROTO_TCP) | 3578 | if (ipv6_hdr(skb)->nexthdr == IPPROTO_TCP) |
3579 | type_tucmd_mlhl |= | 3579 | type_tucmd_mlhl |= |