]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: optimize route adding on secondary promotion
authorJulian Anastasov <ja@ssi.bg>
Sat, 19 Mar 2011 12:13:54 +0000 (12:13 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Mar 2011 08:06:33 +0000 (01:06 -0700)
commit48bbf4904a953d38f14b0f3a33c0b03d07906f56
treed14d770251f5b50d9647a662848c64bab034265a
parent417146b0977ead7aa2493f13a7222f12560fe1ad
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>
net/ipv4/devinet.c