Skip to content

Commit

Permalink
controller: Send RARP/GARP for VIF post link state is up.
Browse files Browse the repository at this point in the history
Currently, GARP/RARP broadcast is sent for VIFs (part of logical
switch with localnet port) after iface-id is set.
This fix is to avoid packet loss during migration if iface-id
is set even before the VM migration is completed.

Signed-off-by: Shibir Basak <shibir.basak@nutanix.com>
Acked-by: Naveen Yerramneni <naveen.yerramneni@nutanix.com>
Signed-off-by: Shibir Basak <shibir.basak@nutanix.com>
Acked-by: Naveen Yerramneni <naveen.yerramneni@nutanix.com>
Acked-by: Mark Michelson <mmichels@redhat.com>
Acked-by: Mark Michelson <mmichels@redhat.com>
Signed-off-by: Mark Michelson <mmichels@redhat.com>
  • Loading branch information
shibir-basak authored and putnopvut committed Jun 17, 2024
1 parent 2b6f592 commit d345099
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions controller/ovn-controller.c
Original file line number Diff line number Diff line change
Expand Up @@ -1134,6 +1134,7 @@ ctrl_register_ovs_idl(struct ovsdb_idl *ovs_idl)
ovsdb_idl_add_table(ovs_idl, &ovsrec_table_queue);
ovsdb_idl_add_column(ovs_idl, &ovsrec_queue_col_other_config);
ovsdb_idl_add_column(ovs_idl, &ovsrec_queue_col_external_ids);
ovsdb_idl_add_column(ovs_idl, &ovsrec_interface_col_link_state);

chassis_register_ovs_idl(ovs_idl);
encaps_register_ovs_idl(ovs_idl);
Expand Down
4 changes: 4 additions & 0 deletions controller/pinctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -6343,6 +6343,10 @@ get_localnet_vifs_l3gwports(
if (!pb || pb->chassis != chassis) {
continue;
}
if (!iface_rec->link_state ||
strcmp(iface_rec->link_state, "up")) {
continue;
}
struct local_datapath *ld
= get_local_datapath(local_datapaths,
pb->datapath->tunnel_key);
Expand Down

0 comments on commit d345099

Please sign in to comment.