Searched refs:gbp (Results 1 – 8 of 8) sorted by relevance
| /linux/include/net/ |
| H A D | vxlan.h | 182 u32 gbp; member 590 struct vxlanhdr_gbp *gbp; in vxlan_build_gbp_hdr() local 592 if (!md->gbp) in vxlan_build_gbp_hdr() 595 gbp = (struct vxlanhdr_gbp *)vxh; in vxlan_build_gbp_hdr() 598 if (md->gbp & VXLAN_GBP_DONT_LEARN) in vxlan_build_gbp_hdr() 599 gbp->dont_learn = 1; in vxlan_build_gbp_hdr() 601 if (md->gbp & VXLAN_GBP_POLICY_APPLIED) in vxlan_build_gbp_hdr() 602 gbp->policy_applied = 1; in vxlan_build_gbp_hdr() 604 gbp->policy_id = htons(md->gbp & VXLAN_GBP_ID_MASK); in vxlan_build_gbp_hdr()
|
| /linux/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()
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | test_tunnel_kern.c | 348 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/net/ipv4/ |
| H A D | ip_tunnel_core.c | 550 md->gbp = nla_get_u32(attr); in ip_tun_parse_opts_vxlan() 551 md->gbp &= VXLAN_GBP_MASK; in ip_tun_parse_opts_vxlan() 799 if (nla_put_u32(skb, LWTUNNEL_IP_OPT_VXLAN_GBP, md->gbp)) { in ip_tun_fill_encap_opts_vxlan()
|
| /linux/drivers/net/vxlan/ |
| H A D | vxlan_core.c | 1559 const struct vxlanhdr_gbp *gbp; in vxlan_parse_gbp_hdr() local 1562 gbp = (const struct vxlanhdr_gbp *)vh; in vxlan_parse_gbp_hdr() 1567 md->gbp = ntohs(gbp->policy_id); in vxlan_parse_gbp_hdr() 1575 if (gbp->dont_learn) in vxlan_parse_gbp_hdr() 1576 md->gbp |= VXLAN_GBP_DONT_LEARN; in vxlan_parse_gbp_hdr() 1578 if (gbp->policy_applied) in vxlan_parse_gbp_hdr() 1579 md->gbp |= VXLAN_GBP_POLICY_APPLIED; in vxlan_parse_gbp_hdr() 1583 skb->mark = md->gbp; in vxlan_parse_gbp_hdr() 2406 md->gbp = skb->mark; in vxlan_xmit_one()
|
| /linux/net/sched/ |
| H A D | cls_flower.c | 1347 NL_SET_ERR_MSG(extack, "Missing tunnel key vxlan option gbp"); in fl_set_vxlan_opt() 1352 md->gbp = nla_get_u32(tb[TCA_FLOWER_KEY_ENC_OPT_VXLAN_GBP]); in fl_set_vxlan_opt() 1353 md->gbp &= VXLAN_GBP_MASK; in fl_set_vxlan_opt() 3203 if (nla_put_u32(skb, TCA_FLOWER_KEY_ENC_OPT_VXLAN_GBP, md->gbp)) in fl_dump_key_vxlan_opt()
|
| /linux/net/openvswitch/ |
| H A D | flow_netlink.c | 624 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()
|
| /linux/tools/testing/selftests/net/ |
| H A D | rtnetlink.sh | 515 run_cmd_fail ip -netns "$testns" link set dev "$vxlan" type vxlan gbp
|