]> 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)
commit8f48e8b7883686c729c3f97a0171857dfa9bbc8e
tree7211c0114426ece185d27e3d7c637ecf354fba72
parentb2de80fe34438169c6b8123218f1564aa1336643
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