aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/sched/cls_rsvp.h2
-rw-r--r--net/sched/sch_api.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/net/sched/cls_rsvp.h b/net/sched/cls_rsvp.h
index 7853621a04cc..b6ac0e287872 100644
--- a/net/sched/cls_rsvp.h
+++ b/net/sched/cls_rsvp.h
@@ -160,7 +160,7 @@ restart:
160 dst = &nhptr->daddr; 160 dst = &nhptr->daddr;
161 protocol = nhptr->protocol; 161 protocol = nhptr->protocol;
162 xprt = ((u8*)nhptr) + (nhptr->ihl<<2); 162 xprt = ((u8*)nhptr) + (nhptr->ihl<<2);
163 if (nhptr->frag_off&__constant_htons(IP_MF|IP_OFFSET)) 163 if (nhptr->frag_off & htons(IP_MF|IP_OFFSET))
164 return -1; 164 return -1;
165#endif 165#endif
166 166
diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c
index ecc988af4a9a..4a927a5e1fa6 100644
--- a/net/sched/sch_api.c
+++ b/net/sched/sch_api.c
@@ -1146,7 +1146,7 @@ reclassify:
1146 1146
1147 for ( ; tp; tp = tp->next) { 1147 for ( ; tp; tp = tp->next) {
1148 if ((tp->protocol == protocol || 1148 if ((tp->protocol == protocol ||
1149 tp->protocol == __constant_htons(ETH_P_ALL)) && 1149 tp->protocol == htons(ETH_P_ALL)) &&
1150 (err = tp->classify(skb, tp, res)) >= 0) { 1150 (err = tp->classify(skb, tp, res)) >= 0) {
1151#ifdef CONFIG_NET_CLS_ACT 1151#ifdef CONFIG_NET_CLS_ACT
1152 if ( TC_ACT_RECLASSIFY == err) { 1152 if ( TC_ACT_RECLASSIFY == err) {