datapath: Merge vport "attach" into "create" and "detach" into "destroy".
authorBen Pfaff <blp@nicira.com>
Fri, 3 Dec 2010 23:44:51 +0000 (15:44 -0800)
committerBen Pfaff <blp@nicira.com>
Fri, 3 Dec 2010 23:44:51 +0000 (15:44 -0800)
commit7237e4f4b6155eb4854cebc0a45fe845f0950b40
tree5849bcaff29e40abd33aa0653b543338137dcdf7
parente779d8d90d65297473febcf82ec44c9225cc4fe3
datapath: Merge vport "attach" into "create" and "detach" into "destroy".

These steps are sequentially in lockstep, so we might as well combine them.

This expands the region over which the vport_lock is held.  I didn't
carefully verify that this was OK.

This also eliminates the synchronize_rcu() call from destruction of tunnel
vports, since they didn't appear to me to need it.

It should be possible to eliminate the synchronize_rcu() from the netdev,
patch, and internal_dev vports, but this commit does not do that.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
datapath/datapath.c
datapath/dp_notify.c
datapath/vport-internal_dev.c
datapath/vport-netdev.c
datapath/vport-patch.c
datapath/vport.c
datapath/vport.h