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

Samuel Ghinet sghinet at cloudbasesolutions.com
Fri Aug 8 14:40:52 UTC 2014


Hello guys,

I've got an idea, tell me what you think:
We could replace "openvswitch.h" on both platforms with something more generic and platform independent.
This would hold, say, the enum constants and msg constants. The platform-independent "openvswitch.h" must not #include any header.

Then, each implementation (here, linux, and windows) would make their own implementation-specific, e.g. "openvswitch-linux.h" and "openvswitch-windows.h" which both include the generic and platform independent "openvswitch.h"

In the impementation-specific headers we could also add typedefs, if this would be helpful / required by the implementation.

I strongly believe we shouldn't use a script to do this. It would hinder maintainability and clarity.

Sam



More information about the dev mailing list