Home
last modified time | relevance | path

Searched refs:md (Results 1 – 13 of 13) sorted by relevance

/net/ipv4/
Dip_tunnel_core.c125 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 …]
Dip_gre.c306 struct erspan_metadata *pkt_md, *md; in erspan_rcv() local
317 tun_id, sizeof(*md)); in erspan_rcv()
329 md = ip_tunnel_info_opts(&tun_dst->u.tun_info); in erspan_rcv()
330 md->version = ver; in erspan_rcv()
331 md2 = &md->u.md2; in erspan_rcv()
337 info->options_len = sizeof(*md); in erspan_rcv()
521 struct erspan_metadata *md; in erspan_fb_xmit() local
536 if (tun_info->options_len < sizeof(*md)) in erspan_fb_xmit()
538 md = ip_tunnel_info_opts(tun_info); in erspan_fb_xmit()
541 version = md->version; in erspan_fb_xmit()
[all …]
Dtcp_highspeed.c18 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()
Dip_tunnel.c487 int tunnel_hlen, __be32 dst, bool md) in tnl_update_pmtu() argument
493 tunnel_hlen = md ? tunnel_hlen : tunnel->hlen; in tnl_update_pmtu()
522 daddr = md ? dst : tunnel->parms.iph.daddr; in tnl_update_pmtu()
660 bool md = false; in ip_tunnel_xmit() local
685 md = true; in ip_tunnel_xmit()
726 if (!md) in ip_tunnel_xmit()
749 if (connected && md) { in ip_tunnel_xmit()
769 else if (!md && connected) in ip_tunnel_xmit()
/net/psample/
Dpsample.c361 u32 sample_rate, const struct psample_metadata *md) in psample_sample_packet() argument
364 int out_ifindex = md->out_ifindex; in psample_sample_packet()
365 int in_ifindex = md->in_ifindex; in psample_sample_packet()
366 u32 trunc_size = md->trunc_size; in psample_sample_packet()
378 (md->out_tc_valid ? nla_total_size(sizeof(u16)) : 0) + in psample_sample_packet()
379 (md->out_tc_occ_valid ? nla_total_size_64bit(sizeof(u64)) : 0) + in psample_sample_packet()
380 (md->latency_valid ? nla_total_size_64bit(sizeof(u64)) : 0) + in psample_sample_packet()
436 if (md->out_tc_valid) { in psample_sample_packet()
437 ret = nla_put_u16(nl_skb, PSAMPLE_ATTR_OUT_TC, md->out_tc); in psample_sample_packet()
442 if (md->out_tc_occ_valid) { in psample_sample_packet()
[all …]
/net/sched/
Dact_tunnel_key.c156 struct vxlan_metadata *md = dst; in tunnel_key_copy_vxlan_opt() local
158 md->gbp = nla_get_u32(tb[TCA_TUNNEL_KEY_ENC_OPT_VXLAN_GBP]); in tunnel_key_copy_vxlan_opt()
159 md->gbp &= VXLAN_GBP_MASK; in tunnel_key_copy_vxlan_opt()
201 struct erspan_metadata *md = dst; in tunnel_key_copy_erspan_opt() local
203 md->version = ver; in tunnel_key_copy_erspan_opt()
206 md->u.index = nla_get_be32(nla); in tunnel_key_copy_erspan_opt()
209 md->u.md2.dir = nla_get_u8(nla); in tunnel_key_copy_erspan_opt()
211 set_hwid(&md->u.md2, nla_get_u8(nla)); in tunnel_key_copy_erspan_opt()
602 struct vxlan_metadata *md = (struct vxlan_metadata *)(info + 1); in tunnel_key_vxlan_opts_dump() local
609 if (nla_put_u32(skb, TCA_TUNNEL_KEY_ENC_OPT_VXLAN_GBP, md->gbp)) { in tunnel_key_vxlan_opts_dump()
[all …]
Dact_sample.c169 struct psample_metadata md = {}; in tcf_sample_act() local
181 md.in_ifindex = skb->skb_iif; in tcf_sample_act()
182 md.out_ifindex = skb->dev->ifindex; in tcf_sample_act()
184 md.in_ifindex = skb->dev->ifindex; in tcf_sample_act()
191 md.trunc_size = s->truncate ? s->trunc_size : skb->len; in tcf_sample_act()
192 psample_sample_packet(psample_group, skb, s->rate, &md); in tcf_sample_act()
Dcls_flower.c1186 struct vxlan_metadata *md; in fl_set_vxlan_opt() local
1189 md = (struct vxlan_metadata *)&key->enc_opts.data[key->enc_opts.len]; in fl_set_vxlan_opt()
1190 memset(md, 0xff, sizeof(*md)); in fl_set_vxlan_opt()
1193 return sizeof(*md); in fl_set_vxlan_opt()
1211 md->gbp = nla_get_u32(tb[TCA_FLOWER_KEY_ENC_OPT_VXLAN_GBP]); in fl_set_vxlan_opt()
1212 md->gbp &= VXLAN_GBP_MASK; in fl_set_vxlan_opt()
1215 return sizeof(*md); in fl_set_vxlan_opt()
1223 struct erspan_metadata *md; in fl_set_erspan_opt() local
1226 md = (struct erspan_metadata *)&key->enc_opts.data[key->enc_opts.len]; in fl_set_erspan_opt()
1227 memset(md, 0xff, sizeof(*md)); in fl_set_erspan_opt()
[all …]
/net/netfilter/
Dnft_tunnel.c154 struct metadata_dst *md; member
419 struct metadata_dst *md; in nft_tunnel_obj_init() local
477 md = metadata_dst_alloc(priv->opts.len, METADATA_IP_TUNNEL, GFP_KERNEL); in nft_tunnel_obj_init()
478 if (!md) in nft_tunnel_obj_init()
481 memcpy(&md->u.tun_info, &info, sizeof(info)); in nft_tunnel_obj_init()
483 err = dst_cache_init(&md->u.tun_info.dst_cache, GFP_KERNEL); in nft_tunnel_obj_init()
485 metadata_dst_free(md); in nft_tunnel_obj_init()
489 ip_tunnel_info_opts_set(&md->u.tun_info, &priv->opts.u, priv->opts.len, in nft_tunnel_obj_init()
491 priv->md = md; in nft_tunnel_obj_init()
504 dst_hold((struct dst_entry *) priv->md); in nft_tunnel_obj_eval()
[all …]
/net/ipv6/
Dip6_gre.c555 struct erspan_metadata *pkt_md, *md; in ip6erspan_rcv() local
567 sizeof(*md)); in ip6erspan_rcv()
580 md = ip_tunnel_info_opts(info); in ip6erspan_rcv()
581 md->version = ver; in ip6erspan_rcv()
582 md2 = &md->u.md2; in ip6erspan_rcv()
586 info->options_len = sizeof(*md); in ip6erspan_rcv()
990 struct erspan_metadata *md; in ip6erspan_tunnel_xmit() local
1009 if (tun_info->options_len < sizeof(*md)) in ip6erspan_tunnel_xmit()
1011 md = ip_tunnel_info_opts(tun_info); in ip6erspan_tunnel_xmit()
1014 if (md->version == 1) { in ip6erspan_tunnel_xmit()
[all …]
/net/wireless/
Dtrace.h2250 __field(u16, md)
2256 __entry->md = ftie->md;
2260 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->md)
Dnl80211.c14640 ft_params.md = nla_get_u16(info->attrs[NL80211_ATTR_MDID]); in nl80211_update_ft_ies()
/net/core/
Dfilter.c4338 struct metadata_dst *md = this_cpu_ptr(md_dst); in BPF_CALL_4() local
4366 dst_hold((struct dst_entry *) md); in BPF_CALL_4()
4367 skb_dst_set(skb, (struct dst_entry *) md); in BPF_CALL_4()
4369 info = &md->u.tun_info; in BPF_CALL_4()
4412 const struct metadata_dst *md = this_cpu_ptr(md_dst); in BPF_CALL_3() local
4414 if (unlikely(info != &md->u.tun_info || (size & (sizeof(u32) - 1)))) in BPF_CALL_3()