Lines Matching refs:gbp
1715 struct vxlanhdr_gbp *gbp = (struct vxlanhdr_gbp *)unparsed; in vxlan_parse_gbp_hdr() local
1721 md->gbp = ntohs(gbp->policy_id); in vxlan_parse_gbp_hdr()
1728 if (gbp->dont_learn) in vxlan_parse_gbp_hdr()
1729 md->gbp |= VXLAN_GBP_DONT_LEARN; in vxlan_parse_gbp_hdr()
1731 if (gbp->policy_applied) in vxlan_parse_gbp_hdr()
1732 md->gbp |= VXLAN_GBP_POLICY_APPLIED; in vxlan_parse_gbp_hdr()
1736 skb->mark = md->gbp; in vxlan_parse_gbp_hdr()
2300 struct vxlanhdr_gbp *gbp; in vxlan_build_gbp_hdr() local
2302 if (!md->gbp) in vxlan_build_gbp_hdr()
2305 gbp = (struct vxlanhdr_gbp *)vxh; in vxlan_build_gbp_hdr()
2308 if (md->gbp & VXLAN_GBP_DONT_LEARN) in vxlan_build_gbp_hdr()
2309 gbp->dont_learn = 1; in vxlan_build_gbp_hdr()
2311 if (md->gbp & VXLAN_GBP_POLICY_APPLIED) in vxlan_build_gbp_hdr()
2312 gbp->policy_applied = 1; in vxlan_build_gbp_hdr()
2314 gbp->policy_id = htons(md->gbp & VXLAN_GBP_ID_MASK); in vxlan_build_gbp_hdr()
2632 md->gbp = skb->mark; in vxlan_xmit_one()