| /net/core/ |
| A D | dst_cache.c | 37 dst_cache->dst = dst; in dst_cache_per_cpu_dst_set() 40 static struct dst_entry *dst_cache_per_cpu_get(struct dst_cache *dst_cache, in dst_cache_per_cpu_get() argument 67 struct dst_entry *dst_cache_get(struct dst_cache *dst_cache) in dst_cache_get() argument 75 dst = dst_cache_per_cpu_get(dst_cache, this_cpu_ptr(dst_cache->cache)); in dst_cache_get() 81 struct rtable *dst_cache_get_ip4(struct dst_cache *dst_cache, __be32 *saddr) in dst_cache_get_ip4() argument 103 void dst_cache_set_ip4(struct dst_cache *dst_cache, struct dst_entry *dst, in dst_cache_set_ip4() argument 120 void dst_cache_set_ip6(struct dst_cache *dst_cache, struct dst_entry *dst, in dst_cache_set_ip6() argument 138 struct dst_entry *dst_cache_get_ip6(struct dst_cache *dst_cache, in dst_cache_get_ip6() argument 163 int dst_cache_init(struct dst_cache *dst_cache, gfp_t gfp) in dst_cache_init() argument 179 void dst_cache_destroy(struct dst_cache *dst_cache) in dst_cache_destroy() argument [all …]
|
| A D | dst.c | 173 dst_cache_reset_now(&md_dst->u.tun_info.dst_cache); in dst_release() 312 dst_cache_destroy(&md_dst->u.tun_info.dst_cache); in metadata_dst_free() 348 dst_cache_destroy(&one_md_dst->u.tun_info.dst_cache); in metadata_dst_free_percpu()
|
| A D | Makefile | 38 obj-$(CONFIG_DST_CACHE) += dst_cache.o
|
| /net/ipv6/ |
| A D | ip6_udp_tunnel.c | 143 struct dst_cache *dst_cache) in udp_tunnel6_dst_lookup() argument 149 if (dst_cache) { in udp_tunnel6_dst_lookup() 150 dst = dst_cache_get_ip6(dst_cache, saddr); in udp_tunnel6_dst_lookup() 177 if (dst_cache) in udp_tunnel6_dst_lookup() 178 dst_cache_set_ip6(dst_cache, dst, &fl6.saddr); in udp_tunnel6_dst_lookup()
|
| A D | sit.c | 481 dst_cache_reset(&t->dst_cache); in ipip6_tunnel_prl_ctl() 524 dst_cache_reset(&tunnel->dst_cache); in ipip6_tunnel_uninit() 944 rt = dst_cache_get_ip4(&tunnel->dst_cache, &fl4.saddr); in ipip6_tunnel_xmit() 951 dst_cache_set_ip4(&tunnel->dst_cache, &rt->dst, fl4.saddr); in ipip6_tunnel_xmit() 1163 dst_cache_reset(&t->dst_cache); in ipip6_tunnel_update() 1194 dst_cache_reset(&t->dst_cache); in ipip6_tunnel_update_6rd() 1414 dst_cache_destroy(&tunnel->dst_cache); in ipip6_dev_free() 1457 err = dst_cache_init(&tunnel->dst_cache, GFP_KERNEL); in ipip6_tunnel_init()
|
| A D | ip6_gre.c | 369 dst_cache_reset(&t->dst_cache); in ip6erspan_tunnel_uninit() 382 dst_cache_reset(&t->dst_cache); in ip6gre_tunnel_uninit() 1205 dst_cache_reset(&t->dst_cache); in ip6gre_tnl_copy_tnl_parm() 1416 dst_cache_destroy(&t->dst_cache); in ip6gre_dev_free() 1474 ret = dst_cache_init(&tunnel->dst_cache, GFP_KERNEL); in ip6gre_tunnel_init_common() 1499 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() 1870 dst_cache_destroy(&tunnel->dst_cache); in ip6erspan_tap_init()
|
| A D | ip6_tunnel.c | 251 dst_cache_destroy(&t->dst_cache); in ip6_dev_free() 383 dst_cache_reset(&t->dst_cache); in ip6_tnl_dev_uninit() 1155 dst = dst_cache_get(&t->dst_cache); in ip6_tnl_xmit() 1242 dst_cache_set_ip6(&t->dst_cache, ndst, &fl6->saddr); in ip6_tnl_xmit() 1549 dst_cache_reset(&t->dst_cache); in ip6_tnl_change() 1893 ret = dst_cache_init(&t->dst_cache, GFP_KERNEL); in ip6_tnl_dev_init_gen() 1917 dst_cache_destroy(&t->dst_cache); in ip6_tnl_dev_init_gen()
|
| A D | rpl_iptunnel.c | 20 struct dst_cache cache;
|
| A D | ioam6_iptunnel.c | 42 struct dst_cache cache;
|
| A D | seg6_iptunnel.c | 51 struct dst_cache cache;
|
| A D | ip6_vti.c | 717 dst_cache_reset(&t->dst_cache); in vti6_tnl_change()
|
| /net/ipv6/ila/ |
| A D | ila_lwt.c | 21 struct dst_cache dst_cache; member 62 dst = dst_cache_get(&ilwt->dst_cache); in ila_output() 94 dst_cache_set_ip6(&ilwt->dst_cache, dst, &fl6.saddr); in ila_output() 231 ret = dst_cache_init(&ilwt->dst_cache, GFP_ATOMIC); in ila_build_state() 266 dst_cache_destroy(&ila_lwt_lwtunnel(lwt)->dst_cache); in ila_destroy_state()
|
| /net/ipv4/ |
| A D | udp_tunnel_core.c | 235 struct dst_cache *dst_cache) in udp_tunnel_dst_lookup() argument 241 if (dst_cache) { in udp_tunnel_dst_lookup() 242 rt = dst_cache_get_ip4(dst_cache, saddr); in udp_tunnel_dst_lookup() 270 if (dst_cache) in udp_tunnel_dst_lookup() 271 dst_cache_set_ip4(dst_cache, &rt->dst, fl4.saddr); in udp_tunnel_dst_lookup()
|
| A D | ip_tunnel.c | 309 dst_cache_reset(&tunnel->dst_cache); in ip_tunnel_bind_dev() 634 dst_cache_set_ip4(&tun_info->dst_cache, &rt->dst, in ip_md_tunnel_xmit() 787 rt = dst_cache_get_ip4(&tun_info->dst_cache, in ip_tunnel_xmit() 790 rt = connected ? dst_cache_get_ip4(&tunnel->dst_cache, in ip_tunnel_xmit() 802 dst_cache_set_ip4(&tun_info->dst_cache, &rt->dst, in ip_tunnel_xmit() 805 dst_cache_set_ip4(&tunnel->dst_cache, &rt->dst, in ip_tunnel_xmit() 904 dst_cache_reset(&t->dst_cache); in ip_tunnel_update() 1103 dst_cache_destroy(&tunnel->dst_cache); in ip_tunnel_dev_free() 1308 err = dst_cache_init(&tunnel->dst_cache, GFP_KERNEL); in ip_tunnel_init() 1314 dst_cache_destroy(&tunnel->dst_cache); in ip_tunnel_init() [all …]
|
| A D | ip_tunnel_core.c | 689 err = dst_cache_init(&tun_info->dst_cache, GFP_KERNEL); in ip_tun_build_state() 735 dst_cache_destroy(&tun_info->dst_cache); in ip_tun_destroy_state()
|
| /net/tipc/ |
| A D | udp_media.c | 85 struct dst_cache dst_cache; member 172 struct udp_media_addr *dst, struct dst_cache *cache) in tipc_udp_xmit() 259 &ub->rcast.dst_cache); in tipc_udp_send_msg() 272 &rcast->dst_cache); in tipc_udp_send_msg() 316 if (dst_cache_init(&rcast->dst_cache, GFP_ATOMIC)) { in tipc_udp_rcast_add() 779 err = dst_cache_init(&ub->rcast.dst_cache, GFP_ATOMIC); in tipc_udp_enable() 798 dst_cache_destroy(&ub->rcast.dst_cache); in tipc_udp_enable() 813 dst_cache_destroy(&rcast->dst_cache); in cleanup_bearer() 820 dst_cache_destroy(&ub->rcast.dst_cache); in cleanup_bearer()
|
| /net/netfilter/ |
| A D | nft_flow_offload.c | 32 struct dst_entry *dst_cache, in nft_default_forward_path() argument 35 route->tuple[!dir].in.ifindex = dst_cache->dev->ifindex; in nft_default_forward_path() 36 route->tuple[dir].dst = dst_cache; in nft_default_forward_path() 37 route->tuple[dir].xmit_type = nft_xmit_type(dst_cache); in nft_default_forward_path() 50 const struct dst_entry *dst_cache, in nft_dev_fill_forward_path() argument 56 struct net_device *dev = dst_cache->dev; in nft_dev_fill_forward_path() 63 n = dst_neigh_lookup(dst_cache, daddr); in nft_dev_fill_forward_path()
|
| A D | nf_flow_table_ip.c | 267 return dst_check(tuple->dst_cache, tuple->dst_cookie); in nf_flow_dst_check() 444 rt = dst_rtable(tuplehash->tuple.dst_cache); in nf_flow_offload_ip_hook() 456 rt = dst_rtable(tuplehash->tuple.dst_cache); in nf_flow_offload_ip_hook() 739 rt = dst_rt6_info(tuplehash->tuple.dst_cache); in nf_flow_offload_ipv6_hook() 751 rt = dst_rt6_info(tuplehash->tuple.dst_cache); in nf_flow_offload_ipv6_hook()
|
| A D | nf_flow_table_offload.c | 278 const struct dst_entry *dst_cache; in flow_offload_eth_dst() local 295 dst_cache = this_tuple->dst_cache; in flow_offload_eth_dst() 296 n = dst_neigh_lookup(dst_cache, daddr); in flow_offload_eth_dst() 589 dst = this_tuple->dst_cache; in flow_offload_encap_tunnel() 614 dst = other_tuple->dst_cache; in flow_offload_decap_tunnel() 758 other_dst = other_tuple->dst_cache; in nf_flow_offload_rule_alloc()
|
| A D | nf_flow_table_core.c | 81 return rt6_get_cookie(dst_rt6_info(flow_tuple->dst_cache)); in flow_offload_dst_cookie() 135 flow_tuple->dst_cache = dst; in flow_offload_fill_route() 152 dst_release(flow->tuplehash[dir].tuple.dst_cache); in nft_flow_dst_release()
|
| A D | nft_tunnel.c | 516 err = dst_cache_init(&md->u.tun_info.dst_cache, GFP_KERNEL_ACCOUNT); in nft_tunnel_obj_init()
|
| /net/netfilter/ipvs/ |
| A 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() 314 rt = dst_rtable(dest_dst->dst_cache); in __ip_vs_get_out_rt() 473 rt = dst_rt6_info(dest_dst->dst_cache); in __ip_vs_get_out_rt_v6()
|
| A D | ip_vs_ctl.c | 754 dst_release(dest_dst->dst_cache); in ip_vs_dest_dst_rcu_free() 1752 if (dest_dst && dest_dst->dst_cache->dev == dev) { in ip_vs_forget_dev()
|
| A D | ip_vs_core.c | 1762 mtu = dst_mtu(dest_dst->dst_cache); in ip_vs_in_icmp()
|
| /net/sched/ |
| A D | act_tunnel_key.c | 480 ret = dst_cache_init(&metadata->u.tun_info.dst_cache, GFP_KERNEL); in tunnel_key_init()
|