diff options
Diffstat (limited to 'net/core/dev.c')
-rw-r--r-- | net/core/dev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index f48d1b24f9ce..fdfc4b6a6448 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -1675,13 +1675,13 @@ static u16 simple_tx_hash(struct net_device *dev, struct sk_buff *skb) | |||
1675 | } | 1675 | } |
1676 | 1676 | ||
1677 | switch (skb->protocol) { | 1677 | switch (skb->protocol) { |
1678 | case __constant_htons(ETH_P_IP): | 1678 | case htons(ETH_P_IP): |
1679 | ip_proto = ip_hdr(skb)->protocol; | 1679 | ip_proto = ip_hdr(skb)->protocol; |
1680 | addr1 = ip_hdr(skb)->saddr; | 1680 | addr1 = ip_hdr(skb)->saddr; |
1681 | addr2 = ip_hdr(skb)->daddr; | 1681 | addr2 = ip_hdr(skb)->daddr; |
1682 | ihl = ip_hdr(skb)->ihl; | 1682 | ihl = ip_hdr(skb)->ihl; |
1683 | break; | 1683 | break; |
1684 | case __constant_htons(ETH_P_IPV6): | 1684 | case htons(ETH_P_IPV6): |
1685 | ip_proto = ipv6_hdr(skb)->nexthdr; | 1685 | ip_proto = ipv6_hdr(skb)->nexthdr; |
1686 | addr1 = ipv6_hdr(skb)->saddr.s6_addr32[3]; | 1686 | addr1 = ipv6_hdr(skb)->saddr.s6_addr32[3]; |
1687 | addr2 = ipv6_hdr(skb)->daddr.s6_addr32[3]; | 1687 | addr2 = ipv6_hdr(skb)->daddr.s6_addr32[3]; |