[ovs-dev] [netlink 03/16] datapath: Merge "struct dp_port" into "struct vport".

Ben Pfaff blp at nicira.com
Fri Sep 24 23:01:25 UTC 2010


On Thu, Sep 23, 2010 at 08:40:38PM -0700, Jesse Gross wrote:
> On Thu, Sep 23, 2010 at 7:11 PM, Jesse Gross <jesse at nicira.com> wrote:
> > You need a write memory barrier here.  Once the port is attached we
> > can start receiving packets from the vport.  There's no guarantee that
> > the cacheline containing the dp will make it before the pointer.  This
> > was previously done by the link from vport to dp_port.
> > rcu_assign_pointer() will do the job.
> 
> I take back my comments about memory barriers.  The lifespan of dp is
> always greater than the vport, which was not the case before.
> Therefore, if it is safe to access the vport on the current CPU, it is
> safe to access dp.

You can ignore my question from my earlier reply then.




More information about the dev mailing list