/net/core/ |
D | dst_cache.c | 27 static void dst_cache_per_cpu_dst_set(struct dst_cache_pcpu *dst_cache, in dst_cache_per_cpu_dst_set() argument 30 dst_release(dst_cache->dst); in dst_cache_per_cpu_dst_set() 34 dst_cache->cookie = cookie; in dst_cache_per_cpu_dst_set() 35 dst_cache->dst = dst; in dst_cache_per_cpu_dst_set() 38 static struct dst_entry *dst_cache_per_cpu_get(struct dst_cache *dst_cache, in dst_cache_per_cpu_get() argument 50 if (unlikely(!time_after(idst->refresh_ts, dst_cache->reset_ts) || in dst_cache_per_cpu_get() 63 struct dst_entry *dst_cache_get(struct dst_cache *dst_cache) in dst_cache_get() argument 65 if (!dst_cache->cache) in dst_cache_get() 68 return dst_cache_per_cpu_get(dst_cache, this_cpu_ptr(dst_cache->cache)); in dst_cache_get() 72 struct rtable *dst_cache_get_ip4(struct dst_cache *dst_cache, __be32 *saddr) in dst_cache_get_ip4() argument [all …]
|
D | dst.c | 294 dst_cache_destroy(&md_dst->u.tun_info.dst_cache); in metadata_dst_free() 327 dst_cache_destroy(&one_md_dst->u.tun_info.dst_cache); in metadata_dst_free_percpu()
|
D | Makefile | 32 obj-$(CONFIG_DST_CACHE) += dst_cache.o
|
/net/ipv6/ila/ |
D | ila_lwt.c | 21 struct dst_cache dst_cache; member 61 dst = dst_cache_get(&ilwt->dst_cache); in ila_output() 90 dst_cache_set_ip6(&ilwt->dst_cache, dst, &fl6.saddr); in ila_output() 224 ret = dst_cache_init(&ilwt->dst_cache, GFP_ATOMIC); in ila_build_state() 259 dst_cache_destroy(&ila_lwt_lwtunnel(lwt)->dst_cache); in ila_destroy_state()
|
/net/tipc/ |
D | udp_media.c | 79 struct dst_cache dst_cache; member 162 struct udp_media_addr *dst, struct dst_cache *cache) in tipc_udp_xmit() 245 &ub->rcast.dst_cache); in tipc_udp_send_msg() 258 &rcast->dst_cache); in tipc_udp_send_msg() 302 if (dst_cache_init(&rcast->dst_cache, GFP_ATOMIC)) { in tipc_udp_rcast_add() 763 err = dst_cache_init(&ub->rcast.dst_cache, GFP_ATOMIC); in tipc_udp_enable() 782 dst_cache_destroy(&ub->rcast.dst_cache); in tipc_udp_enable() 796 dst_cache_destroy(&rcast->dst_cache); in cleanup_bearer() 801 dst_cache_destroy(&ub->rcast.dst_cache); in cleanup_bearer()
|
/net/ipv4/ |
D | ip_tunnel.c | 310 dst_cache_reset(&tunnel->dst_cache); in ip_tunnel_bind_dev() 583 rt = dst_cache_get_ip4(&tun_info->dst_cache, &fl4.saddr); in ip_md_tunnel_xmit() 591 dst_cache_set_ip4(&tun_info->dst_cache, &rt->dst, in ip_md_tunnel_xmit() 745 rt = dst_cache_get_ip4(&tun_info->dst_cache, in ip_tunnel_xmit() 748 rt = connected ? dst_cache_get_ip4(&tunnel->dst_cache, in ip_tunnel_xmit() 760 dst_cache_set_ip4(&tun_info->dst_cache, &rt->dst, in ip_tunnel_xmit() 763 dst_cache_set_ip4(&tunnel->dst_cache, &rt->dst, in ip_tunnel_xmit() 863 dst_cache_reset(&t->dst_cache); in ip_tunnel_update() 1001 dst_cache_destroy(&tunnel->dst_cache); in ip_tunnel_dev_free() 1220 err = dst_cache_init(&tunnel->dst_cache, GFP_KERNEL); in ip_tunnel_init() [all …]
|
D | ip_tunnel_core.c | 246 err = dst_cache_init(&tun_info->dst_cache, GFP_KERNEL); in ip_tun_build_state() 284 dst_cache_destroy(&tun_info->dst_cache); in ip_tun_destroy_state()
|
/net/netfilter/ |
D | nf_flow_table_core.c | 57 ft->dst_cache = dst; in flow_offload_fill_dir() 157 dst_release(flow->tuplehash[FLOW_OFFLOAD_DIR_ORIGINAL].tuple.dst_cache); in flow_offload_free() 158 dst_release(flow->tuplehash[FLOW_OFFLOAD_DIR_REPLY].tuple.dst_cache); in flow_offload_free()
|
D | nf_flow_table_ip.c | 262 rt = (struct rtable *)flow->tuplehash[dir].tuple.dst_cache; in nf_flow_offload_ip_hook() 491 rt = (struct rt6_info *)flow->tuplehash[dir].tuple.dst_cache; in nf_flow_offload_ipv6_hook()
|
D | nft_tunnel.c | 414 err = dst_cache_init(&md->u.tun_info.dst_cache, GFP_KERNEL); in nft_tunnel_obj_init()
|
/net/ipv6/ |
D | sit.c | 482 dst_cache_reset(&tunnel->dst_cache); in ipip6_tunnel_uninit() 904 rt = dst_cache_get_ip4(&tunnel->dst_cache, &fl4.saddr); in ipip6_tunnel_xmit() 911 dst_cache_set_ip4(&tunnel->dst_cache, &rt->dst, fl4.saddr); in ipip6_tunnel_xmit() 1119 dst_cache_reset(&t->dst_cache); in ipip6_tunnel_update() 1150 dst_cache_reset(&t->dst_cache); in ipip6_tunnel_update_6rd() 1312 dst_cache_reset(&t->dst_cache); in ipip6_tunnel_ioctl() 1361 dst_cache_destroy(&tunnel->dst_cache); in ipip6_dev_free() 1407 err = dst_cache_init(&tunnel->dst_cache, GFP_KERNEL); in ipip6_tunnel_init()
|
D | ip6_gre.c | 405 dst_cache_reset(&t->dst_cache); in ip6erspan_tunnel_uninit() 416 dst_cache_reset(&t->dst_cache); in ip6gre_tunnel_uninit() 1176 dst_cache_reset(&t->dst_cache); in ip6gre_tnl_copy_tnl_parm() 1387 dst_cache_destroy(&t->dst_cache); in ip6gre_dev_free() 1453 ret = dst_cache_init(&tunnel->dst_cache, GFP_KERNEL); in ip6gre_tunnel_init_common() 1476 dst_cache_destroy(&tunnel->dst_cache); in ip6gre_tunnel_init_common() 1847 ret = dst_cache_init(&tunnel->dst_cache, GFP_KERNEL); in ip6erspan_tap_init() 1868 dst_cache_destroy(&tunnel->dst_cache); in ip6erspan_tap_init()
|
D | ip6_tunnel.c | 250 dst_cache_destroy(&t->dst_cache); in ip6_dev_free() 385 dst_cache_reset(&t->dst_cache); in ip6_tnl_dev_uninit() 1092 dst = dst_cache_get(&t->dst_cache); in ip6_tnl_xmit() 1179 dst_cache_set_ip6(&t->dst_cache, ndst, &fl6->saddr); in ip6_tnl_xmit() 1500 dst_cache_reset(&t->dst_cache); in ip6_tnl_change() 1836 ret = dst_cache_init(&t->dst_cache, GFP_KERNEL); in ip6_tnl_dev_init_gen() 1859 dst_cache_destroy(&t->dst_cache); in ip6_tnl_dev_init_gen()
|
D | seg6_iptunnel.c | 31 struct dst_cache cache;
|
D | ip6_vti.c | 685 dst_cache_reset(&t->dst_cache); in vti6_tnl_change()
|
/net/netfilter/ipvs/ |
D | ip_vs_xmit.c | 82 dest_dst->dst_cache = dst; in __ip_vs_dst_set() 99 dst = dest_dst->dst_cache; in __ip_vs_dst_check() 321 rt = (struct rtable *) dest_dst->dst_cache; in __ip_vs_get_out_rt() 487 rt = (struct rt6_info *) dest_dst->dst_cache; in __ip_vs_get_out_rt_v6()
|
D | ip_vs_ctl.c | 704 dst_release(dest_dst->dst_cache); in ip_vs_dest_dst_rcu_free() 1630 if (dest_dst && dest_dst->dst_cache->dev == dev) { in ip_vs_forget_dev()
|
D | ip_vs_core.c | 1829 mtu = dst_mtu(dest_dst->dst_cache); in ip_vs_in_icmp()
|
/net/sched/ |
D | act_tunnel_key.c | 332 ret = dst_cache_init(&metadata->u.tun_info.dst_cache, GFP_KERNEL); in tunnel_key_init()
|
/net/openvswitch/ |
D | flow_netlink.c | 2601 err = dst_cache_init(&tun_dst->u.tun_info.dst_cache, GFP_KERNEL); in validate_and_copy_set_tun()
|