[ovs-dev] [PATCH v2] odp-netlink.h: Autogenerate a version of odp-netlink for windows kernel.

Ben Pfaff blp at nicira.com
Mon Aug 11 20:49:40 UTC 2014


On Mon, Aug 11, 2014 at 11:43:22AM -0700, Ankur Sharma wrote:
> odp-netlink.h: Autogenerate a version of odp-netlink for windows kernel.
> 
> Autogenerated odp-netlink.h will not compile with windows kernel, as
> it refers to some userspace files like openvswitch/types.h and
> packets.h which hyperv extension does not access. Due to this the
> windows datapath compilation is broken on tip of tree. This patch
> intends to fix that.
> 
> In this patch we add a new sed script "extract-odp-netlink-windows-dp-h"
> to create OvsDpInterface.h. It works on similar lines as
> extract-odp-netlink-h, but avoids including the header files
> which are not available for driver.
> 
> Also, added saurabh's fix to not to include some header files
> in lib/netlink-protocol.h not needed by windows driver.
> 
> After this fix, a userspace build will be needed before windows
> kernel datapath can be built.
> 
> Tested that hyperv extension could be built after building
> the userspace. Verified vxlan tunnel based ping across
> hypervisors. Verified that odp-netlink-windows-dp.h is not
> built for linux platform. Ran 'make distcheck' to verify that
> nothing is broken on linux.
> 
> Signed-off-by: Ankur Sharma <ankursharma at vmware.com>
> Co-authored-by: Saurabh Shah <ssaurabh at vmware.com>
> Tested-by: Ankur Sharma <ankursharma at vmware.com>
> Reported-by: Alin Serdean <aserdean at cloudbasesolutions.com>
> Reported-by: Nithin Raju <nithin at vmware.com>
> Reported-at: https://github.com/openvswitch/ovs-issues/issues/21

Why does this generate the header in the source directory?  It should
generate it in the build directory.



More information about the dev mailing list