diff options
Diffstat (limited to 'net/sched/sch_sfq.c')
-rw-r--r-- | net/sched/sch_sfq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sched/sch_sfq.c b/net/sched/sch_sfq.c index 6e041d10dbdb..fe1508ef0d3d 100644 --- a/net/sched/sch_sfq.c +++ b/net/sched/sch_sfq.c | |||
@@ -119,7 +119,7 @@ static unsigned sfq_hash(struct sfq_sched_data *q, struct sk_buff *skb) | |||
119 | u32 h, h2; | 119 | u32 h, h2; |
120 | 120 | ||
121 | switch (skb->protocol) { | 121 | switch (skb->protocol) { |
122 | case __constant_htons(ETH_P_IP): | 122 | case htons(ETH_P_IP): |
123 | { | 123 | { |
124 | const struct iphdr *iph = ip_hdr(skb); | 124 | const struct iphdr *iph = ip_hdr(skb); |
125 | h = iph->daddr; | 125 | h = iph->daddr; |
@@ -134,7 +134,7 @@ static unsigned sfq_hash(struct sfq_sched_data *q, struct sk_buff *skb) | |||
134 | h2 ^= *(((u32*)iph) + iph->ihl); | 134 | h2 ^= *(((u32*)iph) + iph->ihl); |
135 | break; | 135 | break; |
136 | } | 136 | } |
137 | case __constant_htons(ETH_P_IPV6): | 137 | case htons(ETH_P_IPV6): |
138 | { | 138 | { |
139 | struct ipv6hdr *iph = ipv6_hdr(skb); | 139 | struct ipv6hdr *iph = ipv6_hdr(skb); |
140 | h = iph->daddr.s6_addr32[3]; | 140 | h = iph->daddr.s6_addr32[3]; |