bond: ping fails between l2 BD [VPP-1238] 72/11772/1
authorSteven <sluong@cisco.com>
Fri, 13 Apr 2018 02:36:19 +0000 (19:36 -0700)
committersteven luong <sluong@cisco.com>
Fri, 13 Apr 2018 20:02:14 +0000 (20:02 +0000)
commit743ff8430a67f823614f5be94b361778e6223ca2
tree25720057ad7818abc62118421a7c3591eb0fe9f9
parenta45bdcacebbb2ee4b4bd45cd2d805bb6b2aa671c
bond: ping fails between l2 BD [VPP-1238]

In dpdk based bonding, when the bond interface is configured for l2,
it automatically sets the bond interface to promiscuous mode and sets rx
redirect to ethernet-input. This allows traffic to be bridged to
non compute node facing interface when it is received from the compute
node interface.

For native vpp bonding, we need to do similar things. When the bond interface
is configured for l2, we set the slave interfaces to promiscuous mode
and set rx redirect to ethernet-input because dpdk does not know anything
about the bond interface. Likewise, when a new interface is enslaved, we also
need to do the same thing if the bond interface has already been configured
for l2.

Change-Id: I7e168008e8a4221be74929b2a20e6db0ce8f3110
Signed-off-by: Steven <sluong@cisco.com>
(cherry picked from commit 4f8863b21405d1ab3e067e978a60be72a343358b)
src/vnet/bonding/cli.c
src/vnet/bonding/device.c
src/vnet/interface.h
src/vnet/l2/l2_input.c