aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/enic
diff options
context:
space:
mode:
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 }