Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[IPV4]: Make ip_tos2prio const.

Signed-off-by: Philippe De Muyter <phdm@macqel.be>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Philippe De Muyter and committed by
David S. Miller
4839c52b 6b25d30b

+2 -2
+1 -1
include/net/route.h
··· 135 135 136 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 140 static inline char rt_tos2priority(u8 tos) 141 141 {
+1 -1
net/ipv4/route.c
··· 167 167 168 168 #define ECN_OR_COST(class) TC_PRIO_##class 169 169 170 - __u8 ip_tos2prio[16] = { 170 + const __u8 ip_tos2prio[16] = { 171 171 TC_PRIO_BESTEFFORT, 172 172 ECN_OR_COST(FILLER), 173 173 TC_PRIO_BESTEFFORT,