Skip to content

Commit

Permalink
Implement vr_host_interface_exit
Browse files Browse the repository at this point in the history
Before this patch the function was there
but did nothing.

Closes-Bug: #1463736
Change-Id: I1092b097440684a3c016dcd1d06aa3f9ef8d495c
  • Loading branch information
Sylvain Afchain authored and opencontrail-ci-admin committed Jun 24, 2015
1 parent 071c8d7 commit ca07d7c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions host/vr_host_interface.c
Expand Up @@ -194,7 +194,7 @@ vr_hinterface_create(unsigned int index, unsigned int hif_type,
hif = calloc(sizeof(*hif), 1);
if (!hif)
return NULL;

switch (hif_type) {
case HIF_TYPE_UDP:
ret = vr_hif_udp_create(hif, vif_type);
Expand Down Expand Up @@ -356,7 +356,14 @@ vr_host_vif_init(struct vrouter *router)
void
vr_host_interface_exit(void)
{
return;
struct vr_hinterface *hif;
int i;

for (i = 0; i < HIF_MAX_INTERFACES; i++) {
hif = hif_table[i];
if (hif)
vr_hinterface_delete(hif);
}
}

struct vr_host_interface_ops *
Expand Down

0 comments on commit ca07d7c

Please sign in to comment.