aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ixgbe/ixgbe_main.c
diff options
context:
space:
mode:
authorAl Viro <viro@ftp.linux.org.uk>2007-12-10 13:54:12 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:07:15 -0500
commit8327d000e092f737f7d6602258e5c7575686cc37 (patch)
tree259cb9df3fe6fc0eae293746d05cccde6500ce70 /drivers/net/ixgbe/ixgbe_main.c
parentaaf918ba8cf941a6aa7dc52c307470b48259a751 (diff)
ixgbe endianness annotations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/ixgbe/ixgbe_main.c')
-rw-r--r--drivers/net/ixgbe/ixgbe_main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c
index 28c0fac1fee..3732dd6c4b2 100644
--- a/drivers/net/ixgbe/ixgbe_main.c
+++ b/drivers/net/ixgbe/ixgbe_main.c
@@ -2106,7 +2106,7 @@ static int ixgbe_tso(struct ixgbe_adapter *adapter,
2106 l4len = tcp_hdrlen(skb); 2106 l4len = tcp_hdrlen(skb);
2107 *hdr_len += l4len; 2107 *hdr_len += l4len;
2108 2108
2109 if (skb->protocol == ntohs(ETH_P_IP)) { 2109 if (skb->protocol == htons(ETH_P_IP)) {
2110 struct iphdr *iph = ip_hdr(skb); 2110 struct iphdr *iph = ip_hdr(skb);
2111 iph->tot_len = 0; 2111 iph->tot_len = 0;
2112 iph->check = 0; 2112 iph->check = 0;
@@ -2147,7 +2147,7 @@ static int ixgbe_tso(struct ixgbe_adapter *adapter,
2147 type_tucmd_mlhl |= (IXGBE_TXD_CMD_DEXT | 2147 type_tucmd_mlhl |= (IXGBE_TXD_CMD_DEXT |
2148 IXGBE_ADVTXD_DTYP_CTXT); 2148 IXGBE_ADVTXD_DTYP_CTXT);
2149 2149
2150 if (skb->protocol == ntohs(ETH_P_IP)) 2150 if (skb->protocol == htons(ETH_P_IP))
2151 type_tucmd_mlhl |= IXGBE_ADVTXD_TUCMD_IPV4; 2151 type_tucmd_mlhl |= IXGBE_ADVTXD_TUCMD_IPV4;
2152 type_tucmd_mlhl |= IXGBE_ADVTXD_TUCMD_L4T_TCP; 2152 type_tucmd_mlhl |= IXGBE_ADVTXD_TUCMD_L4T_TCP;
2153 context_desc->type_tucmd_mlhl = cpu_to_le32(type_tucmd_mlhl); 2153 context_desc->type_tucmd_mlhl = cpu_to_le32(type_tucmd_mlhl);
@@ -2202,7 +2202,7 @@ static bool ixgbe_tx_csum(struct ixgbe_adapter *adapter,
2202 IXGBE_ADVTXD_DTYP_CTXT); 2202 IXGBE_ADVTXD_DTYP_CTXT);
2203 2203
2204 if (skb->ip_summed == CHECKSUM_PARTIAL) { 2204 if (skb->ip_summed == CHECKSUM_PARTIAL) {
2205 if (skb->protocol == ntohs(ETH_P_IP)) 2205 if (skb->protocol == htons(ETH_P_IP))
2206 type_tucmd_mlhl |= IXGBE_ADVTXD_TUCMD_IPV4; 2206 type_tucmd_mlhl |= IXGBE_ADVTXD_TUCMD_IPV4;
2207 2207
2208 if (skb->sk->sk_protocol == IPPROTO_TCP) 2208 if (skb->sk->sk_protocol == IPPROTO_TCP)
@@ -2402,7 +2402,7 @@ static int ixgbe_xmit_frame(struct sk_buff *skb, struct net_device *netdev)
2402 tx_flags |= (vlan_tx_tag_get(skb) << IXGBE_TX_FLAGS_VLAN_SHIFT); 2402 tx_flags |= (vlan_tx_tag_get(skb) << IXGBE_TX_FLAGS_VLAN_SHIFT);
2403 } 2403 }
2404 2404
2405 if (skb->protocol == ntohs(ETH_P_IP)) 2405 if (skb->protocol == htons(ETH_P_IP))
2406 tx_flags |= IXGBE_TX_FLAGS_IPV4; 2406 tx_flags |= IXGBE_TX_FLAGS_IPV4;
2407 first = tx_ring->next_to_use; 2407 first = tx_ring->next_to_use;
2408 tso = ixgbe_tso(adapter, tx_ring, skb, tx_flags, &hdr_len); 2408 tso = ixgbe_tso(adapter, tx_ring, skb, tx_flags, &hdr_len);