| /linux/net/core/ |
| H A D | dst_cache.c | 28 static void dst_cache_per_cpu_dst_set(struct dst_cache_pcpu *dst_cache, in dst_cache_per_cpu_dst_set() argument 32 dst_release(dst_cache->dst); in dst_cache_per_cpu_dst_set() 36 dst_cache->cookie = cookie; in dst_cache_per_cpu_dst_set() 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 54 READ_ONCE(dst_cache->reset_ts)) || in dst_cache_per_cpu_get() 67 struct dst_entry *dst_cache_get(struct dst_cache *dst_cache) in dst_cache_get() argument 71 if (!dst_cache->cache) in dst_cache_get() 74 local_lock_nested_bh(&dst_cache->cache->bh_lock); in dst_cache_get() 75 dst = dst_cache_per_cpu_get(dst_cache, this_cpu_ptr(dst_cache->cache)); in dst_cache_get() [all …]
|
| H A D | dst.c | 174 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()
|
| H A D | Makefile | 40 obj-$(CONFIG_DST_CACHE) += dst_cache.o
|
| /linux/include/net/ |
| H 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 WRITE_ONCE(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 …]
|
| H A D | ip6_tunnel.h | 53 struct dst_cache dst_cache; /* cached dst */ member
|
| H A D | ip_tunnels.h | 116 struct dst_cache dst_cache; member 177 struct dst_cache dst_cache; member
|
| H A D | dst_metadata.h | 174 if (new_md->u.tun_info.dst_cache.cache) { in tun_dst_unclone() 177 ret = dst_cache_init(&new_md->u.tun_info.dst_cache, GFP_ATOMIC); in tun_dst_unclone()
|
| H A D | vxlan.h | 210 struct dst_cache dst_cache; member
|
| /linux/net/ipv6/ |
| H 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() 176 if (dst_cache) in udp_tunnel6_dst_lookup() 177 dst_cache_set_ip6(dst_cache, dst, &fl6.saddr); in udp_tunnel6_dst_lookup()
|
| H A D | sit.c | 482 dst_cache_reset(&t->dst_cache); in ipip6_tunnel_prl_ctl() 525 dst_cache_reset(&tunnel->dst_cache); in ipip6_tunnel_uninit() 937 rt = dst_cache_get_ip4(&tunnel->dst_cache, &fl4.saddr); in ipip6_tunnel_xmit() 944 dst_cache_set_ip4(&tunnel->dst_cache, &rt->dst, fl4.saddr); in ipip6_tunnel_xmit() 1159 dst_cache_reset(&t->dst_cache); in ipip6_tunnel_update() 1190 dst_cache_reset(&t->dst_cache); in ipip6_tunnel_update_6rd() 1410 dst_cache_destroy(&tunnel->dst_cache); in ipip6_dev_free() 1453 err = dst_cache_init(&tunnel->dst_cache, GFP_KERNEL); in ipip6_tunnel_init()
|
| H 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() 1209 dst_cache_reset(&t->dst_cache); in ip6gre_tnl_copy_tnl_parm() 1427 dst_cache_destroy(&t->dst_cache); in ip6gre_dev_free() 1485 ret = dst_cache_init(&tunnel->dst_cache, GFP_KERNEL); in ip6gre_tunnel_init_common() 1510 dst_cache_destroy(&tunnel->dst_cache); in ip6gre_tunnel_init_common() 1858 ret = dst_cache_init(&tunnel->dst_cache, GFP_KERNEL); in ip6erspan_tap_init() 1881 dst_cache_destroy(&tunnel->dst_cache); in ip6erspan_tap_init()
|
| /linux/net/ipv6/ila/ |
| H 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()
|
| /linux/net/ipv4/ |
| H A D | udp_tunnel_core.c | 231 struct dst_cache *dst_cache) in udp_tunnel_dst_lookup() argument 237 if (dst_cache) { in udp_tunnel_dst_lookup() 238 rt = dst_cache_get_ip4(dst_cache, saddr); in udp_tunnel_dst_lookup() 266 if (dst_cache) in udp_tunnel_dst_lookup() 267 dst_cache_set_ip4(dst_cache, &rt->dst, fl4.saddr); in udp_tunnel_dst_lookup()
|
| H A D | ip_tunnel.c | 309 dst_cache_reset(&tunnel->dst_cache); in ip_tunnel_bind_dev() 612 rt = dst_cache_get_ip4(&tun_info->dst_cache, &fl4.saddr); in ip_md_tunnel_xmit() 620 dst_cache_set_ip4(&tun_info->dst_cache, &rt->dst, in ip_md_tunnel_xmit() 774 rt = dst_cache_get_ip4(&tun_info->dst_cache, in ip_tunnel_xmit() 777 rt = connected ? dst_cache_get_ip4(&tunnel->dst_cache, in ip_tunnel_xmit() 789 dst_cache_set_ip4(&tun_info->dst_cache, &rt->dst, in ip_tunnel_xmit() 792 dst_cache_set_ip4(&tunnel->dst_cache, &rt->dst, in ip_tunnel_xmit() 893 dst_cache_reset(&t->dst_cache); in ip_tunnel_update() 1079 dst_cache_destroy(&tunnel->dst_cache); in ip_tunnel_dev_free() 1284 err = dst_cache_init(&tunnel->dst_cache, GFP_KERNEL); in __ip_tunnel_init() [all …]
|
| /linux/net/netfilter/ |
| H A D | nf_flow_table_path.c | 28 struct dst_entry *dst_cache, in nft_default_forward_path() argument 31 route->tuple[!dir].in.ifindex = dst_cache->dev->ifindex; in nft_default_forward_path() 32 route->tuple[dir].dst = dst_cache; in nft_default_forward_path() 33 route->tuple[dir].xmit_type = nft_xmit_type(dst_cache); in nft_default_forward_path() 45 static int nft_dev_fill_forward_path(const struct dst_entry *dst_cache, in nft_dev_fill_forward_path() argument 52 struct net_device *dev = dst_cache->dev; in nft_dev_fill_forward_path() 66 n = dst_neigh_lookup(dst_cache, daddr); in nft_dev_fill_forward_path()
|
| H A D | nf_flow_table_offload.c | 290 const struct dst_entry *dst_cache; in flow_offload_eth_dst() local 310 dst_cache = this_tuple->dst_cache; in flow_offload_eth_dst() 311 n = dst_neigh_lookup(dst_cache, daddr); in flow_offload_eth_dst() 637 dst = this_tuple->dst_cache; in flow_offload_encap_tunnel() 666 dst = other_tuple->dst_cache; in flow_offload_decap_tunnel() 824 other_dst = other_tuple->dst_cache; in nf_flow_offload_rule_alloc()
|
| H A D | nf_flow_table_core.c | 82 return rt6_get_cookie(dst_rt6_info(flow_tuple->dst_cache)); in flow_offload_dst_cookie() 131 flow_tuple->dst_cache = dst; in flow_offload_fill_route() 146 flow_tuple->dst_cache = dst; in flow_offload_fill_route() 161 dst_release(flow->tuplehash[dir].tuple.dst_cache); in nft_flow_dst_release()
|
| H A D | nf_flow_table_ip.c | 811 rt = dst_rtable(tuplehash->tuple.dst_cache); in nf_flow_queue_xmit4() 824 tuplehash->tuple.dst_cache, &ip_daddr) < 0) in nf_flow_queue_xmit4() 829 rt = dst_rtable(tuplehash->tuple.dst_cache); in nf_flow_queue_xmit4() 1139 rt = dst_rt6_info(tuplehash->tuple.dst_cache); in nf_flow_queue_xmit6() 1152 tuplehash->tuple.dst_cache, in nf_flow_queue_xmit6() 1158 rt = dst_rt6_info(tuplehash->tuple.dst_cache); in nf_flow_queue_xmit6()
|
| /linux/drivers/net/ovpn/ |
| H A D | udp.c | 149 struct dst_cache *cache, in ovpn_dst_cache_check_key() 217 struct dst_cache *cache, struct sock *sk, in ovpn_udp4_output() 313 struct dst_cache *cache, struct sock *sk, in ovpn_udp6_output() 414 static int ovpn_udp_output(struct ovpn_peer *peer, struct dst_cache *cache, in ovpn_udp_output() 473 ovpn_dst_cache_check_key(peer, &peer->dst_cache, &key); in ovpn_udp_send_skb() 476 ret = ovpn_udp_output(peer, &peer->dst_cache, sk, skb, &key); in ovpn_udp_send_skb()
|
| H A D | peer.h | 114 struct dst_cache dst_cache; member
|
| /linux/net/tipc/ |
| H A D | udp_media.c | 85 struct dst_cache dst_cache; member 176 struct udp_media_addr *dst, struct dst_cache *cache) in tipc_udp_xmit() 262 &ub->rcast.dst_cache); in tipc_udp_send_msg() 275 &rcast->dst_cache); in tipc_udp_send_msg() 313 if (dst_cache_init(&rcast->dst_cache, GFP_ATOMIC)) { in tipc_udp_rcast_add() 775 err = dst_cache_init(&ub->rcast.dst_cache, GFP_ATOMIC); in tipc_udp_enable() 794 dst_cache_destroy(&ub->rcast.dst_cache); in tipc_udp_enable() 806 dst_cache_destroy(&rcast->dst_cache); in rcast_free_rcu() 831 dst_cache_destroy(&ub->rcast.dst_cache); in cleanup_bearer()
|
| /linux/drivers/net/ |
| H A D | bareudp.c | 330 (struct dst_cache *)&info->dst_cache : NULL); in bareudp_xmit_skb() 400 (struct dst_cache *) &info->dst_cache : NULL); in bareudp6_xmit_skb() 519 use_cache ? &info->dst_cache : NULL); in bareudp_fill_metadata_dst() 537 use_cache ? &info->dst_cache : NULL); in bareudp_fill_metadata_dst()
|
| H A D | geneve.c | 1413 (struct dst_cache *)&info->dst_cache : NULL); in geneve_xmit_skb() 1531 (struct dst_cache *)&info->dst_cache : NULL); in geneve6_xmit_skb() 1686 use_cache ? &info->dst_cache : NULL); in geneve_fill_metadata_dst() 1712 use_cache ? &info->dst_cache : NULL); in geneve_fill_metadata_dst() 1793 cfg->info.dst_cache.cache = NULL; in geneve_config_alloc() 1794 err = dst_cache_init(&cfg->info.dst_cache, GFP_KERNEL); in geneve_config_alloc() 1806 dst_cache_destroy(&cfg->info.dst_cache); in geneve_config_free()
|
| /linux/include/net/netfilter/ |
| H A D | nf_flow_table.h | 159 struct dst_entry *dst_cache; member 315 if (!tuple->dst_cache) in nf_flow_dst_check() 318 return dst_check(tuple->dst_cache, tuple->dst_cookie); in nf_flow_dst_check()
|
| /linux/drivers/net/wireguard/ |
| H A D | peer.h | 45 struct dst_cache endpoint_cache;
|