Lines Matching refs:gbp
1714 struct vxlanhdr_gbp *gbp = (struct vxlanhdr_gbp *)unparsed; in vxlan_parse_gbp_hdr() local
1720 md->gbp = ntohs(gbp->policy_id); in vxlan_parse_gbp_hdr()
1727 if (gbp->dont_learn) in vxlan_parse_gbp_hdr()
1728 md->gbp |= VXLAN_GBP_DONT_LEARN; in vxlan_parse_gbp_hdr()
1730 if (gbp->policy_applied) in vxlan_parse_gbp_hdr()
1731 md->gbp |= VXLAN_GBP_POLICY_APPLIED; in vxlan_parse_gbp_hdr()
1735 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()
2302 gbp = (struct vxlanhdr_gbp *)vxh; in vxlan_build_gbp_hdr()
2305 if (md->gbp & VXLAN_GBP_DONT_LEARN) in vxlan_build_gbp_hdr()
2306 gbp->dont_learn = 1; in vxlan_build_gbp_hdr()
2308 if (md->gbp & VXLAN_GBP_POLICY_APPLIED) in vxlan_build_gbp_hdr()
2309 gbp->policy_applied = 1; in vxlan_build_gbp_hdr()
2311 gbp->policy_id = htons(md->gbp & VXLAN_GBP_ID_MASK); in vxlan_build_gbp_hdr()
2629 md->gbp = skb->mark; in vxlan_xmit_one()