diff options
author | Steven <sluong@cisco.com> | 2018-04-23 17:06:24 -0700 |
---|---|---|
committer | Chris Luke <chris_luke@comcast.com> | 2018-04-24 18:31:55 +0000 |
commit | ce2db6a6a49be72e58f3394884f9dfda2383c0b8 (patch) | |
tree | 433e20a670fc6494fbe0e2d03f0b45d516d70c8b /src/vnet/bonding/device.c | |
parent | cd4d5b71dc4814863b67b4f53ef8e2e904aeaeab (diff) |
lacp: deleting the bond subinterface may cause lacp to lose the partner [VPP-1251]
Problem:
When the bond subinterface is removed, it was observed that we lost the lacp
partner. Show hardware shows rx counter goes up, but show interface does not
for the slave interfaces.
Cause:
We reset the interface promiscuous mode when the bond subinterface is deleted.
This causes dpdk not to accept any packet. Leave the interface in promiscuous
mode fixes the problem.
Other fixes:
There are few places we use hw_if_index as if they are sw_if_index. But they
don't necessarily have the same value. As soon as a subinterface is created,
they start to diverge. The fix is to use the correct API for the hw_if_index
and sw_if_index.
Change-Id: I1e6b8bca0a4aae396d217a141271cbf968500c91
Signed-off-by: Steven <sluong@cisco.com>
(cherry picked from commit 42c6599bf3057a7e8f4f00f5b6a9dd72af48d283)
Diffstat (limited to 'src/vnet/bonding/device.c')
-rw-r--r-- | src/vnet/bonding/device.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/vnet/bonding/device.c b/src/vnet/bonding/device.c index a27524089aa..9e1bb9517e4 100644 --- a/src/vnet/bonding/device.c +++ b/src/vnet/bonding/device.c @@ -99,18 +99,6 @@ 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); - ethernet_set_flags (vnm, sif_hw->hw_if_index, 0); - - /* Allow ip packets to go directly to ip4-input etc */ - ethernet_set_rx_redirect (vnm, sif_hw, 0); - } - } return 0; } |