]> git.puffer.fish Git - mirror/frr.git/commit
ospfd: avoid redundant lookup in ospf_redistribute_withdraw
authorStephen Hemminger <shemminger@vyatta.com>
Tue, 6 Dec 2011 10:46:42 +0000 (14:46 +0400)
committerDenis Ovsienko <infrastation@yandex.ru>
Tue, 6 Dec 2011 11:02:52 +0000 (15:02 +0400)
commitfb01f87f4f50744206222343a780721af19fe56c
tree3c425d161ddac2a24c2c2fec91e3e794163a8ffd
parentb24b19f719fdd9c3d61a0c93552cd64d832d964c
ospfd: avoid redundant lookup in ospf_redistribute_withdraw

The old algorithim looked up every node twice as it withdrew
the entry. It looks up entry once in redistribute_withdraw, then
looks it up again info_delete. Use result of first lookup
to do the free directly.

This may explain the slow performance observed in
 https://bugzilla.vyatta.com/show_bug.cgi?id=4421
ospfd/ospf_asbr.c