Clear L2 output config on interface mode change to L3 (VPP-651) 58/5558/3
authorJohn Lo <loj@cisco.com>
Tue, 28 Feb 2017 18:10:52 +0000 (13:10 -0500)
committerDamjan Marion <dmarion.lists@gmail.com>
Tue, 28 Feb 2017 21:59:13 +0000 (21:59 +0000)
commit7100b9cc6f1342a320c372bf746ae85cf815c41b
tree9dbc8a297ef13d196476d8286c099a712963c286
parentc47ed032c6d036a9f942fc9ced48874fad55b48c
Clear L2 output config on interface mode change to L3 (VPP-651)

With VPP-651, the L2 output config with L2-tag rewrite was not
cleared when a sub-interface is deleted. Subsequently, when the
same sw_if_index was reused for another interface, the L2 output
config with L2-tag rewrite remained on the new interface.

On deleting a (sub-)interface which is in L2 mode, it will be
changed to L3 mode first to clear any L2 config. The L2 to L3 mode
change path did address L2 input config cleanup. It is now fixed
to also clear L2 output config.

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