aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/ip_input.c
diff options
context:
space:
mode:
authorDavid Miller <davem@davemloft.net>2012-07-01 02:02:53 +0000
committerDavid S. Miller <davem@davemloft.net>2012-07-20 13:30:59 -0700
commit38a424e4657462fe9f8b76f01a0e879abde99ab4 (patch)
tree3e5df29e768eb1fff1f9ebbc5cf7538d798a5535 /net/ipv4/ip_input.c
parentipv4: Delete routing cache. (diff)
downloadlinux-dev-38a424e4657462fe9f8b76f01a0e879abde99ab4.tar.xz
linux-dev-38a424e4657462fe9f8b76f01a0e879abde99ab4.zip
ipv4: Kill ip_route_input_noref().
The "noref" argument to ip_route_input_common() is now always ignored because we do not cache routes, and in that case we must always grab a reference to the resulting 'dst'. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ip_input.c')
-rw-r--r--net/ipv4/ip_input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/ip_input.c b/net/ipv4/ip_input.c
index b27d4440f523..4ebc6feee250 100644
--- a/net/ipv4/ip_input.c
+++ b/net/ipv4/ip_input.c
@@ -336,8 +336,8 @@ static int ip_rcv_finish(struct sk_buff *skb)
* how the packet travels inside Linux networking.
*/
if (!skb_dst(skb)) {
- int err = ip_route_input_noref(skb, iph->daddr, iph->saddr,
- iph->tos, skb->dev);
+ int err = ip_route_input(skb, iph->daddr, iph->saddr,
+ iph->tos, skb->dev);
if (unlikely(err)) {
if (err == -EXDEV)
NET_INC_STATS_BH(dev_net(skb->dev),