diff options
author | Steven <sluong@cisco.com> | 2018-06-05 11:09:32 -0700 |
---|---|---|
committer | Steven <sluong@cisco.com> | 2018-06-05 11:09:32 -0700 |
commit | 9f781d84b0943b03af2a9fd0b7c4cef721d1d4c6 (patch) | |
tree | a78172c460d265c89d3717a5cb8cb45775fe523b /src/vnet/ip/ip6.h | |
parent | 439a122f3acd745dcb70e9b32bb518e43967afe4 (diff) |
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 <sluong@cisco.com>
Diffstat (limited to 'src/vnet/ip/ip6.h')
-rw-r--r-- | src/vnet/ip/ip6.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/vnet/ip/ip6.h b/src/vnet/ip/ip6.h index 4b24774c277..6f6724b3903 100644 --- a/src/vnet/ip/ip6.h +++ b/src/vnet/ip/ip6.h @@ -407,10 +407,9 @@ int vnet_ip6_nd_term (vlib_main_t * vm, ethernet_header_t * eth, ip6_header_t * ip, u32 sw_if_index, u16 bd_index); -void send_ip6_na (vlib_main_t * vm, const vnet_hw_interface_t * hi); +void send_ip6_na (vlib_main_t * vm, u32 sw_if_index); void send_ip6_na_w_addr (vlib_main_t * vm, - const ip6_address_t * addr, - const vnet_hw_interface_t * hi); + const ip6_address_t * addr, u32 sw_if_index); u8 *format_ip6_forward_next_trace (u8 * s, va_list * args); |