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

Jesse Gross jesse at nicira.com
Fri Aug 8 18:26:03 UTC 2014


On Fri, Aug 8, 2014 at 11:09 AM, Ben Pfaff <blp at nicira.com> wrote:
> On Fri, Aug 08, 2014 at 06:03:38PM +0000, Samuel Ghinet wrote:
>> [QUOTE]If the transformation scripts become hard to maintain, we'll do
>> something else.[/QUOTE]
>> The script method still doesn't sound awesome.
>>
>> let's see... can we enclose the #include-s of openvswitch.h within an "#ifndef _WIN32"?

openvswitch.h is a Linux kernel header file. You can't put references
to Windows in it any more than you can put GPL code in the Windows
kernel.

I think the long term solution is to have OS-specific interface files
like you would have for any other functionality. This has potential
performance issues though due to the cost of translation. The script
method was the compromise to avoid this until the cost/benefit
changes.



More information about the dev mailing list