diff options
| author | Ameya Dharkar <adharkar@vmware.com> | 2019-05-16 18:38:03 -0700 |
|---|---|---|
| committer | Ameya Dharkar <adharkar@vmware.com> | 2019-05-17 10:50:21 -0700 |
| commit | 9d21b7c6f04146b518d0275d1c7f4388d9b33444 (patch) | |
| tree | 33cad7f29db19cc034d5a1a9a2cae80ea8ce4c6d /zebra/zebra_vxlan_private.h | |
| parent | 4d6124b45f670b8eec94143527c7afb3d4440825 (diff) | |
Zebra: Handle VxLAN encap in netlink rtmsg for FPM
- For data plane processing of VxLAN routes, add encap type and L3VNI info to
rtmsg message for FPM.
- Add "RTA_ENCAP_TYPE" attribute for VxLAN encap with value 100.
This value is not currently used for RTA_ENCAP_TYPE for any encap.
- If "RTA_ENCAP_TYPE" is 100, add "RTA_ENCAP" attribute with "RTA_VNI" as a
nested attribute of RTA_ENCAP
Format of RTA_VNI attribute:
Len(2 bytes) type (2 bytes) Value(4 bytes)(VNI)
00 08 : 00 00 : 1000
RTA_VNI attribute is a custom attribute.
Signed-off-by: Ameya Dharkar <adharkar@vmware.com>
Diffstat (limited to 'zebra/zebra_vxlan_private.h')
| -rw-r--r-- | zebra/zebra_vxlan_private.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/zebra/zebra_vxlan_private.h b/zebra/zebra_vxlan_private.h index 9f945442bb..1dd42b7083 100644 --- a/zebra/zebra_vxlan_private.h +++ b/zebra/zebra_vxlan_private.h @@ -430,6 +430,8 @@ struct nh_walk_ctx { struct json_object *json; }; +extern zebra_l3vni_t *zl3vni_from_vrf(vrf_id_t vrf_id); + #ifdef __cplusplus } #endif |
