[NETNS]: Routing cache virtualization.
Basically, this piece looks relatively easy. Namespace is already available on the dst entry via device and the device is safe to dereferrence. Compare it with one of a searcher and skip entry if appropriate. The only exception is ip_rt_frag_needed. So, add namespace parameter to it. Signed-off-by: Denis V. Lunev <den@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
eee80592c3
commit
b5921910a1
@@ -696,7 +696,7 @@ static void icmp_unreach(struct sk_buff *skb)
|
||||
"and DF set.\n",
|
||||
NIPQUAD(iph->daddr));
|
||||
} else {
|
||||
info = ip_rt_frag_needed(iph,
|
||||
info = ip_rt_frag_needed(&init_net, iph,
|
||||
ntohs(icmph->un.frag.mtu));
|
||||
if (!info)
|
||||
goto out;
|
||||
|
Reference in New Issue
Block a user