aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/route.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/route.c')
-rw-r--r--net/ipv4/route.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c
index 6f6dd85bdffc..4c011ec69ed4 100644
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
@@ -1597,6 +1597,7 @@ static int __mkroute_input(struct sk_buff *skb,
1597 rth->rt_gateway = 0; 1597 rth->rt_gateway = 0;
1598 rth->rt_uses_gateway = 0; 1598 rth->rt_uses_gateway = 0;
1599 INIT_LIST_HEAD(&rth->rt_uncached); 1599 INIT_LIST_HEAD(&rth->rt_uncached);
1600 RT_CACHE_STAT_INC(in_slow_tot);
1600 1601
1601 rth->dst.input = ip_forward; 1602 rth->dst.input = ip_forward;
1602 rth->dst.output = ip_output; 1603 rth->dst.output = ip_output;
@@ -1701,8 +1702,6 @@ static int ip_route_input_slow(struct sk_buff *skb, __be32 daddr, __be32 saddr,
1701 goto no_route; 1702 goto no_route;
1702 } 1703 }
1703 1704
1704 RT_CACHE_STAT_INC(in_slow_tot);
1705
1706 if (res.type == RTN_BROADCAST) 1705 if (res.type == RTN_BROADCAST)
1707 goto brd_input; 1706 goto brd_input;
1708 1707
@@ -1773,6 +1772,7 @@ local_input:
1773 rth->rt_gateway = 0; 1772 rth->rt_gateway = 0;
1774 rth->rt_uses_gateway = 0; 1773 rth->rt_uses_gateway = 0;
1775 INIT_LIST_HEAD(&rth->rt_uncached); 1774 INIT_LIST_HEAD(&rth->rt_uncached);
1775 RT_CACHE_STAT_INC(in_slow_tot);
1776 if (res.type == RTN_UNREACHABLE) { 1776 if (res.type == RTN_UNREACHABLE) {
1777 rth->dst.input= ip_error; 1777 rth->dst.input= ip_error;
1778 rth->dst.error= -err; 1778 rth->dst.error= -err;