summaryrefslogtreecommitdiffstats
path: root/net/ipv4/fib_semantics.c
diff options
context:
space:
mode:
authorJulian Anastasov <ja@ssi.bg>2011-03-19 13:13:54 +0100
committerDavid S. Miller <davem@davemloft.net>2011-03-22 09:06:33 +0100
commit04024b937a6e9b7d4320b5853557cea3930d528c (patch)
treed14d770251f5b50d9647a662848c64bab034265a /net/ipv4/fib_semantics.c
parentipv4: remove the routes on secondary promotion (diff)
downloadlinux-04024b937a6e9b7d4320b5853557cea3930d528c.tar.xz
linux-04024b937a6e9b7d4320b5853557cea3930d528c.zip
ipv4: optimize route adding on secondary promotion
Optimize the calling of fib_add_ifaddr for all secondary addresses after the promoted one to start from their place, not from the new place of the promoted secondary. It will save some CPU cycles because we are sure the promoted secondary was first for the subnet and all next secondaries do not change their place. Signed-off-by: Julian Anastasov <ja@ssi.bg> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/fib_semantics.c')
0 files changed, 0 insertions, 0 deletions