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()
2299 struct vxlanhdr_gbp *gbp; in vxlan_build_gbp_hdr() local
2301 if (!md->gbp) in vxlan_build_gbp_hdr()
2304 gbp = (struct vxlanhdr_gbp *)vxh; in vxlan_build_gbp_hdr()
2307 if (md->gbp & VXLAN_GBP_DONT_LEARN) in vxlan_build_gbp_hdr()
2308 gbp->dont_learn = 1; in vxlan_build_gbp_hdr()
2310 if (md->gbp & VXLAN_GBP_POLICY_APPLIED) in vxlan_build_gbp_hdr()
2311 gbp->policy_applied = 1; in vxlan_build_gbp_hdr()
2313 gbp->policy_id = htons(md->gbp & VXLAN_GBP_ID_MASK); in vxlan_build_gbp_hdr()
2631 md->gbp = skb->mark; in vxlan_xmit_one()