aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-07-11configure: Pass correct -target option to "cgcc" in the common case.Ben Pfaff
The "cgcc" script included with sparse guesses the target architecture based on the host architecture instead of based on the GCC architecture. This means that it often guesses wrong on biarch systems, e.g. my Linux kernel is x86_64 but userspace is i686 and thus GCC targets i686 by default. This fixes the problem by passing an explicit "-target=i86" to cgcc if GCC targets x86 or "-target=x86_64" if GCC targets x86_64. Bug #6312. Reported-by: Ethan Jackson <ethan@nicira.com>
2011-07-08INSTALL.bridge: Fix suggested ovs-brcompatd invocation.Ben Pfaff
ovs-brcompatd no longer accepts any non-option arguments. Also, -vANY:console:EMER is unnecessary, because --detach now implies disabling logging to the console.
2011-07-08ovsdb: Remove useless "return;" in ovsdb_jsonrpc_session_get_status().Ben Pfaff
2011-07-08packets: Remove unneeded !! from eth_addr_is_local().Ben Pfaff
There's no value in using !! on an operand of && or || as done here.
2011-07-08vconn-stream: Always call the stream's run function from vconn_stream_run().Ben Pfaff
The stream's run function ensures that data buffered in the stream itself gets pushed to the network. Only the SSL stream class has such a run function, which means that SSL stream data failed to be pushed to the remote peer in a timely manner in some cases. Many thanks to Alex Yip for narrowing this down. Reported-by: Alex Yip <alex@nicira.com> Tested-by: Alex Yip <alex@nicira.com> Bug #6221.
2011-07-07ovsdb-tool: Put version number in comment when compacting or converting.Ben Pfaff
Adding the version number can make it clear what version of OVS screwed something up as part of an upgrade or downgrade.
2011-07-06ovsdb: Fix segfault in ovsdb_file_txn_row_from_json().Ben Pfaff
If 'error' is nonnull then we destroy the row, so we must not try to reuse the row immediately after that. Support request #6155. Repoted-by: Geoff White <gwhite@nicira.com>
2011-07-06ovs-ctl: Fix indentation of some headings.Ben Pfaff
Reported-by: Dan Wendlandt <dan@nicira.com>
2011-07-06python: Make invalid UTF-8 sequence messages consistent across Python versions.Ben Pfaff
Given the invalid input <C0 22>, some versions of Python report <C0> as the invalid sequence and other versions report <C0 22> as the invalid sequence. Similarly, given input <ED 80 7F>, some report <ED 80> and others report <ED 80 7F> as the invalid sequence. This caused spurious test failures for the test "no invalid UTF-8 sequences in strings - Python", so this commit makes the messages consistent by dropping the extra trailing byte from the message. I first noticed the longer sequences <C0 22> and <ED 80 7F> on Ubuntu 10.04 with python version 2.6.5-0ubuntu1, but undoubtedly it exists elsewhere also.
2011-07-06debian: Remove obsolete reference to var/log/core.Ben Pfaff
Commit 14c3b136 "debian: Remove corekeeper package" removed the var/log/core directory from the Debian packaging, but I missed this part.
2011-07-01ofproto: Rename "private.h" to "ofproto->provider.h".Justin Pettit
To be more consistent with other providers, rename "private.h" to "ofproto-provider.h".
2011-07-01PORTING: Add some minor clarifications.Justin Pettit
2011-07-01ovs-ofctl: Document "in_port" action in man page.Justin Pettit
2011-07-01connmgr: Free controller info in the same module where it's allocated.Andrew Evans
Make ofproto_free_ofproto_controller_info() just a passthrough to connmgr_free_controller_info() so the allocation and freeing of memory in the controller info structure is done in the same place.
2011-07-01bridge: Update controller connection status correctly.Andrew Evans
Updates to status-related columns in the Controller table can be lost if there are multiple bridges with different sets of controllers. This commit fixes this behavior by first accumulating status for all controllers on all bridges, then making one pass over all rows in the Controller tables, updating the status of each. Bug #6185. Reported-by: Michael Hu <mhu@nicira.com>
2011-07-01bridge: Fix null pointer dereference.Ben Pfaff
If the netdev_open() fails then iface->netdev will be NULL and iface_refresh_stats() will cause a null pointer dereference in netdev_get_stats(). Fixes a problem introduced by commit 1101a0b47 "bridge: Populate interface status/statistics as soon as a port is added." Reported-by: Aaron Rosen <arosen@clemson.edu>
2011-06-30tunneling: Force selection of an IP ID with GRE.Jesse Gross
By default we set the DF bit on tunneled packets because we want to get path MTU discovery from the underlying network. In turn this causes Linux to leave the IP ID as 0 because it believes that fragmentation can never occur. However, with GRE fragmentation is still possible because we may get a large packet to be encapsulated and let the local IP stack do fragmentation. As long as packets are kept in order fragments are not misassociated and everything works fine. However, if there is reordering in the underlying network then packets can become corrupted. This forces selection of an IP ID for GRE packets to avoid misassociation. Bug #6128 Signed-off-by: Jesse Gross <jesse@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
2011-06-30ofp-util: Centralize decoding of OpenFlow actions.Ben Pfaff
This significantly simplifies code in ofp-print and ofproto-dpif and is likely to simplify any new ofproto implementations whose support for actions differs from ofproto-dpif.
2011-06-30ofp-util: Simplify iteration through OpenFlow actions.Ben Pfaff
The existing actions_first() and actions_next() iterator functions are not much like the other iteration constructs found throughout the Open vSwitch tree. Also, they only work with actions that have already been validated, so there are cases where they cannot be used. This commit adds new macros for iterating through OpenFlow actions, one for actions that have been validated and one for actions that have not, and adapts the existing users. The following commit will further refine action parsing and add more users.
2011-06-30ofp-util: Rename OFPUTIL_INVALID to OFPUTIL_MSG_INVALID.Ben Pfaff
An upcoming commit will introduce new OPFUTIL_* constants for actions. It seems best to be able to visually distinguish the contants. Most of the existing constants start with a good prefix, but OFPUTIL_INVALID does not, so rename it.
2011-06-30classifier: Print ARP opcode as "arp_op" instead of "opcode".Ben Pfaff
"opcode" is not very specific. All the other ARP fields have an "arp_" prefix, so this commit adds one for the opcode too.
2011-06-30ofproto: Simplify bucket finding in facet_max_idle()Simon Horman
The existing dual-loop setup is unnecessary as the outer loop only skips to the first non-zero value and then exits once the inner loop completes. Zero values in the inner loop have no affect on its logic. Signed-off-by: Simon Horman <horms@verge.net.au> [pushed declaration of subtotal out to function scope] Signed-off-by: Ben Pfaff <blp@nicira.com>
2011-06-30ofproto: Fix typo in documentation.Ben Pfaff
Using .RS instead of .RE caused the rest of the manpage to be indented two levels too deep.
2011-06-29xenserver: Restart HA daemon after force-reload-kmod.Ben Pfaff
Otherwise its heartbeats start failing after the reload and the XenServer reboots after a minute or so. Thanks to Justin Pettit for figuring out that this was HA-related. Bug #5706. Reported-by: Henrik Amren <henrik@nicira.com>
2011-06-29ovs-ctl: Fix ovs-dpctl invocation.Ben Pfaff
There's no $dpctl variable so this always failed.
2011-06-29bond: Drop packets on slaves disabled by LACP.Ethan Jackson
Theoretically, when LACP is configured, a bond shouldn't receive any packets on disabled slaves. This patch enforces that invariant.
2011-06-29datapath: Support Linux 3.0Simon Horman
This trivially supports linux 3.0 by incrementing the version check. Signed-off-by: Simon Horman <horms@verge.net.au> Signed-off-by: Jesse Gross <jesse@nicira.com>
2011-06-28utilities: Update gitignore.Ethan Jackson
2011-06-28ofp-parse: Fix invalid memory use.Ethan Jackson
In some cases, parsing of the note action could cause a realloc which would result in the use of memory which was no longer allocated.
2011-06-28bridge: Populate interface status/statistics as soon as a port is added.Andrew Evans
Currently there's a lag of up to five seconds before the status and statistics columns in the Interface table are populated when a port is first added to a bridge. This may confuse systems that expect those columns to be populated right away. Bug #6145.
2011-06-27bond: Drop packets on backup slaves.Ethan Jackson
Currently, OVS accepts incoming traffic on all slaves participating in a bond. In Linux active-backup bonding, all traffic which comes in on backup slaves is dropped. This patch causes OVS to do the same. Bug #6125.
2011-06-24datapath: Rename linux-2.6 and compat-2.6 directories.Jesse Gross
The linux-2.6 and compat-2.6 directories apply equally to the upcoming Linux 3.0 release, so this drops the 2.6 suffix and updates Makefiles. Signed-off-by: Jesse Gross <jesse@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
2011-06-24ovsdb: Synchronize comments and code in ovsdb_file_commit().Ben Pfaff
The comments and the code didn't match, so make them agree.
2011-06-23Debian: set source format to 3.0 (quilt)Simon Horman
This is my preferred package format as it allows changes to be added as patches when the Debian package needs to be updated between upstream releases. I have been making this change in the Debian packages so it seems as well to include it upstream. [Update to debian/automake.mk by Ben Pfaff.]
2011-06-23datapath: Add missing header.Jesse Gross
The internal dev vport really needs hardirq.h but doesn't depend directly on it and has relied on it being included from other sources. Recent kernels broke this, so explicitly add the header. Signed-off-by: Jesse Gross <jesse@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
2011-06-23ovs-ofctl: Accept only valid flow_mod and flow_stats_request fields.Ben Pfaff
OpenFlow commands have several idiosyncratic fields that are used in some cases and ignored in others. Until now, ovs-ofctl has been lax about allowing some of them in places where they are ignored. This commit tightens the checks to exactly what is allowed. Bug #5979. Reported-by: Reid Price <reid@nicira.com>
2011-06-23ovs-ctl: Use iptables -n -L instead of -S for compatibility.Ben Pfaff
The -S command isn't present in old versions of iptables, including the version installed on Citrix XenServer. We have to use -n -L instead. Bug #6071.
2011-06-23ovs-ctl: Fix incorrect error message.Ben Pfaff
The sense of the test was wrong. Bug #6071.
2011-06-22xenserver: Update all external_ids in tap interfaces.Ethan Jackson
Commit 400430 "xenserver: Give tap devices iface-ids." copies the iface-id from vifs to their related tap device. It turns out this is not sufficient, so this commit copies all relevant external_ids over. Requested-by: Pankaj Thakkar <thakkar@nicira.com> Signed-off-by: Ethan Jackson <ethan@nicira.com> Bug #5954.
2011-06-22configure: Fix typo in user message.Ben Pfaff
2011-06-22configure: Fix --with-linux when environment contains KSRC.Ben Pfaff
When "configure"'s environment contains KSRC, "configure" would use it in preference to the value specified on --with-linux. This caused a problem for module-assistant builds in particular.
2011-06-22configure: Do not reject Linux 3.0 at configure time.Ben Pfaff
Until now, the configure script has rejected any version of Linux other than 2.6. In preparation for Linux 3.0, this allows newer versions also.
2011-06-22configure: Change --with-l26 to --with-linux.Ben Pfaff
Linux 3.0 will be out soon, so it seems like a good idea to reflect that in our "configure" script options.
2011-06-22configure: Remove "26" from Linux variable names.Ben Pfaff
OVS used to support Linux 2.4 and Linux 2.6, but now it only supports Linux 2.6. Linux 3.0 is coming up, and it's just an evolution of 2.6, so OVS should stop referring to it as "2.6". This takes a first step by removing "26" from internal variable names. There should be no user-visible changes.
2011-06-22configure: Fix typo in variable name.Ben Pfaff
2011-06-22debian: Avoid implying that Linux 2.6.9 is supported.Ben Pfaff
2011-06-22ovsdb: Fix memory leak in transaction.Ben Pfaff
2011-06-22vswitch.xml: Use new <ref key> attribute where appropriate.Andrew Evans
I've looked at all the <code> tags and changed them to use <ref column=".." key=".."/> where appropriate (I hope).
2011-06-21Avoid inserting duplicate iptables rules when restarting vswitch.Ben Pfaff
On startup, some OVS initscripts insert an iptables rule to allow GRE traffic (because GRE support is an important OVS feature). I noticed that, each time I restarted OVS, this added another GRE-related rule to the iptables chain. This is wasteful, because each additional rule increases the time it takes to process a packet in the IP stack. This commit avoids the problem by inserting an iptables rule when there isn't already an appropriate rule. It also avoids inserting an iptables rule if the iptables policy is ACCEPT, meaning that packets are accepted by default; in such a case, if the GRE packet would be dropped, it is because the system administrator made that decision explicitly. Signed-off-by: Ben Pfaff <blp@nicira.com>
2011-06-21ovs-ctl: Clean up temporary file used for force-reload-kmod.Ben Pfaff
Suggested-by: Andrew Evans <aevans@nicira.com>