Skip to content

Commit

Permalink
dpif-linux: Rename dpif-netlink; change to compile with MSVC.
Browse files Browse the repository at this point in the history
The patch contains the necessary modifications to compile and also to run
under MSVC.

Added the files to the build system and also changed dpif_linux to be under
a more generic name dpif_windows.

Added a TODO under the windows part in case we want to implement another
counterpart for epoll functions.

Signed-off-by: Alin Gabriel Serdean <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
Alin Gabriel Serdean authored and blp committed Sep 18, 2014
1 parent 1a9bb32 commit 93451a0
Show file tree
Hide file tree
Showing 9 changed files with 431 additions and 376 deletions.
2 changes: 1 addition & 1 deletion PORTING
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ requirements are unclear, please report this as a bug.
There are two existing dpif implementations that may serve as
useful examples during a port:

* lib/dpif-linux.c is a Linux-specific dpif implementation that
* lib/dpif-netlink.c is a Linux-specific dpif implementation that
talks to an Open vSwitch-specific kernel module (whose sources
are in the "datapath" directory). The kernel module performs
all of the switching work, passing packets that do not match any
Expand Down
6 changes: 4 additions & 2 deletions lib/automake.mk
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,8 @@ endif

if LINUX
lib_libopenvswitch_la_SOURCES += \
lib/dpif-linux.c \
lib/dpif-linux.h \
lib/dpif-netlink.c \
lib/dpif-netlink.h \
lib/netdev-linux.c \
lib/netdev-linux.h \
lib/netlink-notifier.c \
Expand All @@ -332,6 +332,8 @@ endif

if WIN32
lib_libopenvswitch_la_SOURCES += \
lib/dpif-netlink.c \
lib/dpif-netlink.h \
lib/netlink-notifier.c \
lib/netlink-notifier.h \
lib/netlink-protocol.h \
Expand Down
Loading

0 comments on commit 93451a0

Please sign in to comment.