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>
This commit is contained in:
parent
89aef8921b
commit
38a424e465
6 changed files with 12 additions and 24 deletions
|
@ -1620,8 +1620,8 @@ martian_source_keep_err:
|
|||
goto out;
|
||||
}
|
||||
|
||||
int ip_route_input_common(struct sk_buff *skb, __be32 daddr, __be32 saddr,
|
||||
u8 tos, struct net_device *dev, bool noref)
|
||||
int ip_route_input(struct sk_buff *skb, __be32 daddr, __be32 saddr,
|
||||
u8 tos, struct net_device *dev)
|
||||
{
|
||||
int res;
|
||||
|
||||
|
@ -1664,7 +1664,7 @@ int ip_route_input_common(struct sk_buff *skb, __be32 daddr, __be32 saddr,
|
|||
rcu_read_unlock();
|
||||
return res;
|
||||
}
|
||||
EXPORT_SYMBOL(ip_route_input_common);
|
||||
EXPORT_SYMBOL(ip_route_input);
|
||||
|
||||
/* called with rcu_read_lock() */
|
||||
static struct rtable *__mkroute_output(const struct fib_result *res,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue