Add vxlan-bypass feature to IP6 forwarding path 51/4951/3
authorJohn Lo <loj@cisco.com>
Mon, 30 Jan 2017 18:12:10 +0000 (13:12 -0500)
committerNeale Ranns <nranns@cisco.com>
Tue, 31 Jan 2017 08:38:56 +0000 (08:38 +0000)
commit2b81eb830393fe88c8247cb9015bdaf4060f6ceb
tree1ff66d4856414902c71bb789e3d824d080790b57
parent61459c9be0f620f738cf049b1b33e1a2d13dc9a6
Add vxlan-bypass feature to IP6 forwarding path

Add vxlan-bypass feature which can be enabled on the IP6 underlay
interface which receive VXLAN packets to accelerate VXLAN decap
processing. The CLI to enable/disable it is:
    set interface ip6 vxlan-bypass <interface> [del]
The vxlan-bypass feature is already supported on the IP4 underlay
interface. The CLI to enable/disable it is:
    set interface ip vxlan-bypass <interface> [del]

Move vxlan-bypass API/CLI support code from decap.c to vxlan.c.
Also fixed two issues in the VXLAN decap path in the vxlan-input node:
1. Add verification of VXLAN packet FIB index with the encap-vrf-id
   of the VXLAN tunnel.
2. Fix checking of VXLANoIPv6 packet mcast DIP against that of the
   IP6 mcast VXLAN tunnel.

Change-Id: I2bad4074a468c48fbb8bb5ac64f6437190756ed2
Signed-off-by: John Lo <loj@cisco.com>
src/vat/api_format.c
src/vnet/ip/ip6.h
src/vnet/ip/ip6_forward.c
src/vnet/vxlan/decap.c
src/vnet/vxlan/vxlan.c
src/vnet/vxlan/vxlan.h
src/vnet/vxlan/vxlan_api.c