Skip to content

Commit

Permalink
VM traffic stop after agent restart.
Browse files Browse the repository at this point in the history
Closes-bug: #1794934
During an agent restart, the vif gets deleted.
This causes the stored vhostuser feature set to
be deleted. Delete the stored feature only if
VM exits.

Change-Id: I06724440905b27b1087f294f8d9b6361144611f4
  • Loading branch information
Jeya ganesh babu J committed Sep 29, 2018
1 parent 9a40873 commit 5991cac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dpdk/vr_uvhost_msg.c
Expand Up @@ -937,6 +937,7 @@ vr_uvh_cl_msg_handler(int fd, void *arg)
vr_uvhost_log("Client %s: shutdown at message receiving\n",
uvhm_client_name(vru_cl));
ret = -1;
vr_dpdk_del_persist_feature(uvhm_client_name(vru_cl));
goto cleanup;
}
} else if (vru_cl->vruc_msg_bytes_read < VHOST_USER_HSIZE) {
Expand Down Expand Up @@ -1130,7 +1131,6 @@ vr_uvh_nl_vif_del_handler(vrnu_vif_del_t *msg)
}
/* Unmmap guest memory. */
uvhm_client_munmap(vru_cl);
vr_dpdk_del_persist_feature(uvhm_client_name(vru_cl));
vr_uvhost_del_client(vru_cl);

return 0;
Expand Down

0 comments on commit 5991cac

Please sign in to comment.