VPP-110: vxlan encap node should never touch a deleted tunnel 31/1431/1
authorJohn Lo <loj@cisco.com>
Tue, 7 Jun 2016 13:14:07 +0000 (09:14 -0400)
committerJohn Lo <loj@cisco.com>
Tue, 7 Jun 2016 13:14:07 +0000 (09:14 -0400)
commit3ef822e1c3eedef8dd3cd95a000a012667641f37
tree25db4989f30fa255c5f68f70d6974218c8ad5bd9
parent30097b5d2270ddf124eb0a03fcd2ad85bab78834
VPP-110: vxlan encap node should never touch a deleted tunnel

Remove usage of dummy encap string for output from BD to a tunnel which
has been deleted. Instead, use a node l2-outpt-del-tunnel so that if
there are stale entries in the L2FIB for any deleted tunnel sw_if_index,
l2-output will send packets using this entry to the l2-output-tunnel-del
node which just setup the proper drop reason before sending packets
to the error-drop node to drop the packet.

Change-Id: I590982ee25e924ab74e2855c55c58baf29a9fad4
Signed-off-by: John Lo <loj@cisco.com>
vnet/vnet/l2/l2_output.c
vnet/vnet/l2/l2_output.h
vnet/vnet/vxlan/encap.c
vnet/vnet/vxlan/vxlan.c
vnet/vnet/vxlan/vxlan.h