From f2459fe7d91c4c325dfaa3ed18f56200b63ae27e Mon Sep 17 00:00:00 2001 From: Jesse Gross Date: Mon, 12 Apr 2010 15:53:39 -0400 Subject: 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. --- datapath/Modules.mk | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'datapath/Modules.mk') diff --git a/datapath/Modules.mk b/datapath/Modules.mk index 211f96fc2..1e8bc0479 100644 --- a/datapath/Modules.mk +++ b/datapath/Modules.mk @@ -12,20 +12,24 @@ dist_modules = $(both_modules) # Modules to distribute openvswitch_sources = \ actions.c \ datapath.c \ - dp_dev.c \ dp_notify.c \ dp_sysfs_dp.c \ dp_sysfs_if.c \ flow.c \ - table.c + table.c \ + vport.c \ + vport-internal_dev.c \ + vport-netdev.c openvswitch_headers = \ actions.h \ compat.h \ datapath.h \ - dp_dev.h \ dp_sysfs.h \ - flow.h + flow.h \ + vport.h \ + vport-internal_dev.h \ + vport-netdev.h dist_sources = $(foreach module,$(dist_modules),$($(module)_sources)) dist_headers = $(foreach module,$(dist_modules),$($(module)_headers)) -- cgit v1.2.1