Home
last modified time | relevance | path

Searched refs:gbp (Results 1 – 10 of 10) sorted by relevance

/linux-6.12.1/include/net/
Dvxlan.h182 u32 gbp; member
585 struct vxlanhdr_gbp *gbp; in vxlan_build_gbp_hdr() local
587 if (!md->gbp) in vxlan_build_gbp_hdr()
590 gbp = (struct vxlanhdr_gbp *)vxh; in vxlan_build_gbp_hdr()
593 if (md->gbp & VXLAN_GBP_DONT_LEARN) in vxlan_build_gbp_hdr()
594 gbp->dont_learn = 1; in vxlan_build_gbp_hdr()
596 if (md->gbp & VXLAN_GBP_POLICY_APPLIED) in vxlan_build_gbp_hdr()
597 gbp->policy_applied = 1; in vxlan_build_gbp_hdr()
599 gbp->policy_id = htons(md->gbp & VXLAN_GBP_ID_MASK); in vxlan_build_gbp_hdr()
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_tun_vxlan.c118 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()
/linux-6.12.1/tools/testing/selftests/bpf/progs/
Dtest_tunnel_kern.c348 md.gbp = 0x800FF; /* Set VXLAN Group Policy extension */ in vxlan_set_tunnel_dst()
387 md.gbp = 0x800FF; /* Set VXLAN Group Policy extension */ in vxlan_set_tunnel_src()
417 if (key.local_ipv4 != ASSIGNED_ADDR_VETH1 || md.gbp != 0x800FF || in vxlan_get_tunnel_src()
422 key.remote_ipv4, md.gbp, in vxlan_get_tunnel_src()
/linux-6.12.1/net/sched/
Dact_tunnel_key.c159 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()
Dcls_flower.c1356 md->gbp = nla_get_u32(tb[TCA_FLOWER_KEY_ENC_OPT_VXLAN_GBP]); in fl_set_vxlan_opt()
1357 md->gbp &= VXLAN_GBP_MASK; in fl_set_vxlan_opt()
3204 if (nla_put_u32(skb, TCA_FLOWER_KEY_ENC_OPT_VXLAN_GBP, md->gbp)) in fl_dump_key_vxlan_opt()
/linux-6.12.1/net/ipv4/
Dip_tunnel_core.c527 md->gbp = nla_get_u32(attr); in ip_tun_parse_opts_vxlan()
528 md->gbp &= VXLAN_GBP_MASK; in ip_tun_parse_opts_vxlan()
776 if (nla_put_u32(skb, LWTUNNEL_IP_OPT_VXLAN_GBP, md->gbp)) { in ip_tun_fill_encap_opts_vxlan()
/linux-6.12.1/net/netfilter/
Dnft_tunnel.c271 opts->u.vxlan.gbp = ntohl(nla_get_be32(tb[NFTA_TUNNEL_KEY_VXLAN_GBP])); in nft_tunnel_obj_vxlan_init()
598 htonl(opts->u.vxlan.gbp))) in nft_tunnel_opts_dump()
/linux-6.12.1/drivers/net/vxlan/
Dvxlan_core.c1580 struct vxlanhdr_gbp *gbp = (struct vxlanhdr_gbp *)unparsed; in vxlan_parse_gbp_hdr() local
1586 md->gbp = ntohs(gbp->policy_id); in vxlan_parse_gbp_hdr()
1594 if (gbp->dont_learn) in vxlan_parse_gbp_hdr()
1595 md->gbp |= VXLAN_GBP_DONT_LEARN; in vxlan_parse_gbp_hdr()
1597 if (gbp->policy_applied) in vxlan_parse_gbp_hdr()
1598 md->gbp |= VXLAN_GBP_POLICY_APPLIED; in vxlan_parse_gbp_hdr()
1602 skb->mark = md->gbp; in vxlan_parse_gbp_hdr()
2395 md->gbp = skb->mark; in vxlan_xmit_one()
/linux-6.12.1/tools/testing/selftests/net/
Drtnetlink.sh472 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan gbp
/linux-6.12.1/net/openvswitch/
Dflow_netlink.c624 opts.gbp = nla_get_u32(a); in vxlan_tun_opt_from_nlattr()
876 if (nla_put_u32(skb, OVS_VXLAN_EXT_GBP, opts->gbp) < 0) in vxlan_opt_to_nlattr()