aboutsummaryrefslogtreecommitdiff
path: root/build-aux
AgeCommit message (Collapse)Author
2012-05-02Global replace of Nicira Networks.Raju Subramanian
Replaced all instances of Nicira Networks(, Inc) to Nicira, Inc. Feature #10593 Signed-off-by: Raju Subramanian <rsubramanian@nicira.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
2012-04-02check-structs: Disallow uint<N>_t because ovs_be<N> should always be used.Ben Pfaff
The header files that check-structs checks should only contain big-endian data, never native-endian data, so disallow uint<N>_t entirely. (We had a couple of mistakes in this area until recently.) uint8_t is an obvious exception. Reported-by: Simon Horman <horms@verge.net.au> Reviewed-by: Simon Horman <horms@verge.net.au> Signed-off-by: Ben Pfaff <blp@nicira.com>
2012-03-27Add error codes for Open Flow v1.2Simon Horman
* Where Open Flow 1.2 breaks apart error codes defined in previous versions, provide all new definitions to previous versions and map the numeric error code to the first first definition supplied in ofp-errors.h. The case handled so far is: OFPERR_OFPBIC_BAD_EXP_TYPE -> { OFPERR_OFPBIC_BAD_EXPERIMENTER, OFPERR_OFPBIC_BAD_EXP_TYPE } * Where Open Flow 1.2 adds error codes that were previously defined as Nicira extension errors define the later in terms of the new codes. Signed-off-by: Simon Horman <horms@verge.net.au> [blp@nicira.com added better error checking in extract-ofp-errors, added unit tests, miscellaneous cleanup] Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Simon Horman <horms@verge.net.au>
2012-03-27ofp-errors: Rename "OF" to "OF1.0+", "NX" to "NX1.0+".Ben Pfaff
This seems like a more reasonable way to do things given that we will soon need "OpenFlow 1.1 and later" and "OpenFlow 1.1 only" keywords. Signed-off-by: Ben Pfaff <blp@nicira.com> Reviewed-by: Simon Horman <horms@verge.net.au>
2012-03-27extract-ofp-errors: Fix error message.Ben Pfaff
The error message should mention the keyword that caused the error, not some other random keyword from previous iterations. Signed-off-by: Ben Pfaff <blp@nicira.com> Reviewed-by: Simon Horman <horms@verge.net.au>
2012-03-07Move content of openflow.h into openflow-1.0.h.Ben Pfaff
This prepares for a gradual introduction of definitions from OpenFlow 1.1 and later, by making it clearer that the current definitions are specific to OpenFlow 1.0. Reviewed-by: Simon Horman <horms@verge.net.au> Signed-off-by: Ben Pfaff <blp@nicira.com>
2012-01-12Better abstract OpenFlow error codes.Ben Pfaff
This commit switches from using the actual protocol values of error codes internally in Open vSwitch, to using abstract values that are translated to and from protocol values at message parsing and serialization time. I believe that this makes the code easier to read and to write. This is also one step along the way toward OpenFlow 1.1 support because OpenFlow 1.1 renumbered a bunch of error codes. Signed-off-by: Ben Pfaff <blp@nicira.com>
2011-10-26Implement automatic dependency generation for manpages.Ben Pfaff
This ensures that manpages actually get rebuilt if any of the lib/*.man fragments that they depend upon are modified.
2011-10-26Move soexpand.pl into build-aux and make it non-executable.Ben Pfaff
Scripts for the build generally go in build-aux, so move soexpand.pl. soexpand.pl had the "executable" bit set, but it doesn't have a #! line and it's not a shell script, so that didn't make sense.
2011-10-04check-structs: Add check that OFP_ASSERT is checking the right structures.Ben Pfaff
This avoids a fairly common issue in which a developer cuts and pastes a structure definition and forgets to update the structure name inside the OFP_ASSERT, so that the new structure's size doesn't really get checked at all.
2011-02-05openflow: Use types and accessors for half-aligned 64-bit fields.Ben Pfaff
Without this commit, many of the unit tests for ofp-print.c fail with bus errors on RISC architectures (tested on sparc) and presumably so would any other code that uses these same struct members.
2011-01-12Automatically extract error types and codes for formatting.Ben Pfaff
2011-01-12python: Use os.path.basename instead of open-coding it.Ben Pfaff
Reported-by: Justin Pettit <jpettit@nicira.com>
2010-11-30vlog: Generate vlog-modules.def automatically.Ben Pfaff
2010-10-29Make the ovs_be<N> types generally available.Ben Pfaff
Using these types for data in network byte order makes code clearer, and allows the "sparse" checker to give warnings for misuse.
2010-10-29vlog: Make client supply semicolon for VLOG_DEFINE_THIS_MODULE.Ben Pfaff
It's kind of odd for VLOG_DEFINE_THIS_MODULE to supply its own semicolon, so this commit switches to the more common form.
2010-07-21vlog: Make the vlog module catalog program-specific.Ben Pfaff
Until now, the collection of vlog modules supported by a given OVS program was not specific to that program. That means that, for example, even though ovs-dpctl does not have anything to do with jsonrpc, it still has a vlog module for it. This is confusing, at best. This commit fixes the problem on some systems, in particular on ones that use GCC and the GNU linker. It uses the feature of the GNU linker described in its manual as: If an orphaned section's name is representable as a C identifier then the linker will automatically see PROVIDE two symbols: __start_SECNAME and __end_SECNAME, where SECNAME is the name of the section. These indicate the start address and end address of the orphaned section respectively. Systems that don't support these features retain the earlier behavior. This commit also fixes the annoyance that modifying lib/vlog-modules.def causes all sources files that #include "vlog.h" to recompile.
2010-07-21debian: Check for accurate Debian changelog version at build time too.Ben Pfaff
When we increment the Open vSwitch version number, we tend to forget to update it in debian/changelog at the same time. Right now this gets fixed up automatically at "make dist" time, but it's even better if we can always have it be correct in the repository. This commit should help with that, by making both "make" and "make dist" refuse to proceed if the version number is out of sync.
2010-06-17update-debian-changelog: Pass "-f" to "mv" to fix "make distcheck".Ben Pfaff
"make distcheck" unsets the "writable" bit of files as it installs them on "make dist", so to avoid an error (or a user query) updating debian/changelog in such a situation we must use the -f option.
2010-05-27debian: Fix version number check for changelog.Jesse Gross
The test to see if the current version is present in the Debian changelog wasn't properly quoted so we would add a new entry every time configure was run.
2010-05-27debian: Attempt to keep debian/changelog up-to-date.Ben Pfaff
Invariably we forget to update the version number in debian/changelog as we change OVS's own version number. This is embarrassing. This commit introduces two different times to automatically update the debian/changelog version number: whenever boot.sh runs and whenever "make dist" runs. In the latter case, only the version number in the distributed tarball is updated, but that seems OK. Reported by Joan Cirer <joan@ev0.net> most recently, and by others over the last year or so too.
2010-01-25Add build checks for portable OpenFlow structure padding and alignment.Ben Pfaff
This causes the build to fail with an error message if openflow.h contains a structure whose members are not aligned in a portable way.