summaryrefslogtreecommitdiff
path: root/Makefile.am
Commit message (Collapse)AuthorAgeFilesLines
* This commit adds the windows installer to the OVS tree.Alin Gabriel Serdean2015-06-071-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requirements are the following: Visual Studio Community 2013 WiX Toolset 3.9 Microsoft_VC120_CRT_x86.msm More detailed information on the requirements and build instructions can be found under: https://github.com/cloudbase/ovs-windows-installer/blob/master/README.rst To run and make the installer issue the following: ./boot.sh ./configure CC=./build-aux/cccl LD="`which link`" \ LIBS="-lws2_32 -liphlpapi" --prefix="C:/openvswitch/usr" \ --localstatedir="C:/openvswitch/var" --sysconfdir="C:/openvswitch/etc" \ --with-pthread="C:/pthread" --with-vstudiotarget="Release" make clean && make -j16 windows_installer To uninstall one could use the following Powershell commandlets: $app = Get-WmiObject -Class Win32_Product | Where-Object ` { $_.Name -match "Open Vswitch" } $app.Uninstall() Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> Co-authored-by: Alessandro Pilotti <apilotti@cloudbasesolutions.com> Signed-off-by: Alessandro Pilotti <apilotti@cloudbasesolutions.com> Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
* Makefile.am: Clarify error message about missing distribution files.Justin Pettit2015-04-051-1/+1
| | | | | | | | The error message did not make it clear that the problem was due to files being in git but not the distribution. Signed-off-by: Justin Pettit <jpettit@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
* Documentation: Add documentation of group selection method propertySimon Horman2015-03-241-0/+1
| | | | | | | NTR selection method Signed-off-by: Simon Horman <simon.horman@netronome.com> Acked-by: Ben Pfaff <blp@nicira.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* bashcomp: Install and package completion scripts.Alex Wang2015-03-201-0/+2
| | | | | | | | | | | | | This commit makes the bash completion scripts be installed to $(sysconfdir)/bash_completion.d/ through 'make install' and to /etc/bash_completion.d/ through package installation. This will make the scripts available for each bash session. An alternative is to put scripts to /usr/share/bash_completion/ directory. However, this is not supported by earlier version of bash completion. Signed-off-by: Alex Wang <alexw@nicira.com>
* netdev-dpdk: add dpdk vhost-cuse portsKevin Traynor2015-03-191-0/+4
| | | | | | | | | | | | | | | This patch adds support for a new port type to userspace datapath called dpdkvhost. This allows KVM (QEMU) to offload the servicing of virtio-net devices to its associated dpdkvhost port. Instructions for use are in INSTALL.DPDK. This has been tested on Intel multi-core platforms and with clients that have virtio-net interfaces. Signed-off-by: Ciara Loftus <ciara.loftus@intel.com> Signed-off-by: Kevin Traynor <kevin.traynor@intel.com> Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com> Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
* xml2nroff: New program to generate a manpage from XML input.Ben Pfaff2015-02-191-0/+1
| | | | | | | | | I really can't stand nroff syntax. This makes it possible to install nroff but write in a more sensible XML syntax. The following commit adds the first user. Signed-off-by: Ben Pfaff <blp@nicira.com>
* appveyor: Provide a autobuild service for Windows.Gurucharan Shetty2015-02-051-0/+1
| | | | | | | | The appveyor.yml file added through this commit lets AppVeyor auto build service to run a build of OVS on Windows platform. Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
* ovs-command-completion: Autotest integration.Alex Wang2015-01-301-0/+1
| | | | | | | | | This commit integrates the unit tests defined in utilities/ovs-command-compgen-test.bash into 'make check'. The tests will be skipped if the current shell is not bash. Signed-off-by: Alex Wang <alexw@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
* vagrant: switch to use out of tree buildAndy Zhou2015-01-081-1/+1
| | | | | | | | | | | | | | | | Vagrant shared folder, at least on the default virtual box, does not support the creation of the socket files. If one were to build OVS under /vagrant, 'make check' would not work. Out of tree builds can be used to work around this issue. See Install.md for instructions. Since out of tree builds requires a clean source tree, Vagrantfile can not be a generated file. This commit removes Vagrantfile.in, commit Vagrantfile instead. Signed-off-by: Andy Zhou <azhou@nicira.com> Acked-by: Thomas Graf <tgraf@noironetworks.com>
* SECURITY: New document describing proposed security process for OVS.Ben Pfaff2015-01-061-1/+2
| | | | | | | | | | | | | | | | | Open vSwitch needs some kind of process for handling vulnerabilities. So far, we've been pretty lucky that way, but it can't last forever, and I think we'll be better off if we have at least the outline of an established process whenever a significant vulnerability comes along. Here's my draft of a process based on the documentation of the OpenStack process at https://wiki.openstack.org/wiki/Vulnerability_Management. I don't have a lot of experience with this kind of thing myself, so I'd appreciate critical review from anyone who does. Signed-off-by: Ben Pfaff <blp@nicira.com> Reviewed-by: Flavio Leitner <fbl@redhat.com> Acked-by: Justin Pettit <jpettit@nicira.com> Acked-by: Thomas Graf <tgraf@noironetworks.com>
* vagrant: Provide basic VagrantfileThomas Graf2015-01-051-1/+2
| | | | | | | | | | | | | | | This is a basic Vagrantfile which compiles and provisions the local OVS source tree in a Fedora 20 VM. The Vagrantfile.in can be extended to support additional distributions. To use this Vagrantfile: 1. Install Vagrant plus a compatible hypervisor 2. Run configure to translate Vagrantfile.in to Vagrantfile 3. Run `vagrant up` to create & provision the VM 4. Run `vagrant ssh` to log into the VM Signed-off-by: Thomas Graf <tgraf@noironetworks.com> Acked-by: Kyle Mestery <mestery@mestery.com>
* dist-docs: New utility to generate a documentation bundle for the website.Ben Pfaff2014-12-021-3/+13
| | | | | | | | | | | | | | This utility isn't going to be as portable as most of the Open vSwitch utilities, unfortunately. I'm happy to take improvements to make it able to work with, e.g., the "man" program from BSD. (I haven't tested with that program, but I suspect that it is somewhat different from the GNU version.) The output of this program can already be viewed at: http://openvswitch.org/support/dist-docs/ Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Thomas Graf <tgraf@noironetworks.com>
* Makefile: Add static check for misuse of LITTLE_ENDIAN and BIG_ENDIAN.Ben Pfaff2014-11-251-0/+17
| | | | | | | | I've pointed out two misuses of these macros in review in the last week, by different authors. It's time to make it difficult to screw this up. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Thomas Graf <tgraf@noironetworks.com>
* lib: Add support for pkgconfig for libopenvswitch.Rob Adams2014-11-131-0/+2
| | | | | | | | | Add rule to generate pkgconfig .pc file from configure. Install pkg-config file to $(libdir)/pkgconfig Signed-off-by: Rob Adams <readams@readams.net> Acked-by: Flavio Leitner <fbl@redhat.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* openvswitch: Userspace tunneling.Pravin B Shelar2014-11-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Following patch adds support for userspace tunneling. Tunneling needs three more component first is routing table which is configured by caching kernel routes and second is ARP cache which build automatically by snooping arp. And third is tunnel protocol table which list all listening protocols which is populated by vswitchd as tunnel ports are added. GRE and VXLAN protocol support is added in this patch. Tunneling works as follows: On packet receive vswitchd check if this packet is targeted to tunnel port. If it is then vswitchd inserts tunnel pop action which pops header and sends packet to tunnel port. On packet xmit rather than generating Set tunnel action it generate tunnel push action which has tunnel header data. datapath can use tunnel-push action data to generate header for each packet and forward this packet to output port. Since tunnel-push action contains most of packet header vswitchd needs to lookup routing table and arp table to build this action. Signed-off-by: Pravin B Shelar <pshelar@nicira.com> Acked-by: Jarno Rajahalme <jrajahalme@nicira.com> Acked-by: Thomas Graf <tgraf@noironetworks.com> Acked-by: Ben Pfaff <blp@nicira.com>
* doc: Convert docs to Markdown languageThomas Graf2014-10-281-25/+25
| | | | | | | | | | | Converts the majority of docs over to use the Markdown language for pretty printing on GitHub. It's a rough first convertion without exploiting the full potential of Markdown at this point. Section titles and indentation are fixed as needed. Minimal docs interlinking is added. Signed-off-by: Thomas Graf <tgraf@noironetworks.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* Makefile.am: Properly indent INSTALL.DPDKThomas Graf2014-10-201-1/+1
| | | | | Signed-off-by: Thomas Graf <tgraf@noironetworks.com> Acked-by: Pravin B Shelar <pshelar@nicira.com>
* docker: Integrate docker containers with Open vSwitch.Gurucharan Shetty2014-10-161-0/+1
| | | | | | | | | | | | | | Open vSwitch does not have native integration with Docker. INSTALL.Docker explains how Open vSwitch can be integrated with docker non-natively. ovs-docker is a helper script to add network interfaces to docker containers and to attach them as ports to OVS bridge. This script can be further enhanced as we understand different use cases. Signed-off-by: Gurucharan Shetty <gshetty@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
* README: Adding github markup and travis-ci build status to github readme page.Pritesh Kothari2014-10-011-0/+1
| | | | | Signed-off-by: Pritesh Kothari <pritesh.kothari@cisco.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* Makefiles: Add $(AM_V_GEN) annotations to clean up "make" output.Ben Pfaff2014-09-291-2/+2
| | | | | | | | The Open vSwitch "make" output was still pretty verbose even when configured with --enable-silent-rules. This cleans it up. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Joe Stringer <joestringer@nicira.com>
* build: Respect CFLAGS and LDFLAGS passed to makeThomas Graf2014-09-111-0/+2
| | | | | | | | | | | | | | | configure cannot expect that the user will not pass additional CFLAGS and LDFLAGS at make time [0]. Use OVS_CFLAGS and OVS_LDFLAGS instead to collect compiler and linker flags and substitute in Makefile.am. This allows for: ./configure --with-dpdk=[...] make CFLAGS=-Wno-error=foo [0] http://www.gnu.org/software/automake/manual/html_node/Flag-Variables-Ordering.html Signed-off-by: Thomas Graf <tgraf@noironetworks.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* cccl: Ability to enable compiler optimization.Gurucharan Shetty2014-09-041-0/+1
| | | | | | | | | | | | | | | | | | | | MSVC has a '-O2' compiler optimization flag which makes code run fast and is the recommended option for released code. For e.g., running "./tests/ovstest.exe test-cmap benchmark 1000000 3 1" shows a 3x improvement for some cmap micro-benchmarks. In the Visual Studio world, there is a concept of "release" build (fast code, harder to debug) and a "debug" build (easier to debug). The IDE provides this option and the IDE users expect something similar for command line build. So this commit, introduces a "--with-debug" configure option for Windows and does not use '-O2' as a compiler option when specified. This can be extended further if there are more compiler options that distinguish a "release" build vs "debug" build. Signed-off-by: Gurucharan Shetty <gshetty@nicira.com> Acked-by: Saurabh Shah <ssaurabh@vmware.com>
* Add build of ovsext.sln using MSBuildAlin Serdean2014-08-281-0/+10
| | | | | | | | | | | | | | | | | | | This commit adds to the automake build system the full build required by the forwarding extension solution. It will help a lot in the future CI to check the full build of the project. To configure the forwarding extension to be built one could use the following: ./configure CC=./build-aux/cccl LD="`which link`" LIBS="-lws2_32" \ --prefix="C:/openvswitch/usr" --localstatedir="C:/openvswitch/var" \ --sysconfdir="C:/openvswitch/etc" --with-pthread="C:/pthread" \ --with-vstudioddk="Win8.1 Release" Documentation will be updated in another patch. Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Saurabh Shah <ssaurabh@vmware.com>
* build: Add travis continuous integration supportThomas Graf2014-08-251-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This enables the use of travis-ci via github. Linking any ovs github repo to travis-ci [0] will automatically lead to a build and testsuite run being triggered for each new commit or pull requests against the repo. The introduction of any warnings will cause the build to fail as both gcc and clang are invoked with -Werror. The build matrix currently includes: * --disable-ssl * --with-linux=linux-3.14.7 * --with-dpdk=1.7.0 Each of these builds is performed with gcc+sparse and clang. The testsuite is only run for the --with-linux build to keep the total build time on an acceptable level. Build failures are reported to the author and commiter by email, through the travis-ci web UI, and in the github pull request. A full build report example can be found here [1] [0] http://travis-ci.org/ [1] https://travis-ci.org/tgraf/ovs/builds/33485228 Signed-off-by: Thomas Graf <tgraf@noironetworks.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* odp-netlink.h: Autogenerate a version of odp-netlink for windows kernel.Ankur Sharma2014-08-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. 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@vmware.com> Co-authored-by: Saurabh Shah <ssaurabh@vmware.com> Tested-by: Ankur Sharma <ankursharma@vmware.com> Reported-by: Alin Serdean <aserdean@cloudbasesolutions.com> Reported-by: Nithin Raju <nithin@vmware.com> Reported-at: https://github.com/openvswitch/ovs-issues/issues/21 Signed-off-by: Ben Pfaff <blp@nicira.com>
* Do not seemingly #include Linux-specific headers on other platforms.Ben Pfaff2014-08-041-0/+1
| | | | | | | | | | | | | | | | | | 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>
* datapath-windows: Kernel module for HyperV.Saurabh Shah2014-07-281-2/+4
| | | | | | | | | | | | | | | | | | The kernel switch extension has support for bridged back forwarding & tunneling over VXLAN. There is no Netlink integration as it is still being worked out. Co-Authored-By: Ankur Sharma <ankursharma@vmware.com> Signed-off-by: Ankur Sharma <ankursharma@vmware.com> Co-Authored-By: Eitan Eliahu <eliahue@vmware.com> Signed-off-by: Eitan Eliahu <eliahue@vmware.com> Co-Authored-By: Guolin Yang <gyang@vmware.com> Signed-off-by: Guolin Yang <gyang@vmware.com> Co-Authored-By: Linda Sun <lsun@vmware.com> Signed-off-by: Linda Sun <lsun@vmware.com> Co-Authored-By: Nithin Raju <nithin@vmware.com> Signed-off-by: Nithin Raju <nithin@vmware.com> Signed-off-by: Saurabh Shah <ssaurabh@vmware.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* Makefile.am: fix printf-check in out-of-tree buildDaniele Di Proietto2014-06-231-5/+7
| | | | | | | | | | | | | | | The introduction of a %zu in datapath/flow_netlink.c with commit c1fc1411 revealed a problem with out-of-tree builds. printf-check and thread-safety-check skip some directories with a 'grep -v'. In the case of an out-of-tree build, the grep -v pattern doesn't work, because it assumes the pathnames to be relative to the OVS root directory. This commit fixes the problem by changing the directory before executing any commands, like we do elsewhere in Makefile.am Signed-off-by: Daniele Di Proietto <ddiproietto@vmware.com> Signed-off-by: Joe Stringer <joestringer@nicira.com>
* makefile.am: Apply printf check only to OVS userspace.Jesse Gross2014-05-231-1/+2
| | | | | | | | We shouldn't restrict printf specifiers in kernel or third party code. Signed-off-by: Jesse Gross <jesse@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
* TODO: Add the project list from the hackathon.Ben Pfaff2014-04-221-0/+1
| | | | | | | | I've had a couple of requests for an updated project list, so this commit adds it to the tree. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Joe Stringer <joestringer@nicira.com>
* Makefile.am: Fix build hang when .git and Git are present but don't work.Ben Pfaff2014-04-111-1/+1
| | | | | | | | | | | | If the .git directory is there, and "git --version" works, but "git ls-files" fails to print any file names (e.g. perhaps because .git is a symlink to an inaccessible directory) then the "grep" command in the thread-safety-check rule would hang forever because it had an empty list of files and therefore expected to read from stdin. This fixes the problem by adding the name of an empty file to the command, which is harmless. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Alex Wang <alexw@nicira.com>
* SubmittingPatches: Rename to CONTRIBUTING.Joe Stringer2014-04-101-1/+1
| | | | | | | | | This makes the GitHub interface aware of the contribution guidelines, so it will be displayed to contributors when they submit issues or pull requests. Signed-off-by: Joe Stringer <joestringer@nicira.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* sparse: fix the order of include paths to make sparse happy.Pritesh Kothari2014-03-281-2/+2
| | | | | | | | | | This fix restores the order of include path such that the local include/ comes before the system /usr/include in the #include path. Thus by making sure that include/linux/types.h and include/linux/openvswitch.h take precedence over the similar files in /usr/include/ directory. Signed-off-by: Pritesh Kothari <pritesh.kothari@cisco.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* dpif-netdev: Add DPDK netdev.Pravin2014-03-211-0/+1
| | | | | | | | | | | | | | Following patch adds DPDK netdev-class to userspace datapath. Now OVS can use DPDK port for IO by just configuring DPDK port and then adding dpdk type port to userspace datapath. Refer to INSTALL.DPDK doc for further info. This is based a patch from Gerald Rogers. Signed-off-by: Gerald Rogers <gerald.rogers@intel.com> Signed-off-by: Pravin B Shelar <pshelar@nicira.com> Acked-by: Thomas Graf <tgraf@redhat.com>
* configure: Include pthread-win32 libraries for Windows build.Gurucharan Shetty2014-03-131-0/+2
| | | | | | | Signed-off-by: Gurucharan Shetty <gshetty@nicira.com> Signed-off-by: Saurabh Shah <ssaurabh@vmware.com> Co-authored-by: Saurabh Shah <ssaurabh@vmware.com> Acked-by: Ben Pfaff <blp@nicira.com>
* tests: Add support for automatically running Ryu tests against OVS.Ben Pfaff2014-02-141-2/+0
| | | | | | | | | | | | | | The Ryu controller comes with an extensive library of OpenFlow tests, but it doesn't seem so easy to me to run all of them against a development version of Open vSwitch. This commit introduces a Makefile target so that one can run all the Ryu tests with a simple "make check-ryu". This commit adds documentation for the new target to INSTALL. It also moves the documentation for the "check-oftest" target and the --enable-coverage configure option into INSTALL. Signed-off-by: Ben Pfaff <blp@nicira.com> Reviewed-by: Simon Horman <horms@verge.net.au>
* configure: Identify OpenSSL libraries in Windows.Gurucharan Shetty2014-01-311-0/+3
| | | | | Signed-off-by: Gurucharan Shetty <gshetty@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
* Makefile: Use AM_V_GEN instead of echo.Ethan Jackson2014-01-221-3/+3
| | | | | | | | | The AM_V_GEN macro fits more cleanly with the automake silent rules option. When enabled it will print "GEN <filename>" instead of simply echoing the command as before. Signed-off-by: Ethan Jackson <ethan@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
* ovsdbmonitor: Remove.Ben Pfaff2014-01-101-2/+1
| | | | | | | ovsdbmonitor was poorly maintained and not widely used. Acked-by: Flavio Leitner <fbl@redhat.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* Makefile.am: Always use C locale for "sort" and "comm".Ben Pfaff2013-12-301-4/+5
| | | | | | | | | | Otherwise, if the user changes locales between running the "dist-hook-git" and "distfiles" targets (e.g. in different invocations of "make"), then the "dist-hook-git" target might falsely report that the distribution is missing files. Reported-by: John Darrington <john@darrington.wattle.id.au> Signed-off-by: Ben Pfaff <blp@nicira.com>
* Add common definitions for Windows builds.Alin Serdean2013-12-271-0/+5
| | | | | Signed-off-by: Alin Serdean <aserdean at cloudbasesolutions.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* INSTALL.NetBSD: Some installation/setup notes for NetBSDYAMAMOTO Takashi2013-12-241-0/+1
| | | | | | | | Mainly for ovs developers who kindly want to test on NetBSD but not familiar with it. Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: Ben Pfaff <blp@nicira.com>
* openvswitch: Use libtool and allow building shared libsHelmut Schaa2013-12-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | Currently openvswitch builds all libraries static only. However, libopenvswitch is linked into nearly all openvswitch executables making it hardly possible to run openvswitch on embedded devices (for example running OpenWrt). Convert openvswitch to use libtool for building its internal libs. This allows "--enable-shared" and "--enable-static" as configure arguments. Default is "--disable-shared" thus keeping the current behavior with the only change that static libs are installed by "make install". Since the openvswitch library interfaces are internal and thus not stable (yet) encode the openvswitch version into the library name: libopenvswitch-2.0.90.so Binary size is reduced to around 1/3 when using shared libs. Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* configure: Add macros to check for #include_next and add a workaround.Ben Pfaff2013-12-131-0/+1
| | | | | | | This will be used for the #include_next in string.h in the following commit. Signed-off-by: Ben Pfaff <blp@nicira.com>
* Avoid printf type modifiers not supported by MSVC C runtime library.Alin Serdean2013-11-251-0/+13
| | | | | | | | | | | | | The MSVC C library printf() implementation does not support the 'z', 't', 'j', or 'hh' format specifiers. This commit changes the Open vSwitch code to avoid those format specifiers, switching to standard macros from <inttypes.h> where available and inventing new macros resembling them where necessary. It also updates CodingStyle to specify the macros' use and adds a Makefile rule to report violations. Signed-off-by: Alin Serdean <aserdean@cloudbasesolutions.com> Co-authored-by: Ben Pfaff <blp@nicira.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* Makefile.am: Distribute BUILD.Windows.Ben Pfaff2013-11-201-0/+1
| | | | | | | | | Fixes a build failure: The distribution is missing the following files: BUILD.Windows CC: Gurucharan Shetty <gshetty@nicira.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* cccl: A wrapper that calls visual c++ compiler.Gurucharan Shetty2013-11-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | One option to compile Open vSwitch code in windows is to use Visual c++ compiler. From http://cccl.sourceforge.net/ : "cccl is a wrapper around Microsoft Visual C++'s cl.exe and link.exe. It converts Unix compiler parameters into parameters understood by cl and link. cccl's main use is for using Unix build processes with Microsoft compilers. Using cccl in conjunction with ports of Unix utilities, it is possible to build many Unix packages using MSVC, without modifying the build process." There are couple of forks of the project in the internet. This particular piece is copied from: https://gitorious.org/swift/swift/source/\ cf9b391b40a9c59a620c8093d438370381949c60:autoconf/cccl Signed-off-by: Gurucharan Shetty <gshetty@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
* Makefile.am: Make PYTHONPATH work on Mingw.Gurucharan Shetty2013-11-181-2/+7
| | | | | | | | The ":" used as a seperator does not work when the make is run. ";" is the correct separator. Signed-off-by: Gurucharan Shetty <gshetty@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
* configure: check for uuid python moduleAnsis Atteka2013-10-181-4/+7
| | | | | | | | | | | | | | | After introducing commit a5ae88ff8a276e86c842ac102145432662bf711a "ovsdb-doc: generate vswitch.[pic|gv] files only if dot tool is available" Open vSwitch did not build anymore on hosts that did not have uuid python module installed (for example, we still support XenServer that still uses old python 2.4 and hence does not have uuid). After this commit ./configure will check whether uuid module is present and, if it isn't, then it will add python/compat to the PYTHONPATH. Acked-By: Ben Pfaff <blp@nicira.com> Signed-Off-By: Ansis Atteka <aatteka@nicira.com> Issue: 20476
* vtep: Initial checkin of vtep schema.Bruce Davie2013-10-171-0/+1
| | | | | | | | | | | | | | | The hardware VTEP OVSDB schema specifies relations that a VTEP can use to integrate physical ports into logical switches maintained by a network virtualization controller such as NVP. Co-authored-by: Ben Pfaff <blp@nicira.com> Co-authored-by: Kenneth Duda <kduda@aristanetworks.com> Co-authored-by: Justin Pettit <jpettit@nicira.com> Signed-off-by: Bruce Davie <bdavie@vmware.com> Signed-off-by: Ben Pfaff <blp@nicira.com> Signed-off-by: Kenneth Duda <kduda@aristanetworks.com> Signed-off-by: Justin Pettit <jpettit@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>