datapath: Merge "struct dp_port" into "struct vport".
authorBen Pfaff <blp@nicira.com>
Fri, 3 Dec 2010 21:09:26 +0000 (13:09 -0800)
committerBen Pfaff <blp@nicira.com>
Fri, 3 Dec 2010 22:43:38 +0000 (14:43 -0800)
commite779d8d90d65297473febcf82ec44c9225cc4fe3
treee9707a52c2ffc4840dc4701c85e964895ff8b2e6
parent98563392dba5c82a9b952c421dec8b16c8a24023
datapath: Merge "struct dp_port" into "struct vport".

After the previous commit, which changed the datapath to always create and
attach a vport at the same time, and to always detach and delete a vport
at the same time, there is no longer any real distinction between a dp_port
and a vport.  This commit, therefore, merges the two together to simplify
code.  It might even improve performance, although I have not checked.

I wasn't sure at first whether the merged structure should be "struct
dp_port" or "struct vport".  I went with the latter since the "v" prefix
sounds cool.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
13 files changed:
datapath/actions.c
datapath/datapath.c
datapath/datapath.h
datapath/dp_notify.c
datapath/dp_sysfs.h
datapath/dp_sysfs_dp.c
datapath/dp_sysfs_if.c
datapath/tunnel.c
datapath/vport-internal_dev.c
datapath/vport-netdev.c
datapath/vport-patch.c
datapath/vport.c
datapath/vport.h