diff options
author | Philippe De Muyter <phdm@macqel.be> | 2007-07-09 18:32:57 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-07-11 01:19:04 -0400 |
commit | 4839c52b01ca91be1c62761e08fb3deb3881e857 (patch) | |
tree | 21bc1e568bc76b7556816d995fdf6b3304511eab | |
parent | 6b25d30bf112370a12d05c3c0fd43732985dab01 (diff) |
[IPV4]: Make ip_tos2prio const.
Signed-off-by: Philippe De Muyter <phdm@macqel.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/net/route.h | 2 | ||||
-rw-r--r-- | net/ipv4/route.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/net/route.h b/include/net/route.h index 188b8936bb27..f7ce6259f86f 100644 --- a/include/net/route.h +++ b/include/net/route.h | |||
@@ -135,7 +135,7 @@ static inline void ip_rt_put(struct rtable * rt) | |||
135 | 135 | ||
136 | #define IPTOS_RT_MASK (IPTOS_TOS_MASK & ~3) | 136 | #define IPTOS_RT_MASK (IPTOS_TOS_MASK & ~3) |
137 | 137 | ||
138 | extern __u8 ip_tos2prio[16]; | 138 | extern const __u8 ip_tos2prio[16]; |
139 | 139 | ||
140 | static inline char rt_tos2priority(u8 tos) | 140 | static inline char rt_tos2priority(u8 tos) |
141 | { | 141 | { |
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index 85285021518b..88fa648d7ba3 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c | |||
@@ -167,7 +167,7 @@ static struct dst_ops ipv4_dst_ops = { | |||
167 | 167 | ||
168 | #define ECN_OR_COST(class) TC_PRIO_##class | 168 | #define ECN_OR_COST(class) TC_PRIO_##class |
169 | 169 | ||
170 | __u8 ip_tos2prio[16] = { | 170 | const __u8 ip_tos2prio[16] = { |
171 | TC_PRIO_BESTEFFORT, | 171 | TC_PRIO_BESTEFFORT, |
172 | ECN_OR_COST(FILLER), | 172 | ECN_OR_COST(FILLER), |
173 | TC_PRIO_BESTEFFORT, | 173 | TC_PRIO_BESTEFFORT, |