Home
last modified time | relevance | path

Searched refs:dst_cache (Results 1 – 25 of 32) sorted by relevance

12

/linux/net/core/
H A Ddst_cache.c28 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 …]
/linux/include/net/
H A Ddst_cache.h11 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 Dudp_tunnel.h156 struct dst_cache *dst_cache);
164 struct dst_cache *dst_cache);
H A Dip6_tunnel.h53 struct dst_cache dst_cache; /* cached dst */ member
H A Dip_tunnels.h108 struct dst_cache dst_cache; member
169 struct dst_cache dst_cache; member
H A Ddst_metadata.h171 if (new_md->u.tun_info.dst_cache.cache) { in tun_dst_unclone()
174 ret = dst_cache_init(&new_md->u.tun_info.dst_cache, GFP_ATOMIC); in tun_dst_unclone()
H A Dvxlan.h209 struct dst_cache dst_cache; member
/linux/net/ipv6/
H A Dip6_udp_tunnel.c128 * @dst_cache: The dst cache to use for lookup
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()
H A Dip6_gre.c369 dst_cache_reset(&t->dst_cache); in ip6erspan_tunnel_uninit()
382 dst_cache_reset(&t->dst_cache); in ip6gre_tunnel_uninit()
1207 dst_cache_reset(&t->dst_cache); in ip6gre_tnl_copy_tnl_parm()
1425 dst_cache_destroy(&t->dst_cache); in ip6gre_dev_free()
1483 ret = dst_cache_init(&tunnel->dst_cache, GFP_KERNEL); in ip6gre_tunnel_init_common()
1508 dst_cache_destroy(&tunnel->dst_cache); in ip6gre_tunnel_init_common()
1856 ret = dst_cache_init(&tunnel->dst_cache, GFP_KERNEL); in ip6erspan_tap_init()
1879 dst_cache_destroy(&tunnel->dst_cache); in ip6erspan_tap_init()
H A Dip6_tunnel.c251 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()
1548 dst_cache_reset(&t->dst_cache); in ip6_tnl_change()
1892 ret = dst_cache_init(&t->dst_cache, GFP_KERNEL); in ip6_tnl_dev_init_gen()
1916 dst_cache_destroy(&t->dst_cache); in ip6_tnl_dev_init_gen()
H A Drpl_iptunnel.c20 struct dst_cache cache;
/linux/net/ipv6/ila/
H A Dila_lwt.c21 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/tipc/
H A Dudp_media.c85 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()
/linux/drivers/net/ovpn/
H A Dudp.c146 struct dst_cache *cache, struct sock *sk, in ovpn_udp4_output()
221 struct dst_cache *cache, struct sock *sk, in ovpn_udp6_output()
297 static int ovpn_udp_output(struct ovpn_peer *peer, struct dst_cache *cache, in ovpn_udp_output()
352 ret = ovpn_udp_output(peer, &peer->dst_cache, sk, skb); in ovpn_udp_send_skb()
H A Dpeer.c116 ret = dst_cache_init(&peer->dst_cache, GFP_KERNEL); in ovpn_peer_new()
274 dst_cache_reset(&peer->dst_cache); in ovpn_peer_endpoints_update()
343 dst_cache_destroy(&peer->dst_cache); in ovpn_peer_release_rcu()
/linux/net/ipv4/
H A Dip_tunnel.c309 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()
773 rt = dst_cache_get_ip4(&tun_info->dst_cache, in ip_tunnel_xmit()
776 rt = connected ? dst_cache_get_ip4(&tunnel->dst_cache, in ip_tunnel_xmit()
788 dst_cache_set_ip4(&tun_info->dst_cache, &rt->dst, in ip_tunnel_xmit()
791 dst_cache_set_ip4(&tunnel->dst_cache, &rt->dst, in ip_tunnel_xmit()
890 dst_cache_reset(&t->dst_cache); in ip_tunnel_update()
1089 dst_cache_destroy(&tunnel->dst_cache); in ip_tunnel_dev_free()
1294 err = dst_cache_init(&tunnel->dst_cache, GFP_KERNEL); in ip_tunnel_init()
[all …]
H A Dip_tunnel_core.c695 err = dst_cache_init(&tun_info->dst_cache, GFP_KERNEL); in ip_tun_build_state()
741 dst_cache_destroy(&tun_info->dst_cache); in ip_tun_destroy_state()
/linux/drivers/net/
H A Dbareudp.c332 (struct dst_cache *)&info->dst_cache : NULL); in bareudp_xmit_skb()
402 (struct dst_cache *) &info->dst_cache : NULL); in bareudp6_xmit_skb()
521 use_cache ? &info->dst_cache : NULL); in bareudp_fill_metadata_dst()
535 use_cache ? &info->dst_cache : NULL); in bareudp_fill_metadata_dst()
/linux/net/netfilter/
H A Dnf_flow_table_ip.c283 return dst_check(tuple->dst_cache, tuple->dst_cookie); in nf_flow_skb_encap_protocol()
519 struct rtable *rt = dst_rtable(tuple->dst_cache);
622 rt = dst_rtable(tuplehash->tuple.dst_cache); in nf_flow_tuple_ipv6()
642 rt = dst_rtable(tuplehash->tuple.dst_cache); in nf_flow_tuple_ipv6()
936 rt = dst_rt6_info(tuplehash->tuple.dst_cache);
953 rt = dst_rt6_info(tuplehash->tuple.dst_cache);
H A Dnf_flow_table_offload.c278 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()
H A Dnf_flow_table_core.c81 return rt6_get_cookie(dst_rt6_info(flow_tuple->dst_cache)); in flow_offload_dst_cookie()
138 flow_tuple->dst_cache = dst; in flow_offload_fill_route()
155 dst_release(flow->tuplehash[dir].tuple.dst_cache); in flow_offload_route_init()
/linux/drivers/net/wireguard/
H A Dpeer.h45 struct dst_cache endpoint_cache;
H A Dsocket.c21 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/netfilter/ipvs/
H A Dip_vs_xmit.c81 dest_dst->dst_cache = dst; in __ip_vs_dst_set()
98 dst = dest_dst->dst_cache; in __ip_vs_dst_check()
313 rt = dst_rtable(dest_dst->dst_cache); in __ip_vs_get_out_rt()
475 rt = dst_rt6_info(dest_dst->dst_cache); in __ip_vs_get_out_rt_v6()
/linux/include/net/netfilter/
H A Dnf_flow_table.h159 struct dst_entry *dst_cache;
143 struct dst_entry *dst_cache; global() member

12