/*
- * Copyright (c) 2010 Nicira Networks.
+ * Copyright (c) 2010, 2011 Nicira Networks.
* Distributed under the terms of the GNU GPL version 2.
*
* Significant portions of this file may be copied from parts of the Linux
return sent_len;
}
-static int set_config(const void *config, const struct tnl_ops *tnl_ops,
- const struct vport *cur_vport,
- struct tnl_mutable_config *mutable)
+static int tnl_set_config(const void *config, const struct tnl_ops *tnl_ops,
+ const struct vport *cur_vport,
+ struct tnl_mutable_config *mutable)
{
const struct vport *old_vport;
const struct tnl_mutable_config *old_mutable;
get_random_bytes(&initial_frag_id, sizeof(int));
atomic_set(&tnl_vport->frag_id, initial_frag_id);
- err = set_config(parms->config, tnl_ops, NULL, mutable);
+ err = tnl_set_config(parms->config, tnl_ops, NULL, mutable);
if (err)
goto error_free_mutable;
goto error;
}
- err = set_config(port->config, tnl_vport->tnl_ops, vport, mutable);
+ err = tnl_set_config(port->config, tnl_vport->tnl_ops, vport, mutable);
if (err)
goto error_free;
kfree(peer_table);
}
-static int set_config(struct vport *vport, const void *config,
- struct patch_config *patchconf)
+static int patch_set_config(struct vport *vport, const void *config,
+ struct patch_config *patchconf)
{
struct patch_vport *patch_vport = patch_vport_priv(vport);
char peer_name[IFNAMSIZ];
goto error_free_vport;
}
- err = set_config(vport, parms->config, patchconf);
+ err = patch_set_config(vport, parms->config, patchconf);
if (err)
goto error_free_patchconf;
goto error;
}
- err = set_config(vport, port->config, patchconf);
+ err = patch_set_config(vport, port->config, patchconf);
if (err)
goto error_free;