/linux/net/core/ |
A D | dst_cache.c | 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 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() 90 void dst_cache_set_ip4(struct dst_cache *dst_cache, struct dst_entry *dst, in dst_cache_set_ip4() argument 105 void dst_cache_set_ip6(struct dst_cache *dst_cache, struct dst_entry *dst, in dst_cache_set_ip6() argument 120 struct dst_entry *dst_cache_get_ip6(struct dst_cache *dst_cache, in dst_cache_get_ip6() argument 140 int dst_cache_init(struct dst_cache *dst_cache, gfp_t gfp) in dst_cache_init() argument 152 void dst_cache_destroy(struct dst_cache *dst_cache) in dst_cache_destroy() argument [all …]
|
A D | built-in.a | 36 dst_cache.o/
|
A D | dst.c | 317 dst_cache_destroy(&md_dst->u.tun_info.dst_cache); in metadata_dst_free() 350 dst_cache_destroy(&one_md_dst->u.tun_info.dst_cache); in metadata_dst_free_percpu()
|
A D | Makefile | 31 obj-$(CONFIG_DST_CACHE) += dst_cache.o
|
A D | .built-in.a.cmd | 1 …re/net-procfs.o net/core/selftests.o net/core/ptp_classifier.o net/core/dst_cache.o net/core/devli…
|
A D | .dst_cache.o.cmd | 1 …dst_cache.o := /usr/bin/ccache /home/test/workspace/code/optee_3.16/build/../toolchains/aarch64/bi… 3 source_net/core/dst_cache.o := net/core/dst_cache.c 5 deps_net/core/dst_cache.o := \ 305 include/net/dst_cache.h \ 1476 net/core/dst_cache.o: $(deps_net/core/dst_cache.o) 1478 $(deps_net/core/dst_cache.o):
|
/linux/include/net/ |
A D | dst_cache.h | 11 struct dst_cache { struct 24 struct dst_entry *dst_cache_get(struct dst_cache *dst_cache); 33 struct rtable *dst_cache_get_ip4(struct dst_cache *dst_cache, __be32 *saddr); 43 void dst_cache_set_ip4(struct dst_cache *dst_cache, struct dst_entry *dst, 56 void dst_cache_set_ip6(struct dst_cache *dst_cache, struct dst_entry *dst, 66 struct dst_entry *dst_cache_get_ip6(struct dst_cache *dst_cache, 77 static inline void dst_cache_reset(struct dst_cache *dst_cache) in dst_cache_reset() argument 79 dst_cache->reset_ts = jiffies; in dst_cache_reset() 91 void dst_cache_reset_now(struct dst_cache *dst_cache); 98 int dst_cache_init(struct dst_cache *dst_cache, gfp_t gfp); [all …]
|
A D | ip_tunnels.h | 72 struct dst_cache dst_cache; member 125 struct dst_cache dst_cache; member
|
A D | ip6_tunnel.h | 52 struct dst_cache dst_cache; /* cached dst */ member
|
A D | vxlan.h | 207 struct dst_cache dst_cache; member
|
/linux/net/ipv6/ila/ |
A 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()
|
/linux/net/tipc/ |
A D | udp_media.c | 85 struct dst_cache dst_cache; member 169 struct udp_media_addr *dst, struct dst_cache *cache) in tipc_udp_xmit() 256 &ub->rcast.dst_cache); in tipc_udp_send_msg() 269 &rcast->dst_cache); in tipc_udp_send_msg() 313 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() 812 dst_cache_destroy(&rcast->dst_cache); in cleanup_bearer() 818 dst_cache_destroy(&ub->rcast.dst_cache); in cleanup_bearer()
|
/linux/net/netfilter/ |
A D | nft_flow_offload.c | 31 struct dst_entry *dst_cache, in nft_default_forward_path() argument 34 route->tuple[!dir].in.ifindex = dst_cache->dev->ifindex; in nft_default_forward_path() 35 route->tuple[dir].dst = dst_cache; in nft_default_forward_path() 36 route->tuple[dir].xmit_type = nft_xmit_type(dst_cache); in nft_default_forward_path() 40 const struct dst_entry *dst_cache, in nft_dev_fill_forward_path() argument 46 struct net_device *dev = dst_cache->dev; in nft_dev_fill_forward_path() 50 n = dst_neigh_lookup(dst_cache, daddr); in nft_dev_fill_forward_path()
|
A D | nf_flow_table_offload.c | 267 const struct dst_entry *dst_cache; in flow_offload_eth_dst() local 284 dst_cache = this_tuple->dst_cache; in flow_offload_eth_dst() 285 n = dst_neigh_lookup(dst_cache, daddr); in flow_offload_eth_dst() 578 dst = this_tuple->dst_cache; in flow_offload_encap_tunnel() 603 dst = other_tuple->dst_cache; in flow_offload_decap_tunnel() 747 other_dst = other_tuple->dst_cache; in nf_flow_offload_rule_alloc()
|
A D | nf_flow_table_core.c | 82 rt = (const struct rt6_info *)flow_tuple->dst_cache; in flow_offload_dst_cookie() 130 flow_tuple->dst_cache = dst; in flow_offload_fill_route() 147 dst_release(flow->tuplehash[dir].tuple.dst_cache); in nft_flow_dst_release() 440 dst = tuple->dst_cache; in flow_offload_stale_dst()
|
A D | nf_flow_table_ip.c | 385 rt = (struct rtable *)tuplehash->tuple.dst_cache; in nf_flow_offload_ip_hook() 394 rt = (struct rtable *)tuplehash->tuple.dst_cache; in nf_flow_offload_ip_hook() 620 rt = (struct rt6_info *)tuplehash->tuple.dst_cache; in nf_flow_offload_ipv6_hook() 629 rt = (struct rt6_info *)tuplehash->tuple.dst_cache; in nf_flow_offload_ipv6_hook()
|
/linux/drivers/net/ |
A D | geneve.c | 336 dst_cache_destroy(&geneve->cfg.info.dst_cache); in geneve_uninit() 781 struct dst_cache *dst_cache; in geneve_get_v4_rt() local 803 dst_cache = (struct dst_cache *)&info->dst_cache; in geneve_get_v4_rt() 805 rt = dst_cache_get_ip4(dst_cache, &fl4->saddr); in geneve_get_v4_rt() 820 dst_cache_set_ip4(dst_cache, &rt->dst, fl4->saddr); in geneve_get_v4_rt() 835 struct dst_cache *dst_cache; in geneve_get_v6_dst() local 857 dst_cache = (struct dst_cache *)&info->dst_cache; in geneve_get_v6_dst() 859 dst = dst_cache_get_ip6(dst_cache, &fl6->saddr); in geneve_get_v6_dst() 876 dst_cache_set_ip6(dst_cache, dst, &fl6->saddr); in geneve_get_v6_dst() 1393 dst_cache_reset(&geneve->cfg.info.dst_cache); in geneve_configure() [all …]
|
A D | vxlan.c | 692 dst_cache_reset(&rd->dst_cache); in vxlan_fdb_replace() 1011 dst_cache_destroy(&rd->dst_cache); in vxlan_dst_free() 2397 struct dst_cache *dst_cache, in vxlan_get_route() argument 2452 struct dst_cache *dst_cache, in vxlan6_get_route() argument 2595 struct dst_cache *dst_cache; in vxlan_xmit_one() local 2631 dst_cache = &rdst->dst_cache; in vxlan_xmit_one() 2668 dst_cache = &info->dst_cache; in vxlan_xmit_one() 2695 dst_cache, info); in vxlan_xmit_one() 2768 dst_cache, info); in vxlan_xmit_one() 3195 &info->dst_cache, info); in vxlan_fill_metadata_dst() [all …]
|
/linux/net/ipv4/ |
A D | ip_tunnel.c | 308 dst_cache_reset(&tunnel->dst_cache); in ip_tunnel_bind_dev() 587 dst_cache_set_ip4(&tun_info->dst_cache, &rt->dst, in ip_md_tunnel_xmit() 738 rt = dst_cache_get_ip4(&tun_info->dst_cache, in ip_tunnel_xmit() 741 rt = connected ? dst_cache_get_ip4(&tunnel->dst_cache, in ip_tunnel_xmit() 753 dst_cache_set_ip4(&tun_info->dst_cache, &rt->dst, in ip_tunnel_xmit() 756 dst_cache_set_ip4(&tunnel->dst_cache, &rt->dst, in ip_tunnel_xmit() 855 dst_cache_reset(&t->dst_cache); in ip_tunnel_update() 1011 dst_cache_destroy(&tunnel->dst_cache); in ip_tunnel_dev_free() 1232 err = dst_cache_init(&tunnel->dst_cache, GFP_KERNEL); in ip_tunnel_init() 1240 dst_cache_destroy(&tunnel->dst_cache); in ip_tunnel_init() [all …]
|
/linux/drivers/net/wireguard/ |
A D | peer.h | 45 struct dst_cache endpoint_cache;
|
A D | socket.c | 21 struct endpoint *endpoint, u8 ds, struct dst_cache *cache) in send4() 98 struct endpoint *endpoint, u8 ds, struct dst_cache *cache) in send6()
|
/linux/net/ipv6/ |
A D | sit.c | 480 dst_cache_reset(&t->dst_cache); in ipip6_tunnel_prl_ctl() 523 dst_cache_reset(&tunnel->dst_cache); in ipip6_tunnel_uninit() 949 rt = dst_cache_get_ip4(&tunnel->dst_cache, &fl4.saddr); in ipip6_tunnel_xmit() 956 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() 1460 err = dst_cache_init(&tunnel->dst_cache, GFP_KERNEL); in ipip6_tunnel_init()
|
A D | ip6_output.c | 1273 struct dst_cache *dst_cache; in ip6_dst_lookup_tunnel() local 1279 dst_cache = (struct dst_cache *)&info->dst_cache; in ip6_dst_lookup_tunnel() 1281 dst = dst_cache_get_ip6(dst_cache, saddr); in ip6_dst_lookup_tunnel() 1308 dst_cache_set_ip6(dst_cache, dst, &fl6.saddr); in ip6_dst_lookup_tunnel()
|
A D | ip6_gre.c | 405 dst_cache_reset(&t->dst_cache); in ip6erspan_tunnel_uninit() 418 dst_cache_reset(&t->dst_cache); in ip6gre_tunnel_uninit() 1201 dst_cache_reset(&t->dst_cache); in ip6gre_tnl_copy_tnl_parm() 1413 dst_cache_destroy(&t->dst_cache); in ip6gre_dev_free() 1479 ret = dst_cache_init(&tunnel->dst_cache, GFP_KERNEL); in ip6gre_tunnel_init_common() 1503 dst_cache_destroy(&tunnel->dst_cache); in ip6gre_tunnel_init_common() 1873 ret = dst_cache_init(&tunnel->dst_cache, GFP_KERNEL); in ip6erspan_tap_init() 1895 dst_cache_destroy(&tunnel->dst_cache); in ip6erspan_tap_init()
|
A D | ip6_tunnel.c | 249 dst_cache_destroy(&t->dst_cache); in ip6_dev_free() 385 dst_cache_reset(&t->dst_cache); in ip6_tnl_dev_uninit() 1135 dst = dst_cache_get(&t->dst_cache); in ip6_tnl_xmit() 1222 dst_cache_set_ip6(&t->dst_cache, ndst, &fl6->saddr); in ip6_tnl_xmit() 1528 dst_cache_reset(&t->dst_cache); in ip6_tnl_change() 1866 ret = dst_cache_init(&t->dst_cache, GFP_KERNEL); in ip6_tnl_dev_init_gen() 1890 dst_cache_destroy(&t->dst_cache); in ip6_tnl_dev_init_gen()
|