Skip to content

Commit

Permalink
[IPV4]: Make ip_tos2prio const.
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe De Muyter <phdm@macqel.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Philippe De Muyter authored and David S. Miller committed Jul 11, 2007
1 parent 6b25d30 commit 4839c52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/net/route.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ static inline void ip_rt_put(struct rtable * rt)

#define IPTOS_RT_MASK (IPTOS_TOS_MASK & ~3)

extern __u8 ip_tos2prio[16];
extern const __u8 ip_tos2prio[16];

static inline char rt_tos2priority(u8 tos)
{
Expand Down
2 changes: 1 addition & 1 deletion net/ipv4/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ static struct dst_ops ipv4_dst_ops = {

#define ECN_OR_COST(class) TC_PRIO_##class

__u8 ip_tos2prio[16] = {
const __u8 ip_tos2prio[16] = {
TC_PRIO_BESTEFFORT,
ECN_OR_COST(FILLER),
TC_PRIO_BESTEFFORT,
Expand Down

0 comments on commit 4839c52

Please sign in to comment.