X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fbonding%2Fdevice.c;h=13ff644fd7306cf2bf6e54ce0e6d92bf7c818a08;hb=7ac053b27fee8f9e437cf7b61357943356381061;hp=e2459db3d293ca0e36cc7779ca8bc3219628b357;hpb=69fdfee5812cf59ca684aaab1d49cdb8689cb03b;p=vpp.git diff --git a/src/vnet/bonding/device.c b/src/vnet/bonding/device.c index e2459db3d29..13ff644fd73 100644 --- a/src/vnet/bonding/device.c +++ b/src/vnet/bonding/device.c @@ -104,6 +104,17 @@ bond_set_l2_mode_function (vnet_main_t * vnm, ethernet_set_rx_redirect (vnm, sif_hw, 1); } } + else if ((bif_hw->l2_if_count == 0) && (l2_if_adjust == -1)) + { + /* Just removed last L2 subinterface on this port */ + vec_foreach (sw_if_index, bif->slaves) + { + sif_hw = vnet_get_sup_hw_interface (vnm, *sw_if_index); + + /* Allow ip packets to go directly to ip4-input etc */ + ethernet_set_rx_redirect (vnm, sif_hw, 0); + } + } return 0; }