Do not seemingly #include Linux-specific headers on other platforms.
authorBen Pfaff <blp@nicira.com>
Mon, 4 Aug 2014 18:11:40 +0000 (11:11 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 4 Aug 2014 18:11:40 +0000 (11:11 -0700)
commit837eefc76b3c79bb790a4c4c2d0a314d81b71a28
treea1f69472e0cf641513506ac54eae1815e0ff0aa5
parentfa6395df71913c749f104978a736f238fb20bc08
Do not seemingly #include Linux-specific headers on other platforms.

Until now, the OVS source tree has had a whole maze of header files that
make "#include <linux/openvswitch.h>" work OK regardless of platform, but
this confuses everyone new to the tree, at first glance, and is difficult
to understand at second glance too.

This commit renames include/linux/openvswitch.h to
datapath/linux/compat/include/linux/openvswitch.h without other change,
then modifies the userspace build to generate a header that makes sense in
portable Open vSwitch userspace from that header.

It then removes all the remaining include/linux/* files since they are now
unused.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
15 files changed:
Makefile.am
build-aux/extract-odp-netlink-h [new file with mode: 0755]
datapath/linux/Modules.mk
datapath/linux/compat/include/linux/openvswitch.h [new file with mode: 0644]
debian/copyright.in
include/automake.mk
include/linux/automake.mk [deleted file]
include/linux/if_ether.h [deleted file]
include/linux/openvswitch.h [deleted file]
include/linux/types.h [deleted file]
include/openvswitch/types.h
lib/dpif-linux.h
lib/dpif.h
lib/odp-execute.c
lib/odp-util.h