diff options
author | Pravin B Shelar <pshelar@nicira.com> | 2012-12-27 13:48:51 -0800 |
---|---|---|
committer | Pravin B Shelar <pshelar@nicira.com> | 2012-12-27 13:48:51 -0800 |
commit | 5ca1ba484bd9ade5116a49cf241cb98219d7d696 (patch) | |
tree | 8ce8e1ffc4fa5f606ce84b5700cca18f890a84a7 /datapath/vport.c | |
parent | a8643e447601201aabd1159966bd716e48378f97 (diff) | |
download | openvswitch-5ca1ba484bd9ade5116a49cf241cb98219d7d696.tar.gz |
openvswitch: Remove Linux bridge compatibility.
Currently brcompat does not work on master due to recent
datapath changes. We have decided to remove it as it is
not used very widely.
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
Diffstat (limited to 'datapath/vport.c')
-rw-r--r-- | datapath/vport.c | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/datapath/vport.c b/datapath/vport.c index d03be108d..a78ebfa3a 100644 --- a/datapath/vport.c +++ b/datapath/vport.c @@ -151,19 +151,6 @@ struct vport *ovs_vport_locate(struct net *net, const char *name) return NULL; } -static void release_vport(struct kobject *kobj) -{ - struct vport *p = container_of(kobj, struct vport, kobj); - kfree(p); -} - -static struct kobj_type brport_ktype = { -#ifdef CONFIG_SYSFS - .sysfs_ops = &ovs_brport_sysfs_ops, -#endif - .release = release_vport -}; - /** * ovs_vport_alloc - allocate and initialize new vport * @@ -197,11 +184,6 @@ struct vport *ovs_vport_alloc(int priv_size, const struct vport_ops *ops, vport->ops = ops; INIT_HLIST_NODE(&vport->dp_hash_node); - /* Initialize kobject for bridge. This will be added as - * /sys/class/net/<devname>/brport later, if sysfs is enabled. */ - vport->kobj.kset = NULL; - kobject_init(&vport->kobj, &brport_ktype); - vport->percpu_stats = alloc_percpu(struct vport_percpu_stats); if (!vport->percpu_stats) { kfree(vport); @@ -226,8 +208,7 @@ struct vport *ovs_vport_alloc(int priv_size, const struct vport_ops *ops, void ovs_vport_free(struct vport *vport) { free_percpu(vport->percpu_stats); - - kobject_put(&vport->kobj); + kfree(vport); } /** |