X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=datapath%2Fdp_sysfs_if.c;h=219a260683902c16265e255b8b5eab41380a8cd2;hb=c22c56bd746352f5c70a0d99bb3f548d03cfd105;hp=f564e9808f26650beeb068392e49137f7454a7f1;hpb=2a4999f3f33467f4fa22ed6e5b06350615fb2dac;p=sliver-openvswitch.git diff --git a/datapath/dp_sysfs_if.c b/datapath/dp_sysfs_if.c index f564e9808..219a26068 100644 --- a/datapath/dp_sysfs_if.c +++ b/datapath/dp_sysfs_if.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 @@ -209,7 +209,7 @@ struct sysfs_ops ovs_brport_sysfs_ops = { int ovs_dp_sysfs_add_if(struct vport *p) { struct datapath *dp = p->dp; - struct vport *local_port = rtnl_dereference(dp->ports[OVSP_LOCAL]); + struct vport *local_port = ovs_vport_rtnl(dp, OVSP_LOCAL); struct brport_attribute **a; int err;