]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: defer fib_compute_spec_dst() call
authorEric Dumazet <edumazet@google.com>
Wed, 4 Jul 2012 22:30:09 +0000 (22:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Jul 2012 10:03:32 +0000 (03:03 -0700)
commit816c9240ce7249d62fcba9f3924c110ed4b4df93
tree7211c0114426ece185d27e3d7c637ecf354fba72
parentb77c2b07d985348773603e96838a7b3dd37d07fa
ipv4: defer fib_compute_spec_dst() call

ip_options_compile() can avoid calling fib_compute_spec_dst()
by default, and perform the call only if needed.

David suggested to add a helper to make the call only once.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_options.c