datapath: Add generic virtual port layer.
authorJesse Gross <jesse@nicira.com>
Mon, 12 Apr 2010 19:53:39 +0000 (15:53 -0400)
committerJesse Gross <jesse@nicira.com>
Mon, 19 Apr 2010 13:11:57 +0000 (09:11 -0400)
commitf2459fe7d91c4c325dfaa3ed18f56200b63ae27e
treef1090136b8c9843acbb4c1d987c9480f1d5e7e9c
parent6b8a6c529b2bd8ce03584b132263dca5ac932c1b
datapath: Add generic virtual port layer.

Currently the datapath directly accesses devices through their
Linux functions.  Obviously this doesn't work for virtual devices
that are not backed by an actual Linux device.  This creates a
new virtual port layer which handles all interaction with devices.

The existing support for Linux devices was then implemented on top
of this layer as two device types.  It splits out and renames dp_dev
to internal_dev.  There were several places where datapath devices
had to handled in a special manner and this cleans that up by putting
all the special casing in a single location.
20 files changed:
datapath/Modules.mk
datapath/actions.c
datapath/actions.h
datapath/datapath.c
datapath/datapath.h
datapath/dp_dev.c [deleted file]
datapath/dp_dev.h [deleted file]
datapath/dp_notify.c
datapath/dp_sysfs.h
datapath/dp_sysfs_dp.c
datapath/dp_sysfs_if.c
datapath/flow.c
datapath/vport-internal_dev.c [new file with mode: 0644]
datapath/vport-internal_dev.h [new file with mode: 0644]
datapath/vport-netdev.c [new file with mode: 0644]
datapath/vport-netdev.h [new file with mode: 0644]
datapath/vport.c [new file with mode: 0644]
datapath/vport.h [new file with mode: 0644]
include/openvswitch/datapath-protocol.h
lib/dpif-linux.c