net: ipv4: avoid repeated calls to ip_skb_dst_mtu helper
authorFlorian Westphal <fw@strlen.de>
Fri, 22 May 2015 14:32:50 +0000 (16:32 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 May 2015 17:03:30 +0000 (13:03 -0400)
commitc5501eb3406d0f88b3efb2c437c4c40b35f865d8
tree5ac451351462b0afb2a5d405a817b89e374afafe
parent8c0ce7705ee6ad5a98a715a6b8f0766433cb8388
net: ipv4: avoid repeated calls to ip_skb_dst_mtu helper

ip_skb_dst_mtu is small inline helper, but its called in several places.

before: 17061      44       0   17105    42d1 net/ipv4/ip_output.o
after:  16805      44       0   16849    41d1 net/ipv4/ip_output.o

Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_output.c