void ip_tunnel_dst_reset_all(struct ip_tunnel *t)
{
	int i;

	for_each_possible_cpu(i)
		__tunnel_dst_set(per_cpu_ptr(t->dst_cache, i), NULL, 0);
}
static noinline void tunnel_dst_set(struct ip_tunnel *t,
			   struct dst_entry *dst, __be32 saddr)
{
	__tunnel_dst_set(raw_cpu_ptr(t->dst_cache), dst, saddr);
}
Exemplo n.º 3
0
static void tunnel_dst_set(struct ip_tunnel *t, struct dst_entry *dst)
{
    __tunnel_dst_set(this_cpu_ptr(t->dst_cache), dst);
}