X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=datapath%2Fdp_sysfs_dp.c;h=3ecacd779a869489007260518b0dc525eac034e7;hb=a8643e447601201aabd1159966bd716e48378f97;hp=2582321c6aa614d5b3b2ea87d2925f4b2b3ce6f9;hpb=2a4999f3f33467f4fa22ed6e5b06350615fb2dac;p=sliver-openvswitch.git diff --git a/datapath/dp_sysfs_dp.c b/datapath/dp_sysfs_dp.c index 2582321c6..3ecacd779 100644 --- a/datapath/dp_sysfs_dp.c +++ b/datapath/dp_sysfs_dp.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2007-2012 Nicira Networks. + * Copyright (c) 2007-2012 Nicira, Inc. * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public @@ -362,7 +362,7 @@ static struct attribute_group bridge_group = { */ int ovs_dp_sysfs_add_dp(struct datapath *dp) { - struct vport *vport = rtnl_dereference(dp->ports[OVSP_LOCAL]); + struct vport *vport = ovs_vport_rtnl(dp, OVSP_LOCAL); struct kobject *kobj = vport->ops->get_kobj(vport); int err; @@ -398,7 +398,7 @@ int ovs_dp_sysfs_add_dp(struct datapath *dp) int ovs_dp_sysfs_del_dp(struct datapath *dp) { - struct vport *vport = rtnl_dereference(dp->ports[OVSP_LOCAL]); + struct vport *vport = ovs_vport_rtnl(dp, OVSP_LOCAL); struct kobject *kobj = vport->ops->get_kobj(vport); #ifdef CONFIG_NET_NS