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. With server mode
configuration of vhostuser, we should not delete the socket
file in /var/run/vrouter.

Change-Id: I0050ea47e91151c7f3cb2f80191aa0c2bdddec70
  • Loading branch information
Jeya ganesh babu J committed Oct 11, 2018
1 parent 312c3ca commit 4f26e8b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dpdk/vr_uvhost_client.c
Expand Up @@ -8,6 +8,7 @@
#include "vr_dpdk.h"
#include "vr_uvhost_client.h"
#include "vr_uvhost_util.h"
#include "vr_uvhost_msg.h"

static vr_uvh_client_t vr_uvh_clients[VR_UVH_MAX_CLIENTS];

Expand Down Expand Up @@ -62,7 +63,8 @@ vr_uvhost_del_client(vr_uvh_client_t *vru_cl)
vr_uvhost_del_fds_by_arg(vru_cl);

vru_cl->vruc_fd = -1;
unlink(vru_cl->vruc_path);
if (vru_cl->vruc_vhostuser_mode == VRNU_VIF_MODE_CLIENT)
unlink(vru_cl->vruc_path);

return;
}
Expand Down

0 comments on commit 4f26e8b

Please sign in to comment.