/net/ipv4/ |
D | ip_tunnel_core.c | 125 struct metadata_dst *iptunnel_metadata_reply(struct metadata_dst *md, in iptunnel_metadata_reply() argument 131 if (!md || md->type != METADATA_IP_TUNNEL || in iptunnel_metadata_reply() 132 md->u.tun_info.mode & IP_TUNNEL_INFO_TX) in iptunnel_metadata_reply() 135 src = &md->u.tun_info; in iptunnel_metadata_reply() 522 struct vxlan_metadata *md = in ip_tun_parse_opts_vxlan() local 526 md->gbp = nla_get_u32(attr); in ip_tun_parse_opts_vxlan() 527 md->gbp &= VXLAN_GBP_MASK; in ip_tun_parse_opts_vxlan() 563 struct erspan_metadata *md = in ip_tun_parse_opts_erspan() local 566 md->version = ver; in ip_tun_parse_opts_erspan() 569 md->u.index = nla_get_be32(attr); in ip_tun_parse_opts_erspan() [all …]
|
D | ip_gre.c | 311 struct erspan_metadata *pkt_md, *md; in erspan_rcv() local 322 tun_id, sizeof(*md)); in erspan_rcv() 334 md = ip_tunnel_info_opts(&tun_dst->u.tun_info); in erspan_rcv() 335 md->version = ver; in erspan_rcv() 336 md2 = &md->u.md2; in erspan_rcv() 342 info->options_len = sizeof(*md); in erspan_rcv() 526 struct erspan_metadata *md; in erspan_fb_xmit() local 541 if (tun_info->options_len < sizeof(*md)) in erspan_fb_xmit() 543 md = ip_tunnel_info_opts(tun_info); in erspan_fb_xmit() 546 version = md->version; in erspan_fb_xmit() [all …]
|
D | tcp_highspeed.c | 18 unsigned int md; member 157 return max(tcp_snd_cwnd(tp) - ((tcp_snd_cwnd(tp) * hstcp_aimd_vals[ca->ai].md) >> 8), 2U); in hstcp_ssthresh()
|
D | ip_tunnel.c | 514 int tunnel_hlen, __be32 dst, bool md) in tnl_update_pmtu() argument 520 tunnel_hlen = md ? tunnel_hlen : tunnel->hlen; in tnl_update_pmtu() 549 daddr = md ? dst : tunnel->parms.iph.daddr; in tnl_update_pmtu() 693 bool md = false; in ip_tunnel_xmit() local 719 md = true; in ip_tunnel_xmit() 759 if (!md) in ip_tunnel_xmit() 783 if (connected && md) { in ip_tunnel_xmit() 803 else if (!md && connected) in ip_tunnel_xmit()
|
/net/psample/ |
D | psample.c | 362 u32 sample_rate, const struct psample_metadata *md) in psample_sample_packet() argument 365 int out_ifindex = md->out_ifindex; in psample_sample_packet() 366 int in_ifindex = md->in_ifindex; in psample_sample_packet() 367 u32 trunc_size = md->trunc_size; in psample_sample_packet() 379 (md->out_tc_valid ? nla_total_size(sizeof(u16)) : 0) + in psample_sample_packet() 380 (md->out_tc_occ_valid ? nla_total_size_64bit(sizeof(u64)) : 0) + in psample_sample_packet() 381 (md->latency_valid ? nla_total_size_64bit(sizeof(u64)) : 0) + in psample_sample_packet() 437 if (md->out_tc_valid) { in psample_sample_packet() 438 ret = nla_put_u16(nl_skb, PSAMPLE_ATTR_OUT_TC, md->out_tc); in psample_sample_packet() 443 if (md->out_tc_occ_valid) { in psample_sample_packet() [all …]
|
/net/sched/ |
D | act_tunnel_key.c | 157 struct vxlan_metadata *md = dst; in tunnel_key_copy_vxlan_opt() local 159 md->gbp = nla_get_u32(tb[TCA_TUNNEL_KEY_ENC_OPT_VXLAN_GBP]); in tunnel_key_copy_vxlan_opt() 160 md->gbp &= VXLAN_GBP_MASK; in tunnel_key_copy_vxlan_opt() 202 struct erspan_metadata *md = dst; in tunnel_key_copy_erspan_opt() local 204 md->version = ver; in tunnel_key_copy_erspan_opt() 207 md->u.index = nla_get_be32(nla); in tunnel_key_copy_erspan_opt() 210 md->u.md2.dir = nla_get_u8(nla); in tunnel_key_copy_erspan_opt() 212 set_hwid(&md->u.md2, nla_get_u8(nla)); in tunnel_key_copy_erspan_opt() 606 struct vxlan_metadata *md = (struct vxlan_metadata *)(info + 1); in tunnel_key_vxlan_opts_dump() local 613 if (nla_put_u32(skb, TCA_TUNNEL_KEY_ENC_OPT_VXLAN_GBP, md->gbp)) { in tunnel_key_vxlan_opts_dump() [all …]
|
D | act_sample.c | 170 struct psample_metadata md = {}; in tcf_sample_act() local 182 md.in_ifindex = skb->skb_iif; in tcf_sample_act() 183 md.out_ifindex = skb->dev->ifindex; in tcf_sample_act() 185 md.in_ifindex = skb->dev->ifindex; in tcf_sample_act() 192 md.trunc_size = s->truncate ? s->trunc_size : skb->len; in tcf_sample_act() 193 psample_sample_packet(psample_group, skb, s->rate, &md); in tcf_sample_act()
|
D | cls_flower.c | 1282 struct vxlan_metadata *md; in fl_set_vxlan_opt() local 1285 md = (struct vxlan_metadata *)&key->enc_opts.data[key->enc_opts.len]; in fl_set_vxlan_opt() 1286 memset(md, 0xff, sizeof(*md)); in fl_set_vxlan_opt() 1289 return sizeof(*md); in fl_set_vxlan_opt() 1307 md->gbp = nla_get_u32(tb[TCA_FLOWER_KEY_ENC_OPT_VXLAN_GBP]); in fl_set_vxlan_opt() 1308 md->gbp &= VXLAN_GBP_MASK; in fl_set_vxlan_opt() 1311 return sizeof(*md); in fl_set_vxlan_opt() 1319 struct erspan_metadata *md; in fl_set_erspan_opt() local 1322 md = (struct erspan_metadata *)&key->enc_opts.data[key->enc_opts.len]; in fl_set_erspan_opt() 1323 memset(md, 0xff, sizeof(*md)); in fl_set_erspan_opt() [all …]
|
/net/netfilter/ |
D | nft_tunnel.c | 182 struct metadata_dst *md; member 448 struct metadata_dst *md; in nft_tunnel_obj_init() local 506 md = metadata_dst_alloc(priv->opts.len, METADATA_IP_TUNNEL, GFP_KERNEL); in nft_tunnel_obj_init() 507 if (!md) in nft_tunnel_obj_init() 510 memcpy(&md->u.tun_info, &info, sizeof(info)); in nft_tunnel_obj_init() 512 err = dst_cache_init(&md->u.tun_info.dst_cache, GFP_KERNEL); in nft_tunnel_obj_init() 514 metadata_dst_free(md); in nft_tunnel_obj_init() 518 ip_tunnel_info_opts_set(&md->u.tun_info, &priv->opts.u, priv->opts.len, in nft_tunnel_obj_init() 520 priv->md = md; in nft_tunnel_obj_init() 533 dst_hold((struct dst_entry *) priv->md); in nft_tunnel_obj_eval() [all …]
|
/net/ipv6/ |
D | ip6_gre.c | 553 struct erspan_metadata *pkt_md, *md; in ip6erspan_rcv() local 565 sizeof(*md)); in ip6erspan_rcv() 578 md = ip_tunnel_info_opts(info); in ip6erspan_rcv() 579 md->version = ver; in ip6erspan_rcv() 580 md2 = &md->u.md2; in ip6erspan_rcv() 584 info->options_len = sizeof(*md); in ip6erspan_rcv() 993 struct erspan_metadata *md; in ip6erspan_tunnel_xmit() local 1012 if (tun_info->options_len < sizeof(*md)) in ip6erspan_tunnel_xmit() 1014 md = ip_tunnel_info_opts(tun_info); in ip6erspan_tunnel_xmit() 1017 if (md->version == 1) { in ip6erspan_tunnel_xmit() [all …]
|
/net/wireless/ |
D | trace.h | 2266 __field(u16, md) 2272 __entry->md = ftie->md; 2276 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->md)
|
D | nl80211.c | 14954 ft_params.md = nla_get_u16(info->attrs[NL80211_ATTR_MDID]); in nl80211_update_ft_ies()
|
/net/core/ |
D | filter.c | 4757 struct metadata_dst *md = this_cpu_ptr(md_dst); in BPF_CALL_4() local 4787 dst_hold((struct dst_entry *) md); in BPF_CALL_4() 4788 skb_dst_set(skb, (struct dst_entry *) md); in BPF_CALL_4() 4790 info = &md->u.tun_info; in BPF_CALL_4() 4839 const struct metadata_dst *md = this_cpu_ptr(md_dst); in BPF_CALL_3() local 4841 if (unlikely(info != &md->u.tun_info || (size & (sizeof(u32) - 1)))) in BPF_CALL_3()
|