Add vxlan-bypass feature to IP4 forwarding path 33/4033/8
authorJohn Lo <loj@cisco.com>
Wed, 30 Nov 2016 17:51:39 +0000 (12:51 -0500)
committerJohn Lo <loj@cisco.com>
Thu, 1 Dec 2016 19:34:12 +0000 (19:34 +0000)
commit37682e1237f83f0f84cdc4f9f92aa74d8fe3c139
tree0ca723a11ab786245df26895365521b3f2fae11f
parent436d06b1c7d00e8c30ab055560724285a017290b
Add vxlan-bypass feature to IP4 forwarding path

Added vxlan-bypass feature which can be enabled on the underlay
interface which receive VXLAN packets to accelerate VXLAN decap
processing. The CLI to enable it is:
    set interface ip vxlan-bypass <interface> [del]
With this feature enabled on an interface, there is an overhead for
non-VXLAN packets at about 13 clocks per packet.
The API is created to support vxlan-bypass for both VXLANoIPv4 and
VXLANoIPv6. With this change, vxlan-bypass is only implemented for
IPv4 forwarding path.

Change-Id: Ica7239f642010b231eade7fd5009aa4b42c119d3
Signed-off-by: John Lo <loj@cisco.com>
vnet/vnet/ip/ip4.h
vnet/vnet/ip/ip4_forward.c
vnet/vnet/vxlan/decap.c
vnet/vnet/vxlan/vxlan.c
vnet/vnet/vxlan/vxlan.h
vpp-api-test/vat/api_format.c
vpp/vpp-api/api.c
vpp/vpp-api/custom_dump.c
vpp/vpp-api/vpe.api