Fix potential L2 forwarding crash with stale L2FIB entry (VPP-516) 12/3612/2
authorJohn Lo <loj@cisco.com>
Thu, 27 Oct 2016 15:17:02 +0000 (11:17 -0400)
committerDave Barach <openvpp@barachs.net>
Thu, 27 Oct 2016 17:29:10 +0000 (17:29 +0000)
commit0fc9bc1206cd71da79c6cf22e1633eedde2eeeac
tree6bc7c9f2d529b4e5978d7e00fec62a09ce6c29fa
parent218170be70aee7e26e327392af9b637354c33b2a
Fix potential L2 forwarding crash with stale L2FIB entry (VPP-516)

On moving interface between L2 and L3 forwarding modes, adjust the
l2-output node next index for the sw_if_index of the interface so
packet output via stale MAC entries in L2 FIB will be dropped.

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