bonding: feature arc may not be enabled for the slave interface 52/22852/2
authorSteven Luong <sluong@cisco.com>
Wed, 9 Oct 2019 17:29:47 +0000 (10:29 -0700)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Tue, 22 Oct 2019 11:21:05 +0000 (11:21 +0000)
commiteb0cea6919c1be60abc063dc7289818baee6b0e3
tree363f27d9b08641ecddd0529a63a001c293a8e1ad
parente36e5cbac4a5e7948f8a9bab9d22d6a9c31bc99c
bonding: feature arc may not be enabled for the slave interface

vnet_feature_enable_disable takes sw_if_index, not hw_if_index. If there
is a subinterface created prior to the slave interface is created,
sw_if_index and hw_if_index start to diverge and the problem will happen.

Type: fix

Signed-off-by: Steven Luong <sluong@cisco.com>
Change-Id: I11e1f099378832f83b748526c6cbeb56960fad3c
(cherry picked from commit 1a41a35b27da6921d6d86a9f1ad5f1b46e1185f7)
src/vnet/bonding/cli.c