| /net/psample/ |
| A D | psample.c | 368 int out_ifindex = md->out_ifindex; in psample_sample_packet() 369 int in_ifindex = md->in_ifindex; in psample_sample_packet() 370 u32 trunc_size = md->trunc_size; in psample_sample_packet() 395 (md->user_cookie_len ? in psample_sample_packet() 397 (md->rate_as_probability ? in psample_sample_packet() 448 if (md->out_tc_valid) { in psample_sample_packet() 454 if (md->out_tc_occ_valid) { in psample_sample_packet() 461 if (md->latency_valid) { in psample_sample_packet() 498 if (md->user_cookie && md->user_cookie_len && in psample_sample_packet() 500 md->user_cookie)) in psample_sample_packet() [all …]
|
| /net/ipv4/ |
| A D | ip_tunnel_core.c | 134 if (!md || md->type != METADATA_IP_TUNNEL || in iptunnel_metadata_reply() 138 src = &md->u.tun_info; in iptunnel_metadata_reply() 525 struct vxlan_metadata *md = in ip_tun_parse_opts_vxlan() local 529 md->gbp = nla_get_u32(attr); in ip_tun_parse_opts_vxlan() 530 md->gbp &= VXLAN_GBP_MASK; in ip_tun_parse_opts_vxlan() 569 md->version = ver; in ip_tun_parse_opts_erspan() 770 struct vxlan_metadata *md; in ip_tun_fill_encap_opts_vxlan() local 790 struct erspan_metadata *md; in ip_tun_fill_encap_opts_erspan() local 801 if (md->version == 1 && in ip_tun_fill_encap_opts_erspan() 805 if (md->version == 2 && in ip_tun_fill_encap_opts_erspan() [all …]
|
| A 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()
|
| A D | ip_gre.c | 319 struct erspan_metadata *pkt_md, *md; in erspan_rcv() local 329 tun_id, sizeof(*md)); in erspan_rcv() 342 md->version = ver; in erspan_rcv() 343 md2 = &md->u.md2; in erspan_rcv() 350 info->options_len = sizeof(*md); in erspan_rcv() 546 struct erspan_metadata *md; in erspan_fb_xmit() local 561 if (tun_info->options_len < sizeof(*md)) in erspan_fb_xmit() 563 md = ip_tunnel_info_opts(tun_info); in erspan_fb_xmit() 566 version = md->version; in erspan_fb_xmit() 604 md->u.md2.dir, in erspan_fb_xmit() [all …]
|
| A D | ip_tunnel.c | 515 int tunnel_hlen, __be32 dst, bool md) in tnl_update_pmtu() argument 521 tunnel_hlen = md ? tunnel_hlen : tunnel->hlen; in tnl_update_pmtu() 550 daddr = md ? dst : tunnel->parms.iph.daddr; in tnl_update_pmtu() 694 bool md = false; in ip_tunnel_xmit() local 720 md = true; in ip_tunnel_xmit() 760 if (!md) in ip_tunnel_xmit() 784 if (connected && md) { in ip_tunnel_xmit() 804 else if (!md && connected) in ip_tunnel_xmit()
|
| /net/sched/ |
| A D | act_tunnel_key.c | 157 struct vxlan_metadata *md = dst; in tunnel_key_copy_vxlan_opt() local 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() 635 if (md->version == 1 && in tunnel_key_erspan_opts_dump() 639 if (md->version == 2 && in tunnel_key_erspan_opts_dump() 641 md->u.md2.dir) || in tunnel_key_erspan_opts_dump() [all …]
|
| A D | act_sample.c | 171 struct psample_metadata md = {}; in tcf_sample_act() local 184 md.in_ifindex = skb->skb_iif; in tcf_sample_act() 185 md.out_ifindex = skb->dev->ifindex; in tcf_sample_act() 187 md.in_ifindex = skb->dev->ifindex; in tcf_sample_act() 199 md.user_cookie = cookie_data; in tcf_sample_act() 200 md.user_cookie_len = user_cookie->len; in tcf_sample_act() 204 md.trunc_size = s->truncate ? s->trunc_size : skb->len; in tcf_sample_act() 205 psample_sample_packet(psample_group, skb, s->rate, &md); in tcf_sample_act()
|
| A D | cls_flower.c | 1335 memset(md, 0xff, sizeof(*md)); in fl_set_vxlan_opt() 1338 return sizeof(*md); in fl_set_vxlan_opt() 1360 return sizeof(*md); in fl_set_vxlan_opt() 1372 md->version = 1; in fl_set_erspan_opt() 1400 memset(&md->u.index, 0xff, sizeof(md->u.index)); in fl_set_erspan_opt() 1411 md->u.md2.dir = 1; in fl_set_erspan_opt() 1426 return sizeof(*md); in fl_set_erspan_opt() 1481 memset(md, 0xff, sizeof(*md)); in fl_set_pfcp_opt() 1507 return sizeof(*md); in fl_set_pfcp_opt() 3238 md->u.md2.dir) || in fl_dump_key_erspan_opt() [all …]
|
| /net/netfilter/ |
| A D | nft_tunnel.c | 182 struct metadata_dst *md; member 451 struct metadata_dst *md; in nft_tunnel_obj_init() local 509 md = metadata_dst_alloc(priv->opts.len, METADATA_IP_TUNNEL, in nft_tunnel_obj_init() 511 if (!md) in nft_tunnel_obj_init() 514 memcpy(&md->u.tun_info, &info, sizeof(info)); in nft_tunnel_obj_init() 518 metadata_dst_free(md); in nft_tunnel_obj_init() 524 priv->md = md; in nft_tunnel_obj_init() 537 dst_hold((struct dst_entry *) priv->md); in nft_tunnel_obj_eval() 538 skb_dst_set(skb, (struct dst_entry *) priv->md); in nft_tunnel_obj_eval() 682 struct ip_tunnel_info *info = &priv->md->u.tun_info; in nft_tunnel_obj_dump() [all …]
|
| /net/ipv6/ |
| A D | ip6_gre.c | 534 sizeof(*md)); in ip6erspan_rcv() 547 md = ip_tunnel_info_opts(info); in ip6erspan_rcv() 548 md->version = ver; in ip6erspan_rcv() 549 md2 = &md->u.md2; in ip6erspan_rcv() 554 info->options_len = sizeof(*md); in ip6erspan_rcv() 972 struct erspan_metadata *md; in ip6erspan_tunnel_xmit() local 994 md = ip_tunnel_info_opts(tun_info); in ip6erspan_tunnel_xmit() 997 if (md->version == 1) { in ip6erspan_tunnel_xmit() 1003 } else if (md->version == 2) { in ip6erspan_tunnel_xmit() 1006 md->u.md2.dir, in ip6erspan_tunnel_xmit() [all …]
|
| /net/openvswitch/ |
| A D | actions.c | 1282 struct psample_metadata md = {}; in execute_psample() local 1294 md.user_cookie = nla_data(a); in execute_psample() 1295 md.user_cookie_len = nla_len(a); in execute_psample() 1301 md.in_ifindex = OVS_CB(skb)->input_vport->dev->ifindex; in execute_psample() 1302 md.trunc_size = skb->len - OVS_CB(skb)->cutlen; in execute_psample() 1303 md.rate_as_probability = 1; in execute_psample() 1307 psample_sample_packet(&psample_group, skb, rate, &md); in execute_psample()
|
| /net/wireless/ |
| A D | trace.h | 2400 __field(u16, md) 2406 __entry->md = ftie->md; 2410 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->md)
|
| A D | nl80211.c | 15712 ft_params.md = nla_get_u16(info->attrs[NL80211_ATTR_MDID]); in nl80211_update_ft_ies()
|
| /net/core/ |
| A D | filter.c | 4816 struct metadata_dst *md = this_cpu_ptr(md_dst); in BPF_CALL_4() local 4846 dst_hold((struct dst_entry *) md); in BPF_CALL_4() 4847 skb_dst_set(skb, (struct dst_entry *) md); in BPF_CALL_4() 4849 info = &md->u.tun_info; in BPF_CALL_4() 4898 const struct metadata_dst *md = this_cpu_ptr(md_dst); in BPF_CALL_3() local 4901 if (unlikely(info != &md->u.tun_info || (size & (sizeof(u32) - 1)))) in BPF_CALL_3()
|