[NET]: Add const markers to various variables.
the patch below marks various variables const in net/; the goal is to move them to the .rodata section so that they can't false-share cachelines with things that get written to, as well as potentially helping gcc a bit with optimisations. (these were found using a gcc patch to warn about such variables) Signed-off-by: Arjan van de Ven <arjan@infradead.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
fb29644994
commit
9b5b5cff9a
@ -1371,7 +1371,7 @@ out: kfree_skb(skb);
|
||||
* are needed for AMPRnet AX.25 paths.
|
||||
*/
|
||||
|
||||
static unsigned short mtu_plateau[] =
|
||||
static const unsigned short mtu_plateau[] =
|
||||
{32000, 17914, 8166, 4352, 2002, 1492, 576, 296, 216, 128 };
|
||||
|
||||
static __inline__ unsigned short guess_mtu(unsigned short old_mtu)
|
||||
|
Reference in New Issue
Block a user