From 9f781d84b0943b03af2a9fd0b7c4cef721d1d4c6 Mon Sep 17 00:00:00 2001 From: Steven Date: Tue, 5 Jun 2018 11:09:32 -0700 Subject: bond: send gratuitous arp when the active slave went down in active-backup mode - Modify the API send_ip6_na and send_ip4_garp to take sw_if_index instead of vnet_hw_interface_t and add call to build_ethernet_rewrite to support subinterface/vlan - Add code to bonding driver to send an event to bond_process when the first interface becomes active or when the active interface is down - Create a bond_process to walk the interface and the corresponding subinterfaces to send garp/ip6_na when an event is received. - Minor cleanup in bonding/node.c Note: dpdk bonding driver does not send garp/ip6_na for subinterfaces. There is no attempt to fix it here. But the infra is now done and should be easy to add the support. Change-Id: If3ecc4cd0fb3051330f7fa11ca0dab3e18557ce1 Signed-off-by: Steven --- src/plugins/gbp/gbp_endpoint.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/plugins/gbp/gbp_endpoint.c') diff --git a/src/plugins/gbp/gbp_endpoint.c b/src/plugins/gbp/gbp_endpoint.c index 91505daee2a..cffa6da836c 100644 --- a/src/plugins/gbp/gbp_endpoint.c +++ b/src/plugins/gbp/gbp_endpoint.c @@ -179,13 +179,11 @@ gbp_endpoint_update (u32 sw_if_index, if (ip46_address_is_ip4 (&gbpe->ge_key->gek_ip)) send_ip4_garp_w_addr (vlib_get_main (), &gbpe->ge_key->gek_ip.ip4, - vnet_get_sup_hw_interface - (vnet_get_main (), gepg->gepg_uplink_sw_if_index)); + gepg->gepg_uplink_sw_if_index); else send_ip6_na_w_addr (vlib_get_main (), &gbpe->ge_key->gek_ip.ip6, - vnet_get_sup_hw_interface - (vnet_get_main (), gepg->gepg_uplink_sw_if_index)); + gepg->gepg_uplink_sw_if_index); return (0); } -- cgit 1.2.3-korg