diff options
Diffstat (limited to 'net/sched/cls_rsvp.h')
-rw-r--r-- | net/sched/cls_rsvp.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/net/sched/cls_rsvp.h b/net/sched/cls_rsvp.h index 6e230ecfba05..587b9adab38c 100644 --- a/net/sched/cls_rsvp.h +++ b/net/sched/cls_rsvp.h | |||
@@ -77,7 +77,7 @@ struct rsvp_head | |||
77 | struct rsvp_session | 77 | struct rsvp_session |
78 | { | 78 | { |
79 | struct rsvp_session *next; | 79 | struct rsvp_session *next; |
80 | u32 dst[RSVP_DST_LEN]; | 80 | __be32 dst[RSVP_DST_LEN]; |
81 | struct tc_rsvp_gpi dpi; | 81 | struct tc_rsvp_gpi dpi; |
82 | u8 protocol; | 82 | u8 protocol; |
83 | u8 tunnelid; | 83 | u8 tunnelid; |
@@ -89,7 +89,7 @@ struct rsvp_session | |||
89 | struct rsvp_filter | 89 | struct rsvp_filter |
90 | { | 90 | { |
91 | struct rsvp_filter *next; | 91 | struct rsvp_filter *next; |
92 | u32 src[RSVP_DST_LEN]; | 92 | __be32 src[RSVP_DST_LEN]; |
93 | struct tc_rsvp_gpi spi; | 93 | struct tc_rsvp_gpi spi; |
94 | u8 tunnelhdr; | 94 | u8 tunnelhdr; |
95 | 95 | ||
@@ -100,17 +100,17 @@ struct rsvp_filter | |||
100 | struct rsvp_session *sess; | 100 | struct rsvp_session *sess; |
101 | }; | 101 | }; |
102 | 102 | ||
103 | static __inline__ unsigned hash_dst(u32 *dst, u8 protocol, u8 tunnelid) | 103 | static __inline__ unsigned hash_dst(__be32 *dst, u8 protocol, u8 tunnelid) |
104 | { | 104 | { |
105 | unsigned h = dst[RSVP_DST_LEN-1]; | 105 | unsigned h = (__force __u32)dst[RSVP_DST_LEN-1]; |
106 | h ^= h>>16; | 106 | h ^= h>>16; |
107 | h ^= h>>8; | 107 | h ^= h>>8; |
108 | return (h ^ protocol ^ tunnelid) & 0xFF; | 108 | return (h ^ protocol ^ tunnelid) & 0xFF; |
109 | } | 109 | } |
110 | 110 | ||
111 | static __inline__ unsigned hash_src(u32 *src) | 111 | static __inline__ unsigned hash_src(__be32 *src) |
112 | { | 112 | { |
113 | unsigned h = src[RSVP_DST_LEN-1]; | 113 | unsigned h = (__force __u32)src[RSVP_DST_LEN-1]; |
114 | h ^= h>>16; | 114 | h ^= h>>16; |
115 | h ^= h>>8; | 115 | h ^= h>>8; |
116 | h ^= h>>4; | 116 | h ^= h>>4; |
@@ -138,7 +138,7 @@ static int rsvp_classify(struct sk_buff *skb, struct tcf_proto *tp, | |||
138 | struct rsvp_session *s; | 138 | struct rsvp_session *s; |
139 | struct rsvp_filter *f; | 139 | struct rsvp_filter *f; |
140 | unsigned h1, h2; | 140 | unsigned h1, h2; |
141 | u32 *dst, *src; | 141 | __be32 *dst, *src; |
142 | u8 protocol; | 142 | u8 protocol; |
143 | u8 tunnelid = 0; | 143 | u8 tunnelid = 0; |
144 | u8 *xprt; | 144 | u8 *xprt; |
@@ -410,7 +410,7 @@ static int rsvp_change(struct tcf_proto *tp, unsigned long base, | |||
410 | struct rtattr *tb[TCA_RSVP_MAX]; | 410 | struct rtattr *tb[TCA_RSVP_MAX]; |
411 | struct tcf_exts e; | 411 | struct tcf_exts e; |
412 | unsigned h1, h2; | 412 | unsigned h1, h2; |
413 | u32 *dst; | 413 | __be32 *dst; |
414 | int err; | 414 | int err; |
415 | 415 | ||
416 | if (opt == NULL) | 416 | if (opt == NULL) |