| /net/core/ |
| A D | dst.c | 90 if (!dst) in dst_alloc() 95 return dst; in dst_alloc() 113 dst->ops->destroy(dst); in dst_destroy() 114 netdev_put(dst->dev, &dst->dev_tracker); in dst_destroy() 121 kmem_cache_free(dst->ops->kmem_cachep, dst); in dst_destroy() 123 dst = child; in dst_destroy() 124 if (dst) in dst_destroy() 150 dst->ops->ifdown(dst, dev); in dst_dev_put() 167 if (dst && rcuref_put(&dst->__rcuref)) { in dst_release() 184 if (dst && rcuref_put(&dst->__rcuref)) { in dst_release_immediate() [all …]
|
| A D | dst_cache.c | 33 if (dst) in dst_cache_per_cpu_dst_set() 37 dst_cache->dst = dst; in dst_cache_per_cpu_dst_set() 46 dst = idst->dst; in dst_cache_per_cpu_get() 47 if (!dst) in dst_cache_per_cpu_get() 55 (READ_ONCE(dst->obsolete) && !dst->ops->check(dst, idst->cookie)))) { in dst_cache_per_cpu_get() 60 return dst; in dst_cache_per_cpu_get() 77 return dst; in dst_cache_get() 92 if (!dst) { in dst_cache_get_ip4() 151 if (!dst) { in dst_cache_get_ip6() 158 return dst; in dst_cache_get_ip6() [all …]
|
| /net/dsa/ |
| A D | dsa.c | 215 dst = kzalloc(sizeof(*dst), GFP_KERNEL); in dsa_tree_alloc() 243 if (dst) in dsa_tree_get() 254 if (dst) in dsa_tree_touch() 294 dst = ds->dst; in dsa_link_touch() 316 struct dsa_switch_tree *dst = ds->dst; in dsa_port_setup_routing_table() local 577 struct dsa_switch_tree *dst = ds->dst; in dsa_switch_setup_tag_protocol() local 1093 struct dsa_switch_tree *dst = ds->dst; in dsa_port_touch() local 1164 struct dsa_switch_tree *dst = ds->dst; in dsa_port_parse_cpu() local 1226 dp->dst = dst; in dsa_port_parse_cpu() 1562 dst = ds->dst; in dsa_switch_probe() [all …]
|
| /net/sched/ |
| A D | em_meta.c | 109 get_random_bytes(&dst->value, sizeof(dst->value)); in META_COLLECTOR() 179 dst->value = tag; in META_COLLECTOR() 208 dst->value = skb->len; in META_COLLECTOR() 256 dst->value = 0; in META_COLLECTOR() 324 dst->len = 3; in META_COLLECTOR() 700 if (dst->val == 0UL) in meta_var_change() 702 dst->len = len; in meta_var_change() 717 dst->len -= shift; in meta_var_apply_extras() 831 dst->value = v->val; in meta_get() 832 dst->len = v->len; in meta_get() [all …]
|
| /net/ipv6/ |
| A D | inet6_connection_sock.c | 35 struct dst_entry *dst; in inet6_csk_route_req() local 52 if (IS_ERR(dst)) in inet6_csk_route_req() 55 return dst; in inet6_csk_route_req() 90 if (!dst) { in inet6_csk_route_socket() 93 if (!IS_ERR(dst)) in inet6_csk_route_socket() 96 return dst; in inet6_csk_route_socket() 107 if (IS_ERR(dst)) { in inet6_csk_xmit() 111 return PTR_ERR(dst); in inet6_csk_xmit() 132 if (IS_ERR(dst)) in inet6_csk_update_pmtu() 134 dst->ops->update_pmtu(dst, sk, NULL, mtu, true); in inet6_csk_update_pmtu() [all …]
|
| A D | xfrm6_policy.c | 29 struct dst_entry *dst; in xfrm6_dst_lookup() local 45 err = dst->error; in xfrm6_dst_lookup() 46 if (dst->error) { in xfrm6_dst_lookup() 47 dst_release(dst); in xfrm6_dst_lookup() 48 dst = ERR_PTR(err); in xfrm6_dst_lookup() 51 return dst; in xfrm6_dst_lookup() 57 struct dst_entry *dst; in xfrm6_get_saddr() local 62 if (IS_ERR(dst)) in xfrm6_get_saddr() 67 dst_release(dst); in xfrm6_get_saddr() 73 dst_release(dst); in xfrm6_get_saddr() [all …]
|
| A D | rpl_iptunnel.c | 207 struct dst_entry *dst = NULL; in rpl_output() local 221 if (unlikely(!dst)) { in rpl_output() 233 if (dst->error) { in rpl_output() 234 err = dst->error; in rpl_output() 251 skb_dst_set(skb, dst); in rpl_output() 256 dst_release(dst); in rpl_output() 284 dst_release(dst); in rpl_input() 288 if (!dst) { in rpl_input() 290 dst = skb_dst(skb); in rpl_input() 293 if (!dst->error && lwtst != dst->lwtstate) { in rpl_input() [all …]
|
| A D | ip6_output.c | 1069 if (!dst) in ip6_sk_dst_check() 1101 dst = NULL; in ip6_sk_dst_check() 1105 return dst; in ip6_sk_dst_check() 1132 rt = (*dst)->error ? NULL : dst_rt6_info(*dst); in ip6_dst_lookup_tail() 1158 if (!*dst) in ip6_dst_lookup_tail() 1296 dst = ip6_sk_dst_check(sk, dst, fl6); in ip6_sk_dst_lookup_flow() 1297 if (dst) in ip6_sk_dst_lookup_flow() 1304 return dst; in ip6_sk_dst_lookup_flow() 1355 cork->base.dst = &rt->dst; in ip6_setup_cork() 1395 READ_ONCE(rt->dst.dev->mtu) : dst_mtu(&rt->dst); in ip6_setup_cork() [all …]
|
| A D | icmp.c | 213 if (dst->error) { in icmpv6_xrlim_allow() 237 dst_release(dst); in icmpv6_xrlim_allow() 381 dst2 = dst; in icmpv6_route_lookup() 383 dst = xfrm_lookup(net, dst, flowi6_to_flowi(fl6), sk, 0); in icmpv6_route_lookup() 386 return dst; in icmpv6_route_lookup() 389 dst = NULL; in icmpv6_route_lookup() 391 return dst; in icmpv6_route_lookup() 405 dst = dst2; in icmpv6_route_lookup() 416 if (dst) in icmpv6_route_lookup() 417 return dst; in icmpv6_route_lookup() [all …]
|
| A D | route.c | 294 .dst = { 308 .dst = { 320 .dst = { 1540 .dst = *dst, in rt6_exception_hash() 2412 hash_keys.ports.dst = keys.ports.dst; in rt6_multipath_custom_hash_outer() 2462 hash_keys.ports.dst = keys.ports.dst; in rt6_multipath_custom_hash_inner() 2550 hash_keys.ports.dst = flkeys->ports.dst; in rt6_multipath_hash() 2667 if (dst) in ip6_route_output_flags_noref() 2700 dst = &net->ipv6.ip6_null_entry->dst; in ip6_route_output_flags() 3016 if (!dst || !READ_ONCE(dst->obsolete) || in ip6_sk_update_pmtu() [all …]
|
| A D | seg6_iptunnel.c | 494 err = seg6_do_srh(skb, dst); in seg6_input_core() 496 dst_release(dst); in seg6_input_core() 500 if (!dst) { in seg6_input_core() 502 dst = skb_dst(skb); in seg6_input_core() 505 if (!dst->error && lwtst != dst->lwtstate) { in seg6_input_core() 517 skb_dst_set(skb, dst); in seg6_input_core() 574 if (unlikely(!dst)) { in seg6_output_core() 586 if (dst->error) { in seg6_output_core() 587 err = dst->error; in seg6_output_core() 604 skb_dst_set(skb, dst); in seg6_output_core() [all …]
|
| A D | ip6_udp_tunnel.c | 98 skb_dst_set(skb, dst); in udp_tunnel6_xmit_skb() 145 struct dst_entry *dst = NULL; in udp_tunnel6_dst_lookup() local 150 dst = dst_cache_get_ip6(dst_cache, saddr); in udp_tunnel6_dst_lookup() 151 if (dst) in udp_tunnel6_dst_lookup() 152 return dst; in udp_tunnel6_dst_lookup() 159 fl6.daddr = key->u.ipv6.dst; in udp_tunnel6_dst_lookup() 167 if (IS_ERR(dst)) { in udp_tunnel6_dst_lookup() 171 if (dst_dev(dst) == dev) { /* is this necessary? */ in udp_tunnel6_dst_lookup() 173 dst_release(dst); in udp_tunnel6_dst_lookup() 178 dst_cache_set_ip6(dst_cache, dst, &fl6.saddr); in udp_tunnel6_dst_lookup() [all …]
|
| /net/ceph/ |
| A D | armor.c | 46 *dst++ = encode_bits(a >> 2); in ceph_armor() 54 *dst++ = encode_bits(c & 63); in ceph_armor() 56 *dst++ = encode_bits((b & 15) << 2); in ceph_armor() 57 *dst++ = '='; in ceph_armor() 60 *dst++ = encode_bits(((a & 3) << 4)); in ceph_armor() 61 *dst++ = '='; in ceph_armor() 62 *dst++ = '='; in ceph_armor() 68 *(dst++) = '\n'; in ceph_armor() 95 *dst++ = (a << 2) | (b >> 4); in ceph_unarmor() 98 *dst++ = ((b & 15) << 4) | (c >> 2); in ceph_unarmor() [all …]
|
| /net/ipv4/ |
| A D | route.c | 318 if (!dst) in rt_acct_proc_show() 332 kfree(dst); in rt_acct_proc_show() 1015 struct dst_entry *dst = &rt->dst; in __ip_rt_update_pmtu() local 1218 return dst; in ipv4_dst_check() 1690 new_rt->dst.input = READ_ONCE(rt->dst.input); in rt_dst_clone() 1691 new_rt->dst.output = READ_ONCE(rt->dst.output); in rt_dst_clone() 1692 new_rt->dst.error = rt->dst.error; in rt_dst_clone() 1963 hash_keys.ports.dst = keys.ports.dst; in fib_multipath_custom_hash_outer() 2013 hash_keys.ports.dst = keys.ports.dst; in fib_multipath_custom_hash_inner() 2100 hash_keys.ports.dst = flkeys->ports.dst; in fib_multipath_hash() [all …]
|
| /net/mctp/test/ |
| A D | route-test.c | 26 struct mctp_dst dst; in mctp_test_fragment() local 238 struct mctp_dst dst; in mctp_test_route_input_sk() local 309 struct mctp_dst dst; in mctp_test_route_input_sk_reasm() local 449 struct mctp_dst dst; in mctp_test_route_input_sk_keys() local 576 struct mctp_dst dst; member 743 struct mctp_dst dst; in mctp_test_route_input_sk_fail_single() local 782 struct mctp_dst dst; in mctp_test_route_input_sk_fail_frag() local 1330 memcpy(&hdr->dst, daddr, sizeof(hdr->dst)); in test_dev_header_create() 1362 dst.mtu = 68; in mctp_test_route_gw_output() 1363 dst.nexthop = 9; in mctp_test_route_gw_output() [all …]
|
| /net/bridge/ |
| A D | br_nf_core.c | 24 static void fake_update_pmtu(struct dst_entry *dst, struct sock *sk, in fake_update_pmtu() argument 30 static void fake_redirect(struct dst_entry *dst, struct sock *sk, in fake_redirect() argument 35 static u32 *fake_cow_metrics(struct dst_entry *dst, unsigned long old) in fake_cow_metrics() argument 47 static unsigned int fake_mtu(const struct dst_entry *dst) in fake_mtu() argument 49 return dst->dev->mtu; in fake_mtu() 72 rcuref_init(&rt->dst.__rcuref, 1); in br_netfilter_rtable_init() 73 rt->dst.dev = br->dev; in br_netfilter_rtable_init() 74 dst_init_metrics(&rt->dst, br->metrics, false); in br_netfilter_rtable_init() 75 dst_metric_set(&rt->dst, RTAX_MTU, br->dev->mtu); in br_netfilter_rtable_init() 76 rt->dst.flags = DST_NOXFRM | DST_FAKE_RTABLE; in br_netfilter_rtable_init() [all …]
|
| /net/ipv4/netfilter/ |
| A D | nf_nat_h323.c | 123 tuple.dst.u3, in set_sig_addr() 166 dst.u.udp.port); in set_ras_addr() 203 rtcp_exp->tuple.dst.u.udp.port = in nat_rtp_rtcp() 226 rtcp_exp->tuple.dst.u.udp.port = in nat_rtp_rtcp() 268 &rtp_exp->tuple.dst.u3.ip, in nat_rtp_rtcp() 273 &rtcp_exp->tuple.dst.u3.ip, in nat_rtp_rtcp() 311 &exp->tuple.dst.u3.ip, in nat_t120() 358 &exp->tuple.dst.u3.ip, in nat_h245() 450 &exp->tuple.dst.u3.ip, in nat_q931() 491 exp->tuple.dst.u3.ip = ct->tuplehash[!dir].tuple.dst.u3.ip; in nat_callforwarding() [all …]
|
| /net/xfrm/ |
| A D | xfrm_compat.c | 249 return xfrm_nla_cpy(dst, src, nla_len(src)); in xfrm_xlate64_attr() 255 return xfrm_nla_cpy(dst, src, nla_len(src)); in xfrm_xlate64_attr() 264 return xfrm_nla_cpy(dst, src, nla_len(src)); in xfrm_xlate64_attr() 293 return xfrm_nla_cpy(dst, src, nla_len(src)); in xfrm_xlate64_attr() 324 err = xfrm_xlate64_attr(dst, nla); in xfrm_xlate64() 331 nlmsg_end(dst, nlh_dst); in xfrm_xlate64() 415 struct nlmsghdr *nlmsg = dst; in xfrm_attr_cpy32() 428 nla = dst + *pos; in xfrm_attr_cpy32() 435 memset(dst + *pos, 0, payload - copy_len); in xfrm_attr_cpy32() 485 memcpy(dst, src, NLMSG_HDRLEN); in xfrm_xlate32() [all …]
|
| A D | xfrm_policy.c | 287 return dst; in __xfrm_dst_lookup() 3251 dst = &xdst->u.dst; in xfrm_lookup_with_ifid() 3895 if (dst && !dst->xfrm) in __xfrm_route_forward() 3896 dst = xfrm_out_fwd_icmp(skb, &fl, family, dst); in __xfrm_route_forward() 3941 while ((dst = xfrm_dst_child(dst)) && dst->xfrm && dst->dev == dev) { in xfrm_dst_ifdown() 3967 dst = &xdst->u.dst; in xfrm_init_pmtu() 3990 struct dst_entry *dst = &first->u.dst; in xfrm_bundle_ok() local 3996 (dst->dev && !netif_running(dst->dev))) in xfrm_bundle_ok() 4030 dst = xfrm_dst_child(dst); in xfrm_bundle_ok() 4039 dst = &xdst->u.dst; in xfrm_bundle_ok() [all …]
|
| /net/netfilter/ |
| A D | nf_nat_sip.c | 194 &ct->tuplehash[dir].tuple.dst.u3) || in nf_nat_sip() 216 &ct->tuplehash[!dir].tuple.dst.u3, in nf_nat_sip() 342 pair_exp->tuple.dst.protonum == ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.protonum && in nf_nat_sip_expected() 393 newaddr = exp->tuple.dst.u3; in nf_nat_sip_expect() 402 if (exp->tuple.dst.u.udp.port == srcport) in nf_nat_sip_expect() 405 port = ntohs(exp->tuple.dst.u.udp.port); in nf_nat_sip_expect() 407 exp->saved_addr = exp->tuple.dst.u3; in nf_nat_sip_expect() 408 exp->tuple.dst.u3 = newaddr; in nf_nat_sip_expect() 576 *rtp_addr = rtp_exp->tuple.dst.u3; in nf_nat_sdp_media() 581 rtp_exp->tuple.dst.u3 = *rtp_addr; in nf_nat_sdp_media() [all …]
|
| A D | nft_rt.c | 25 struct dst_entry *dst = NULL; in get_tcpmss() local 42 if (dst) { in get_tcpmss() 43 mtu = min(mtu, dst_mtu(dst)); in get_tcpmss() 44 dst_release(dst); in get_tcpmss() 60 const struct dst_entry *dst; in nft_rt_get_eval() local 62 dst = skb_dst(skb); in nft_rt_get_eval() 63 if (!dst) in nft_rt_get_eval() 69 *dest = dst->tclassid; in nft_rt_get_eval() 83 memcpy(dest, rt6_nexthop(dst_rt6_info(dst), in nft_rt_get_eval() 88 nft_reg_store16(dest, get_tcpmss(pkt, dst)); in nft_rt_get_eval() [all …]
|
| A D | nf_conntrack_proto_icmp.c | 37 tuple->dst.u.icmp.type = hp->type; in icmp_pkt_to_tuple() 39 tuple->dst.u.icmp.code = hp->code; in icmp_pkt_to_tuple() 59 if (orig->dst.u.icmp.type >= sizeof(invmap) || in nf_conntrack_invert_icmp_tuple() 60 !invmap[orig->dst.u.icmp.type]) in nf_conntrack_invert_icmp_tuple() 64 tuple->dst.u.icmp.type = invmap[orig->dst.u.icmp.type] - 1; in nf_conntrack_invert_icmp_tuple() 65 tuple->dst.u.icmp.code = orig->dst.u.icmp.code; in nf_conntrack_invert_icmp_tuple() 90 !valid_new[ct->tuplehash[0].tuple.dst.u.icmp.type]) { in nf_conntrack_icmp_packet() 93 ct->tuplehash[0].tuple.dst.u.icmp.type); in nf_conntrack_icmp_packet() 170 ct_daddr = &ct->tuplehash[dir].tuple.dst.u3; in nf_conntrack_inet_error() 283 if (tuple->dst.u.icmp.type >= sizeof(invmap) || in icmp_nlattr_to_tuple() [all …]
|
| /net/netfilter/ipvs/ |
| A D | ip_vs_nfct.c | 58 ntohs((T)->dst.u.all), \ 59 (T)->dst.protonum 110 if (new_tuple.dst.protonum != IPPROTO_ICMP && in ip_vs_update_conntrack() 111 new_tuple.dst.protonum != IPPROTO_ICMPV6) in ip_vs_update_conntrack() 114 new_tuple.dst.u3 = cp->vaddr; in ip_vs_update_conntrack() 117 new_tuple.dst.u.tcp.port = cp->vport; in ip_vs_update_conntrack() 160 &orig->dst.u3, orig->dst.u.tcp.port, &p); in ip_vs_nfct_expect_callback() 171 new_reply.dst.u3 = cp->vaddr; in ip_vs_nfct_expect_callback() 172 new_reply.dst.u.tcp.port = cp->vport; in ip_vs_nfct_expect_callback() 256 tuple.dst.u3 = cp->vaddr; in ip_vs_conn_drop_conntrack() [all …]
|
| /net/ipv6/ila/ |
| A D | ila_lwt.c | 43 struct dst_entry *dst; in ila_output() local 62 dst = dst_cache_get(&ilwt->dst_cache); in ila_output() 64 if (unlikely(!dst)) { in ila_output() 79 if (dst->error) { in ila_output() 81 dst_release(dst); in ila_output() 85 dst = xfrm_lookup(net, dst, flowi6_to_flowi(&fl6), NULL, 0); in ila_output() 86 if (IS_ERR(dst)) { in ila_output() 87 err = PTR_ERR(dst); in ila_output() 100 skb_dst_set(skb, dst); in ila_output() 110 struct dst_entry *dst = skb_dst(skb); in ila_input() local [all …]
|
| /net/ethtool/ |
| A D | netlink.h | 85 if (*dst == val) in ethnl_update_u32() 88 *dst = val; in ethnl_update_u32() 111 if (*dst == val) in ethnl_update_u8() 114 *dst = val; in ethnl_update_u8() 137 if (!!*dst == val) in ethnl_update_bool32() 140 *dst = val; in ethnl_update_bool32() 163 if (!!*dst == val) in ethnl_update_bool() 166 *dst = val; in ethnl_update_bool() 192 memcpy(dst, nla_data(attr), len); in ethnl_update_binary() 216 if (*dst == newval) in ethnl_update_bitfield32() [all …]
|