Commit d2f8b272 by Thomas Parrott

network: Adds free_ovs_veth_vlan_args and allows trunks field to be freed

parent bfc01164
...@@ -421,9 +421,13 @@ struct ovs_veth_vlan_args { ...@@ -421,9 +421,13 @@ struct ovs_veth_vlan_args {
const char *nic; const char *nic;
const char *vlan_mode; /* Port VLAN mode. */ const char *vlan_mode; /* Port VLAN mode. */
short vlan_id; /* PVID VLAN ID. */ short vlan_id; /* PVID VLAN ID. */
const char *trunks; /* Comma delimited list of tagged VLAN IDs. */ char *trunks; /* Comma delimited list of tagged VLAN IDs. */
}; };
static inline void free_ovs_veth_vlan_args(struct ovs_veth_vlan_args *args)
{
free_disarm(args->trunks);
}
static int lxc_ovs_setup_bridge_vlan_exec(void *data) static int lxc_ovs_setup_bridge_vlan_exec(void *data)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment