The following vRouter changes are done for supporting EVPN type 5:
1) Introduce a new nh flag NH_FLAG_L3_VXLAN
2) On tx side, if the flag is set, overwrite the L2 packet's smac and
dmac with local vrouter MAC and dst vrouter MAC
(which is set in nh_vxlan_tun_l3_mac)
3) On rx side, no change
4) Introduce a new structure for vxlan tunnel which contains the
nh_vxlan_tun_l3_mac field
5) Change L2 VXLAN fields to the above structure so that
same VXLAN structure gets used for both L2 and L3
6) Enhance the nh utility to add type-5 routes using the flag l3_vxlan
Reviewed: https:/ /review. opencontrail. org/43510 github. com/Juniper/ contrail- vrouter/ commit/ 87c2f0f9de803fb 500a6618dd946ca 380eeed15b
Committed: http://
Submitter: Zuul v3 CI (<email address hidden>)
Branch: master
commit 87c2f0f9de803fb 500a6618dd946ca 380eeed15b
Author: Kiran Kasim <email address hidden>
Date: Mon Jun 4 15:13:38 2018 -0700
EVPN type 5 vRouter changes
The following vRouter changes are done for supporting EVPN type 5: tun_l3_ mac)
1) Introduce a new nh flag NH_FLAG_L3_VXLAN
2) On tx side, if the flag is set, overwrite the L2 packet's smac and
dmac with local vrouter MAC and dst vrouter MAC
(which is set in nh_vxlan_
3) On rx side, no change
4) Introduce a new structure for vxlan tunnel which contains the
nh_vxlan_tun_l3_mac field
5) Change L2 VXLAN fields to the above structure so that
same VXLAN structure gets used for both L2 and L3
6) Enhance the nh utility to add type-5 routes using the flag l3_vxlan
Refer review comments here: https:/ /review. opencontrail. org/#/c/ 41285/ /blueprints. launchpad. net/opencontrai l/+spec/ evpn-type- 5
Partial-Bug: 1636654
Implements: blueprint https:/
Change-Id: I70f5c163b7acb4 6cadc730946653f 98fe670323a