/kernel/linux/linux-6.6/include/net/ |
H A D | vxlan.h | 182 u32 gbp; member 584 struct vxlanhdr_gbp *gbp; in vxlan_build_gbp_hdr() local 586 if (!md->gbp) in vxlan_build_gbp_hdr() 589 gbp = (struct vxlanhdr_gbp *)vxh; in vxlan_build_gbp_hdr() 592 if (md->gbp & VXLAN_GBP_DONT_LEARN) in vxlan_build_gbp_hdr() 593 gbp->dont_learn = 1; in vxlan_build_gbp_hdr() 595 if (md->gbp & VXLAN_GBP_POLICY_APPLIED) in vxlan_build_gbp_hdr() 596 gbp->policy_applied = 1; in vxlan_build_gbp_hdr() 598 gbp->policy_id = htons(md->gbp in vxlan_build_gbp_hdr() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | tc_tun_vxlan.c | 118 u32 *gbp, *gbp_mask; in mlx5e_tc_tun_parse_vxlan_gbp_option() local 133 if (enc_opts.key->len != sizeof(*gbp) || in mlx5e_tc_tun_parse_vxlan_gbp_option() 139 gbp = (u32 *)&enc_opts.key->data[0]; in mlx5e_tc_tun_parse_vxlan_gbp_option() 150 MLX5_SET(fte_match_set_misc5, misc5_v, tunnel_header_0, *gbp); in mlx5e_tc_tun_parse_vxlan_gbp_option()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | test_tunnel_kern.c | 52 __u32 gbp; member 366 md.gbp = 0x800FF; /* Set VXLAN Group Policy extension */ in vxlan_set_tunnel_dst() 405 md.gbp = 0x800FF; /* Set VXLAN Group Policy extension */ in vxlan_set_tunnel_src() 435 if (key.local_ipv4 != ASSIGNED_ADDR_VETH1 || md.gbp != 0x800FF || in vxlan_get_tunnel_src() 438 bpf_printk("vxlan key %d local ip 0x%x remote ip 0x%x gbp 0x%x flags 0x%x\n", in vxlan_get_tunnel_src() 440 key.remote_ipv4, md.gbp, in vxlan_get_tunnel_src()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
H A D | test_tunnel_kern.c | 42 __u32 gbp; member 318 md.gbp = 0x800FF; /* Set VXLAN Group Policy extension */ in _vxlan_set_tunnel() 334 char fmt[] = "key %d remote ip 0x%x vxlan gbp 0x%x\n"; in _vxlan_get_tunnel() 349 key.tunnel_id, key.remote_ipv4, md.gbp); in _vxlan_get_tunnel()
|
/kernel/linux/linux-5.10/drivers/net/vxlan/ |
H A D | vxlan_core.c | 1740 struct vxlanhdr_gbp *gbp = (struct vxlanhdr_gbp *)unparsed; in vxlan_parse_gbp_hdr() local 1746 md->gbp = ntohs(gbp->policy_id); in vxlan_parse_gbp_hdr() 1753 if (gbp->dont_learn) in vxlan_parse_gbp_hdr() 1754 md->gbp |= VXLAN_GBP_DONT_LEARN; in vxlan_parse_gbp_hdr() 1756 if (gbp->policy_applied) in vxlan_parse_gbp_hdr() 1757 md->gbp |= VXLAN_GBP_POLICY_APPLIED; in vxlan_parse_gbp_hdr() 1761 skb->mark = md->gbp; in vxlan_parse_gbp_hdr() 2297 struct vxlanhdr_gbp *gbp; in vxlan_build_gbp_hdr() local 2299 if (!md->gbp) in vxlan_build_gbp_hdr() [all...] |
/kernel/linux/linux-5.10/net/sched/ |
H A D | act_tunnel_key.c | 151 NL_SET_ERR_MSG(extack, "Missing tunnel key vxlan option gbp"); in tunnel_key_copy_vxlan_opt() 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() 609 if (nla_put_u32(skb, TCA_TUNNEL_KEY_ENC_OPT_VXLAN_GBP, md->gbp)) { in tunnel_key_vxlan_opts_dump()
|
H A D | cls_flower.c | 1200 NL_SET_ERR_MSG(extack, "Missing tunnel key vxlan option gbp"); in fl_set_vxlan_opt() 1205 md->gbp = nla_get_u32(tb[TCA_FLOWER_KEY_ENC_OPT_VXLAN_GBP]); in fl_set_vxlan_opt() 1206 md->gbp &= VXLAN_GBP_MASK; in fl_set_vxlan_opt() 2716 if (nla_put_u32(skb, TCA_FLOWER_KEY_ENC_OPT_VXLAN_GBP, md->gbp)) in fl_dump_key_vxlan_opt()
|
/kernel/linux/linux-6.6/net/sched/ |
H A D | act_tunnel_key.c | 152 NL_SET_ERR_MSG(extack, "Missing tunnel key vxlan option gbp"); in tunnel_key_copy_vxlan_opt() 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() 613 if (nla_put_u32(skb, TCA_TUNNEL_KEY_ENC_OPT_VXLAN_GBP, md->gbp)) { in tunnel_key_vxlan_opts_dump()
|
H A D | cls_flower.c | 1302 NL_SET_ERR_MSG(extack, "Missing tunnel key vxlan option gbp"); 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() 3048 if (nla_put_u32(skb, TCA_FLOWER_KEY_ENC_OPT_VXLAN_GBP, md->gbp)) in fl_dump_key_vxlan_opt()
|
/kernel/linux/linux-5.10/net/netfilter/ |
H A D | nft_tunnel.c | 243 opts->u.vxlan.gbp = ntohl(nla_get_be32(tb[NFTA_TUNNEL_KEY_VXLAN_GBP])); in nft_tunnel_obj_vxlan_init() 562 htonl(opts->u.vxlan.gbp))) in nft_tunnel_opts_dump()
|
/kernel/linux/linux-5.10/net/ipv4/ |
H A D | ip_tunnel_core.c | 535 md->gbp = nla_get_u32(attr); in ip_tun_parse_opts_vxlan() 536 md->gbp &= VXLAN_GBP_MASK; in ip_tun_parse_opts_vxlan() 777 if (nla_put_u32(skb, LWTUNNEL_IP_OPT_VXLAN_GBP, md->gbp)) { in ip_tun_fill_encap_opts_vxlan()
|
/kernel/linux/linux-6.6/net/ipv4/ |
H A D | ip_tunnel_core.c | 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() 769 if (nla_put_u32(skb, LWTUNNEL_IP_OPT_VXLAN_GBP, md->gbp)) { in ip_tun_fill_encap_opts_vxlan()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
H A D | test_tunnel.sh | 167 id 2 dstport 4789 gbp remote 172.16.1.200 175 ip link add dev $DEV type $TYPE external gbp dstport 4789
|
/kernel/linux/linux-6.6/net/netfilter/ |
H A D | nft_tunnel.c | 271 opts->u.vxlan.gbp = ntohl(nla_get_be32(tb[NFTA_TUNNEL_KEY_VXLAN_GBP])); in nft_tunnel_obj_vxlan_init() 591 htonl(opts->u.vxlan.gbp))) in nft_tunnel_opts_dump()
|
/kernel/linux/linux-6.6/drivers/net/vxlan/ |
H A D | vxlan_core.c | 1577 struct vxlanhdr_gbp *gbp = (struct vxlanhdr_gbp *)unparsed; in vxlan_parse_gbp_hdr() local 1583 md->gbp = ntohs(gbp->policy_id); in vxlan_parse_gbp_hdr() 1590 if (gbp->dont_learn) in vxlan_parse_gbp_hdr() 1591 md->gbp |= VXLAN_GBP_DONT_LEARN; in vxlan_parse_gbp_hdr() 1593 if (gbp->policy_applied) in vxlan_parse_gbp_hdr() 1594 md->gbp |= VXLAN_GBP_POLICY_APPLIED; in vxlan_parse_gbp_hdr() 1598 skb->mark = md->gbp; in vxlan_parse_gbp_hdr() 2460 md->gbp = skb->mark; in vxlan_xmit_one()
|
/kernel/linux/linux-5.10/include/net/ |
H A D | vxlan.h | 180 u32 gbp; member
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
H A D | rtnetlink.sh | 495 ip -netns "$testns" link set dev "$vxlan" type vxlan gbp 2>/dev/null
|
/kernel/linux/linux-5.10/net/openvswitch/ |
H A D | flow_netlink.c | 604 opts.gbp = nla_get_u32(a); in vxlan_tun_opt_from_nlattr() 853 if (nla_put_u32(skb, OVS_VXLAN_EXT_GBP, opts->gbp) < 0) in vxlan_opt_to_nlattr()
|
/kernel/linux/linux-6.6/net/openvswitch/ |
H A D | flow_netlink.c | 616 opts.gbp = nla_get_u32(a); in vxlan_tun_opt_from_nlattr() 865 if (nla_put_u32(skb, OVS_VXLAN_EXT_GBP, opts->gbp) < 0) in vxlan_opt_to_nlattr()
|
/kernel/linux/linux-6.6/tools/testing/selftests/net/ |
H A D | rtnetlink.sh | 521 ip -netns "$testns" link set dev "$vxlan" type vxlan gbp 2>/dev/null
|