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)
commitbf5e53e3717ed28be69d0663c65962d1731e7ee4
tree7211c0114426ece185d27e3d7c637ecf354fba72
parent36bdbcae2fa2a6dfa99344d4190fcea0aa7b7c25
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