Skip to content

Commit

Permalink
datapath-windows: Add Datapath.[ch] and OVS_USE_NL_INTERFACE CPP
Browse files Browse the repository at this point in the history
In this change we create peer to OvsIoctl.[ch] that would interface
with userspace using the netlink interface. The new files are called
Datapath.[ch]. We are not deleting OvsIoctl.[ch] yet. Datapath.[ch]
provides bare minimum functionality to register a pseudo device for
communication with userspace.

We also define a CPP called OVS_USE_NL_INTERFACE in the ovsext project.
This defines if the old interface (pre-netlink based) or the new
interface (netlink- based) should be enabled in the kernel. By default,
the value is 0 since the Datapath.[ch] are minimal. In the next change,
we'll turn it to 1.

Since Datapath.[ch] containes code copied from OvsIoctl.[ch], acking
the original author as well.

Signed-off-by: Nithin Raju <[email protected]>
Co-authored-by: Guolin Yang <[email protected]>
Acked-by: Alin Serdean <[email protected]>
Acked-by: Ankur Sharma <[email protected]>
Acked-by: Saurabh Shah <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
2 people authored and blp committed Aug 19, 2014
1 parent 1073319 commit 4f3988e
Show file tree
Hide file tree
Showing 19 changed files with 500 additions and 14 deletions.
2 changes: 2 additions & 0 deletions datapath-windows/automake.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ EXTRA_DIST += \
datapath-windows/misc/install.cmd \
datapath-windows/misc/uninstall.cmd \
datapath-windows/ovsext.sln \
datapath-windows/ovsext/Datapath.c \
datapath-windows/ovsext/Datapath.h \
datapath-windows/ovsext/OvsActions.c \
datapath-windows/ovsext/OvsAtomic.h \
datapath-windows/ovsext/OvsBufferMgmt.c \
Expand Down
Loading

0 comments on commit 4f3988e

Please sign in to comment.