As interface is set to L3 mode, reset its output_node_index for l2-output 49/2049/2
authorJohn Lo <loj@cisco.com>
Thu, 21 Jul 2016 18:54:05 +0000 (14:54 -0400)
committerDave Barach <openvpp@barachs.net>
Thu, 21 Jul 2016 20:08:40 +0000 (20:08 +0000)
commit93a46917275e41b457b794e40a1f906ec3123d5d
tree0af6af995eeac5d083914298358a6487482af095
parent32f7bc1fac3388ff7c5c8ae260c11534dc7455e6
As interface is set to L3 mode, reset its output_node_index for l2-output

As an interface is changed from L2 bridging/xconenct to L3 mode, reset the
output_node_index for l2-output for the interface's sw_if_index. The reset
needs to be done in case the sw_if_index of this interface is freed and
reused for another interface type afterwards. Otherwise, the stale output
node may be used by l2-output for this sw_if_index and result in undesirable
behavior including the possibility of VPP crash.

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