cascardo/ovs.git
9 years agoovn: Constrain supported tunnel types.
Justin Pettit [Sat, 25 Apr 2015 17:47:56 +0000 (10:47 -0700)]
ovn: Constrain supported tunnel types.

Limit the supported tunnel types to Geneve and STT on hypervisors, and
VXLAN, Geneve, and STT on gateways.  This commit adds "DESIGN.md" that
describes the reasoning.

Wes Felter provided suggestions for improving the wording in the
architecture document.

Signed-off-by: Justin Pettit <jpettit@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
9 years agoovn-controller: Rename "chassis_name" to "chassis_id".
Justin Pettit [Mon, 27 Apr 2015 20:07:38 +0000 (13:07 -0700)]
ovn-controller: Rename "chassis_name" to "chassis_id".

This makes it more consistent with other IDs in the system.

Signed-off-by: Justin Pettit <jpettit@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
9 years agoovn-controller: Don't log every interface missing "iface-id".
Justin Pettit [Sat, 25 Apr 2015 17:42:44 +0000 (10:42 -0700)]
ovn-controller: Don't log every interface missing "iface-id".

Tunnels create a lot of interfaces without an "external-id:iface-id", so
logging each interface missing one (even at debug) seems unnecessary.

Signed-off-by: Justin Pettit <jpettit@nicira.com>
Acked-by: Russell Bryant <rbryant@redhat.com>
Acked-by: Ben Pfaff <blp@nicira.com>
9 years agoovn-controller: Clarify that some config changes require a restart.
Justin Pettit [Mon, 27 Apr 2015 18:03:54 +0000 (11:03 -0700)]
ovn-controller: Clarify that some config changes require a restart.

Signed-off-by: Justin Pettit <jpettit@nicira.com>
Acked-by: Russell Bryant <rbryant@redhat.com>
Acked-by: Ben Pfaff <blp@nicira.com>
9 years agoovn-controller: Make integration bridge config part of general context.
Justin Pettit [Fri, 24 Apr 2015 22:44:58 +0000 (15:44 -0700)]
ovn-controller: Make integration bridge config part of general context.

The integration bridge will be needed by other components soon, so make
it part of the general ovn-controller context.

Signed-off-by: Justin Pettit <jpettit@nicira.com>
Acked-by: Russell Bryant <rbryant@redhat.com>
Acked-by: Ben Pfaff <blp@nicira.com>
9 years agoexpr: Make expr_to_flows() include conj_id flows.
Ben Pfaff [Wed, 29 Apr 2015 17:12:28 +0000 (10:12 -0700)]
expr: Make expr_to_flows() include conj_id flows.

When I wrote expr_to_flows() originally, I assumed that the caller could
simply add an appropriate conj_id=X flow for each of the conjunctive
matches.  I forgot that the conj_id=X flows also need to include
prerequisites for actions, e.g. if the OpenFlow actions manipulate TCP
fields, then the conj_id=X field must match on eth_type=0x800 and
ip_proto=6.  That's hard for the caller to generate itself, so this commit
changes expr_to_matches() to generate the conj_id=X flows also.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
9 years agoovn: Add tunnel_key concept to Bindings table, assign in ovn-northd.
Ben Pfaff [Wed, 29 Apr 2015 17:12:27 +0000 (10:12 -0700)]
ovn: Add tunnel_key concept to Bindings table, assign in ovn-northd.

When packets travel among nodes in OVN over tunnels, a tunnel key value is
needed to convey the logical port to which the packet is destined.  This
commit adds a tunnel_key column to the Bindings table and adds code to
ovn-northd to assign a unique tunnel_key value to each logical port.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
9 years agoovn-sb: Fix reference to "port" that should have been "flow".
Justin Pettit [Tue, 28 Apr 2015 22:28:33 +0000 (15:28 -0700)]
ovn-sb: Fix reference to "port" that should have been "flow".

Signed-off-by: Justin Pettit <jpettit@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
9 years agoovn-northd: Set logical_datapath in each Bindings record.
Ben Pfaff [Thu, 23 Apr 2015 23:14:49 +0000 (16:14 -0700)]
ovn-northd: Set logical_datapath in each Bindings record.

Without a logical_datapath, ovn-controller won't be able to tell which
logical datapath a logical port belongs to, thus it won't be able to
implement logical flows related to the logical port.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Russell Bryant <rbryant@redhat.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
9 years agolex: New functions lex_lookahead() and lexer_match_id().
Ben Pfaff [Thu, 23 Apr 2015 23:12:11 +0000 (16:12 -0700)]
lex: New functions lex_lookahead() and lexer_match_id().

These functions will have their first users in upcoming commits.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Russell Bryant <rbryant@redhat.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
9 years agoovn-nb: Mark some features as not yet implemented.
Ben Pfaff [Wed, 22 Apr 2015 02:06:04 +0000 (19:06 -0700)]
ovn-nb: Mark some features as not yet implemented.

Reported-by: Justin Pettit <jpettit@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Russell Bryant <rbryant@redhat.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
9 years agoovn: Back off on port_security specification and implementation.
Ben Pfaff [Wed, 22 Apr 2015 01:42:20 +0000 (18:42 -0700)]
ovn: Back off on port_security specification and implementation.

The implementation of port_security was partial, and the specification was
vague.  This reduces both to what was actually meant to be supported at
this point.  It shouldn't be hard to fully implement port security when we
have a clear specification.

Reported-by: Justin Pettit <jpettit@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Russell Bryant <rbryant@redhat.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
9 years agoovn-northd: Port security allows receiving packets to multicast/broadcast.
Ben Pfaff [Wed, 22 Apr 2015 01:04:39 +0000 (18:04 -0700)]
ovn-northd: Port security allows receiving packets to multicast/broadcast.

Otherwise ARP and other broadcast protocols would be problematic.

Reported-by: Justin Pettit <jpettit@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Russell Bryant <rbryant@redhat.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
9 years agoovn-sb.xml: Revise description of "actions"; rename "resubmit" to "next".
Ben Pfaff [Tue, 28 Apr 2015 23:52:52 +0000 (16:52 -0700)]
ovn-sb.xml: Revise description of "actions"; rename "resubmit" to "next".

Also update ovn-northd to use the revised syntax.

Reported-by: Justin Pettit <jpettit@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Russell Bryant <rbryant@redhat.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
9 years agoovn-northd: Fix treatment of ports with unknown MACs.
Ben Pfaff [Mon, 27 Apr 2015 15:54:51 +0000 (08:54 -0700)]
ovn-northd: Fix treatment of ports with unknown MACs.

Ports with unknown MACs are a per-lswitch concept but the code here was
treating them as global and also dereferenced a null pointer (generally
'lport' was null in the expression 'lswitch->lport').

Reported-by: Alex Wang <alexw@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Alex Wang <alexw@nicira.com>
9 years agoovn-nbctl: Update usage output for show command.
Russell Bryant [Wed, 22 Apr 2015 20:15:31 +0000 (16:15 -0400)]
ovn-nbctl: Update usage output for show command.

The show command takes an optional LSWITCH argument.  In that case, it
only prints the info for a single switch instead of all of them.
Update the usage text to reflect that option.

Signed-off-by: Russell Bryant <rbryant@redhat.com>
Signed-off-by: Justin Pettit <jpettit@nicira.com>
9 years agoovn: Remove complete to-do items.
Ben Pfaff [Wed, 22 Apr 2015 20:06:07 +0000 (13:06 -0700)]
ovn: Remove complete to-do items.

Reported-by: Justin Pettit <jpettit@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Russell Bryant <rbryant@redhat.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
9 years agoovn/lib: Add symbol file for libovn.la.
Ben Pfaff [Wed, 22 Apr 2015 00:35:44 +0000 (17:35 -0700)]
ovn/lib: Add symbol file for libovn.la.

This follows the pattern used for the other .la files so I assume that it
is equally useful.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
9 years agoovn: Move all library files into ovn/lib, and merge libraries.
Ben Pfaff [Wed, 22 Apr 2015 00:36:52 +0000 (17:36 -0700)]
ovn: Move all library files into ovn/lib, and merge libraries.

There is no value in having two separate libraries for OVN.

Reported-by: Justin Pettit <jpettit@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
9 years agoovn-nbctl: Add "show" command.
Justin Pettit [Tue, 21 Apr 2015 23:51:21 +0000 (16:51 -0700)]
ovn-nbctl: Add "show" command.

It's often useful to see an overview of the configuration.

Signed-off-by: Justin Pettit <jpettit@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
9 years agoovn-nbctl: Add lport-set-port-security command.
Ben Pfaff [Tue, 21 Apr 2015 23:37:09 +0000 (16:37 -0700)]
ovn-nbctl: Add lport-set-port-security command.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
9 years agoovn-nbctl: Simplify documentation for lport-set-macs.
Ben Pfaff [Tue, 21 Apr 2015 17:01:13 +0000 (10:01 -0700)]
ovn-nbctl: Simplify documentation for lport-set-macs.

Elsewhere, I think we just write ... to indicate that there can be more
than one, and let it be understood otherwise.

I want to add a "lport-set-port-security" command that has a similar format
and don't want to use up extra vertical space to mention that you can have
more than one argument.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
9 years agoovn-northd: Always use semicolons for each action.
Justin Pettit [Tue, 21 Apr 2015 18:08:46 +0000 (11:08 -0700)]
ovn-northd: Always use semicolons for each action.

When generating actions, the preferred style is to end each action with
a semicolon.

Signed-off-by: Justin Pettit <jpettit@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
9 years agoovn*.xml: Convert tabs to spaces.
Russell Bryant [Mon, 20 Apr 2015 20:29:55 +0000 (16:29 -0400)]
ovn*.xml: Convert tabs to spaces.

These files used both tabs and spaces for indentation.  Convert all of
the tabs to spaces for consistency.

Signed-off-by: Russell Bryant <rbryant@redhat.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
9 years agoovn-northd: Implement basic Pipeline generation.
Ben Pfaff [Tue, 21 Apr 2015 15:28:06 +0000 (08:28 -0700)]
ovn-northd: Implement basic Pipeline generation.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Russell Bryant <rbryant@redhat.com>
9 years agoovn-sb.xml: Make output to ingress port a no-op.
Ben Pfaff [Mon, 20 Apr 2015 22:11:46 +0000 (15:11 -0700)]
ovn-sb.xml: Make output to ingress port a no-op.

This provides better alignment with OpenFlow semantics.

Reported-by: Russell Bryant <rbryant@redhat.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
9 years agoovn-nb.xml: "true" match is actually expressed "1".
Ben Pfaff [Mon, 20 Apr 2015 21:50:32 +0000 (14:50 -0700)]
ovn-nb.xml: "true" match is actually expressed "1".

The original draft for the OVN expression language included "true" and
'false" keywords but later I changed them to "1" and "0" and forgot to
update this text.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
9 years agoovn-nb: Disallow priority 0 ACLs.
Ben Pfaff [Mon, 20 Apr 2015 21:49:23 +0000 (14:49 -0700)]
ovn-nb: Disallow priority 0 ACLs.

We need to have a priority-0 logical datapath flow to act as a catch-all.
The easiest way to make sure that it doesn't overlap with NB-provided ACLs
is to prohibit them from using priority 0.

Maybe we should restrict ACLs to some smaller range of priorities to allow
for higher- and lower- priority flows in the logical datapath table.  I
haven't carefully thought it through.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Russell Bryant <rbryant@redhat.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
9 years agoovn: Add logical_datapath concept to schema.
Ben Pfaff [Mon, 20 Apr 2015 21:47:31 +0000 (14:47 -0700)]
ovn: Add logical_datapath concept to schema.

It's possible that we could implement all of the OVN concepts as a single
collection of flow tables, but it makes more sense to me if we instead
represent each logical switch and logical router separately.  This also
fits the model described in T. Koponen et al., "Network Virtualization in
Multi-tenant Data Centers," NSDI '14, the model that OVN aspires to
imitate.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Russell Bryant <rbryant@redhat.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
9 years agolex: New function lex_format_to_string().
Ben Pfaff [Sat, 18 Apr 2015 15:46:48 +0000 (08:46 -0700)]
lex: New function lex_format_to_string().

First used in an upcoming commit.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Russell Bryant <rbryant@redhat.com>
9 years agolex: Make token parameter of lex_token_format() const.
Ben Pfaff [Fri, 3 Apr 2015 05:37:02 +0000 (22:37 -0700)]
lex: Make token parameter of lex_token_format() const.

It wasn't ever modified, this was just overlooked.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Russell Bryant <rbryant@redhat.com>
9 years agojson: New function json_string_escape().
Ben Pfaff [Fri, 3 Apr 2015 05:36:31 +0000 (22:36 -0700)]
json: New function json_string_escape().

This saves some cut-and-paste duplicated code elsewhere and will have
additional users in upcoming commits.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Russell Bryant <rbryant@redhat.com>
9 years agoovn-sb.xml: Remove duplicate "physical".
Russell Bryant [Mon, 20 Apr 2015 20:16:28 +0000 (16:16 -0400)]
ovn-sb.xml: Remove duplicate "physical".

I noticed this case where a description referred to "physical physical
flows."  Remove the duplicate instance of "physical".

Signed-off-by: Russell Bryant <rbryant@redhat.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
9 years agoovn-northd: Update Bindings for container integration.
Russell Bryant [Mon, 20 Apr 2015 16:56:07 +0000 (12:56 -0400)]
ovn-northd: Update Bindings for container integration.

ovn-northd updates the Bindings table of the OVN database when there
are updates to the OVN_Northbound database.  This update makes
ovn-northd copy over the container integration related fields from
OVN_Northbound into the Bindings table.

Signed-off-by: Russell Bryant <rbryant@redhat.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
Signed-off-by: Justin Pettit <jpettit@nicira.com>
9 years agoovn-nbctl: Updates for container integration.
Russell Bryant [Mon, 20 Apr 2015 16:56:06 +0000 (12:56 -0400)]
ovn-nbctl: Updates for container integration.

Add support for specifying a parent port name and tag when creating
logical ports.  Also add commands for getting the parent_name or tag
set on a logical port.  These are necessary for dealing with container
interfaces that sit behind normal interfaces.

Signed-off-by: Russell Bryant <rbryant@redhat.com>
Signed-off-by: Justin Pettit <jpettit@nicira.com>
9 years agoovn-northd: Get rid of a few remaining references to nbd.
Ben Pfaff [Thu, 16 Apr 2015 23:56:54 +0000 (16:56 -0700)]
ovn-northd: Get rid of a few remaining references to nbd.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
9 years agoovn-nbctl.8: Add descriptions for commands.
Justin Pettit [Thu, 16 Apr 2015 23:35:36 +0000 (16:35 -0700)]
ovn-nbctl.8: Add descriptions for commands.

Signed-off-by: Justin Pettit <jpettit@nicira.com>
9 years agoovn-nbctl: Bring usage output more in line with other utils.
Justin Pettit [Thu, 16 Apr 2015 22:03:42 +0000 (15:03 -0700)]
ovn-nbctl: Bring usage output more in line with other utils.

Signed-off-by: Justin Pettit <jpettit@nicira.com>
9 years agoovn-nbctl: Print empty string for non-existent external-id.
Justin Pettit [Thu, 16 Apr 2015 23:27:25 +0000 (16:27 -0700)]
ovn-nbctl: Print empty string for non-existent external-id.

Instead of printing a message for a non-existent requested key, just
print an empty string.  This mimics the behavior of ovs-vsctl.

Signed-off-by: Justin Pettit <jpettit@nicira.com>
9 years agoovn-nbctl: Swap lport-add arguments
Justin Pettit [Thu, 16 Apr 2015 22:01:57 +0000 (15:01 -0700)]
ovn-nbctl: Swap lport-add arguments

Signed-off-by: Justin Pettit <jpettit@nicira.com>
9 years agoovn-northd: Fix log message style.
Ben Pfaff [Thu, 16 Apr 2015 23:53:36 +0000 (16:53 -0700)]
ovn-northd: Fix log message style.

It's not necessary to name the program in a log message, because log
messages already include the program name (or are in a file named after
the program).

A new-line isn't needed at the end of a log message (and by convention we
leave it out) although it is harmless.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
9 years agoovn: Rename ovn-nbd to ovn-northd.
Russell Bryant [Thu, 16 Apr 2015 21:13:54 +0000 (17:13 -0400)]
ovn: Rename ovn-nbd to ovn-northd.

It came up in a recent discussion that the use of 'nbd' could cause
confusion since nbd is used for "Network Block Device", which may be
used in many of the same environments that OVN would be used in.

To avoid the possible issue, just rename ovn-nbd to ovn-northd.
While we're at it, create a subdirectory under ovn/ to hold all files
related to ovn-northd.  For now it's just a single C file, but we
may add more source files in the future.

Signed-off-by: Russell Bryant <rbryant@redhat.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
9 years agoovn-nbd: Fix unsafe HMAP_FOR_EACH_WITH_HASH usage.
Russell Bryant [Wed, 15 Apr 2015 01:52:54 +0000 (21:52 -0400)]
ovn-nbd: Fix unsafe HMAP_FOR_EACH_WITH_HASH usage.

The previous code assumed that hash_node would be NULL when the loop
terminated without a match.  That's not the case, so track the match a
little differently.

Signed-off-by: Russell Bryant <rbryant@redhat.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
9 years agoovn-nbd: Don't shadow hash_node variable.
Russell Bryant [Wed, 15 Apr 2015 01:52:53 +0000 (21:52 -0400)]
ovn-nbd: Don't shadow hash_node variable.

This variable is already defined at the top of the function, so just
reuse that instead of defining it again.

Signed-off-by: Russell Bryant <rbryant@redhat.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
9 years agoovn-nbd: Match bindings on lport name.
Russell Bryant [Wed, 15 Apr 2015 01:52:52 +0000 (21:52 -0400)]
ovn-nbd: Match bindings on lport name.

When ovn-nbd is looking through bindings to figure out if any logical
ports in the northbound DB need to have their 'up' state changed, it
should be using the logical port's name instead of UUID for matching
up to rows in the OVN db.

The switch to using the name instead of UUID means we don't have a
quick lookup so we use the same approach that's used for handling
updates in the other direction.  We start by hashing all of the
logical ports by name.  As we iterate through the bindings, we can
then look up ports by name quickly.

Signed-off-by: Russell Bryant <rbryant@redhat.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
9 years agoexpr: Support string fields in expr_to_matches().
Ben Pfaff [Wed, 15 Apr 2015 23:46:38 +0000 (16:46 -0700)]
expr: Support string fields in expr_to_matches().

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Russell Bryant <rbryant@redhat.com>
9 years agoAUTHORS: Add Gal Sagie.
Ben Pfaff [Thu, 16 Apr 2015 00:35:11 +0000 (17:35 -0700)]
AUTHORS: Add Gal Sagie.

Signed-off-by: Ben Pfaff <blp@nicira.com>
9 years agoexpr: New module for Boolean expressions on fields, for use in OVN.
Ben Pfaff [Wed, 15 Apr 2015 23:49:50 +0000 (16:49 -0700)]
expr: New module for Boolean expressions on fields, for use in OVN.

Known weaknesses:

    * String fields can't be converted to flows yet.  A subsequent commit
      will fix this.

    * Flows aren't optimal in some situations likely to be common.
      I don't think either of those is a reason not to commit this;
      this is a solid base to build on.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Russell Bryant <rbryant@redhat.com>
9 years agometa-flow: Add new functions for subvalues.
Ben Pfaff [Wed, 15 Apr 2015 22:06:23 +0000 (15:06 -0700)]
meta-flow: Add new functions for subvalues.

To be first used in upcoming commits.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Andy Zhou <azhou@nicira.com>
9 years agoutil: Add more bitwise operations.
Ben Pfaff [Wed, 15 Apr 2015 22:21:00 +0000 (15:21 -0700)]
util: Add more bitwise operations.

To be used in upcoming commits.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Andy Zhou <azhou@nicira.com>
Acked-by: Russell Bryant <rbryant@redhat.com>
9 years agolex: New lexical analyzer module for use in OVN.
Ben Pfaff [Wed, 15 Apr 2015 23:18:04 +0000 (16:18 -0700)]
lex: New lexical analyzer module for use in OVN.

I'm determined not to let the terrible style of pseudo-parsing we have in
OVS leak into OVN.  Here's the first step.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Andy Zhou <azhou@nicira.com>
Acked-by: Russell Bryant <rbryant@redhat.com>
9 years agoovn-architecture: Fix description of powering off VMs
GalSagie [Thu, 9 Apr 2015 20:20:32 +0000 (23:20 +0300)]
ovn-architecture: Fix description of powering off VMs

Signed-off-by: Gal Sagie <gal,sagie@gmail.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
9 years agoMerge remote-tracking branch 'origin/master' into ovn
Justin Pettit [Sun, 12 Apr 2015 17:13:59 +0000 (10:13 -0700)]
Merge remote-tracking branch 'origin/master' into ovn

Conflicts:
tutorial/ovs-sandbox

9 years agoovn: Introduce ovn-controller.
Justin Pettit [Thu, 9 Apr 2015 07:52:43 +0000 (00:52 -0700)]
ovn: Introduce ovn-controller.

Add new ovn-controller daemon that runs locally on transport nodes.
This initial version registers itself in the Chassis table and registers
logical ports to the appropriate rows in the Bindings table.

Signed-off-by: Justin Pettit <jpettit@nicira.com>
Acked-by: Russell Bryant <rbryant@redhat.com>
9 years agotests: gre: fix flags endianness
Flavio Leitner [Fri, 10 Apr 2015 14:08:10 +0000 (11:08 -0300)]
tests: gre: fix flags endianness

The flags field is 16 bits so use network byte order in the
test case and use the proper conversion methods when parsing
and dumping.

Signed-off-by: Flavio Leitner <fbl@redhat.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
9 years agotest-csum: endianess fix
Flavio Leitner [Fri, 10 Apr 2015 14:07:50 +0000 (11:07 -0300)]
test-csum: endianess fix

The math is done in network byte order so the 32 bits won't
match between big and little endian, so the assert fails.

Reduce to 16 bits and then compare to the converted constant.

Signed-off-by: Flavio Leitner <fbl@redhat.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
9 years agodpif-netdev: Count exact match cache hits.
Daniele Di Proietto [Tue, 7 Apr 2015 19:02:15 +0000 (20:02 +0100)]
dpif-netdev: Count exact match cache hits.

We used to count exact match cache hits and masked classifier hits
together. This commit splits the DP_STAT_HIT counter into two.
This change will be used by future commits.

Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
9 years agodpif-netdev: Make datapath and flow stats atomic.
Daniele Di Proietto [Tue, 7 Apr 2015 19:02:14 +0000 (20:02 +0100)]
dpif-netdev: Make datapath and flow stats atomic.

A read operation from a non atomic shared value (without external
locking) can return incorrect values.  Using the atomic semantics
prevents this from happening.

However:
* No memory barriers are used.  We don't need that kind of consistency
  for statistics (we use relaxed operations).
* The updates are not atomic, just the loads and stores.  This is ok
  because there's a single writer.

Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
9 years agodpif-netdev: Group statistics updates in the slow path.
Daniele Di Proietto [Tue, 7 Apr 2015 19:02:13 +0000 (20:02 +0100)]
dpif-netdev: Group statistics updates in the slow path.

Since statistics updates might require locking (in future commits)
grouping them will reduce the locking overhead.

Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
9 years agodatapath: Account for "udptunnels: Call handle_offloads after inserting vlan tag."
Jesse Gross [Tue, 7 Apr 2015 23:11:23 +0000 (16:11 -0700)]
datapath: Account for "udptunnels: Call handle_offloads after inserting vlan tag."

Upstream commit:
    udptunnels: Call handle_offloads after inserting vlan tag.

    handle_offloads() calls skb_reset_inner_headers() to store
    the layer pointers to the encapsulated packet. However, we
    currently push the vlag tag (if there is one) onto the packet
    afterwards. This changes the MAC header for the encapsulated
    packet but it is not reflected in skb->inner_mac_header, which
    breaks GSO and drivers which attempt to use this for encapsulation
    offloads.

    Fixes: b736a623 ("vxlan: Add tx-vlan offload support.")
Signed-off-by: Jesse Gross <jesse@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Upstream: 4aac884d ("udptunnels: Call handle_offloads after inserting vlan tag.")
Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
9 years agotunneling: Invalid packets should be cleared.
Jesse Gross [Wed, 8 Apr 2015 19:56:50 +0000 (12:56 -0700)]
tunneling: Invalid packets should be cleared.

If we receive a packet with an invalid tunnel header, we
should drop the packet without further processing. Currently
we do this by removing any parsed tunnel metadata. However,
this is not sufficient to stop processing - this only results
in the packet getting dropped by chance when something
usually runs across part of the packet that does not make
sense. Since both the packet and its metadata are in an
inconsistent state, it's also possible that the result is
an ovs-vswitchd crash or forwarding of a mangled packet.

Rather than clear the metadata, an alternate solution is to
remove all of the packet data. This guarantees that the
packet gets dropped during the next round of processing.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
9 years agotunneling: Convert tunnel push/pop functions to act on single packets.
Jesse Gross [Wed, 8 Apr 2015 00:45:40 +0000 (17:45 -0700)]
tunneling: Convert tunnel push/pop functions to act on single packets.

The userspace tunneling API for pushing and popping tunnel headers
is currently based on processing batches of packets. However, there
is no obvious way to take advantage of batching for these operations
and so each tunnel operation has a pair of loops to process the
batch. This changes the API to operate on single packets to enable
better code reuse.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
9 years agoINSTALL.Windows: Add documentation about Windows services.
Gurucharan Shetty [Thu, 9 Apr 2015 15:54:23 +0000 (08:54 -0700)]
INSTALL.Windows: Add documentation about Windows services.

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Nithin Raju <nithin@vmware.com>
9 years agoINSTALL.Windows: Add details about local build and installation.
Gurucharan Shetty [Thu, 9 Apr 2015 15:00:13 +0000 (08:00 -0700)]
INSTALL.Windows: Add details about local build and installation.

This commits adds the following.

* Clearly callout to set pthread-win32's dll path in $PATH
* Details about running parallel make and parallel unit tests.
* Installing Open vSwitch locally via 'make install'
* Update the steps to run the user processes by relying on
  the previous 'make install'. The steps now run the daemons
  in the background with the creation of a logfile and pidfile.

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Nithin Raju <nithin@vmware.com>
9 years agoovn: Update comments related to "ovn" to "ovn-sb" switch.
Justin Pettit [Thu, 9 Apr 2015 05:52:29 +0000 (22:52 -0700)]
ovn: Update comments related to "ovn" to "ovn-sb" switch.

Signed-off-by: Justin Pettit <jpettit@nicira.com>
Acked-by: Russell Bryant <rbryant@redhat.com>
9 years agoovs-sandbox: Use new ovn-sb database name.
Justin Pettit [Thu, 9 Apr 2015 05:51:10 +0000 (22:51 -0700)]
ovs-sandbox: Use new ovn-sb database name.

Commit ec78987 (ovn: Rename "ovn" database to "ovn-sb".) changed the
name of the database, but didn't update ovs-sandbox to use this new
name.

Signed-off-by: Justin Pettit <jpettit@nicira.com>
Acked-by: Russell Bryant <rbryant@redhat.com>
9 years agoovn-nbd: Add basic OVSDB transaction comments.
Justin Pettit [Thu, 9 Apr 2015 07:10:12 +0000 (00:10 -0700)]
ovn-nbd: Add basic OVSDB transaction comments.

These comments aren't particularly detailed, but it's helpful to at
least see what is modifying the database contents.

Signed-off-by: Justin Pettit <jpettit@nicira.com>
Acked-by: Russell Bryant <rbryant@redhat.com>
9 years agoovn-nbctl: Add OVSDB transaction comment.
Justin Pettit [Thu, 9 Apr 2015 07:01:44 +0000 (00:01 -0700)]
ovn-nbctl: Add OVSDB transaction comment.

Add a comment to the transaction that contains the command that was
executed to aid looking at the transaction log.

Signed-off-by: Justin Pettit <jpettit@nicira.com>
9 years agotestsuite: ofproto-dpif: fix test names
Flavio Leitner [Wed, 8 Apr 2015 17:30:40 +0000 (14:30 -0300)]
testsuite: ofproto-dpif: fix test names

Some tests were not included when running the
make TESTSUITEFLAGS="-k ofproto-dpif" check because
the test name was out of the expected pattern.

Signed-off-by: Flavio Leitner <fbl@redhat.com>
Acked-by: Joe Stringer <joestringer@nicira.com>
9 years agoINSTALL.Windows: update documentation
Nithin Raju [Wed, 8 Apr 2015 23:41:36 +0000 (16:41 -0700)]
INSTALL.Windows: update documentation

The documentation to run the executables has fallen behind quite
a bit. In this patch, we make a few updates. There's more to come.

The patch assumes the user has not run 'make install' or does not
have access to an installer.

Signed-off-by: Nithin Raju <nithin@vmware.com>
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
9 years agotestsuite: work around patch bug
Flavio Leitner [Wed, 8 Apr 2015 16:35:54 +0000 (13:35 -0300)]
testsuite: work around patch bug

Due to a CVE bug, the patch was modified to not allow following
symlinks out of the workdir.  However, this causes a bug when
there is a regular file out of the workdir which breaks the current
testsuite build.

Steps to reproduce:
  ./boot.sh
  mkdir _gcc && cd _gcc
  ../configure
  make
  [...]
  /bin/sh /home/fleitner/ovs/testsuite/build-aux/missing autom4te
  --language=autotest -I '..' -o ../tests/testsuite.tmp
  ../tests/testsuite.at
  patch -p0 ../tests/testsuite.tmp ../tests/testsuite.patch
  Invalid file name ../tests/testsuite.tmp -- skipping patch
  Makefile:5155: recipe for target '../tests/testsuite' failed
  make[2]: *** [../tests/testsuite] Error 1
  make[2]: Leaving directory
  '/home/fleitner/NetworkingServices/openvswitch/repo/testsuite/_gcc'
  Makefile:4087: recipe for target 'all-recursive' failed
  make[1]: *** [all-recursive] Error 1

Since it's just a temporary file, this patch changes to use the
workdir as the place to put the file.

Signed-off-by: Flavio Leitner <fbl@redhat.com>
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
9 years agoovn-nbd: Rename "ovn_txn" variable to "ovnsb_txn".
Justin Pettit [Wed, 8 Apr 2015 16:21:47 +0000 (09:21 -0700)]
ovn-nbd: Rename "ovn_txn" variable to "ovnsb_txn".

Commit ec78987 (ovn: Rename "ovn" database to "ovn-sb".) changed most of
the instances of "ovn" to some variation of "ovn-sb", but missed one in
ovn-nbd.

Suggested-by: Russell Bryant <rbryant@redhat.com>
Signed-off-by: Justin Pettit <jpettit@nicira.com>
Acked-by: Russell Bryant <rbryant@redhat.com>
9 years agogeneve: Zero header before parsing userspace tunneling action.
Jesse Gross [Wed, 8 Apr 2015 01:55:54 +0000 (18:55 -0700)]
geneve: Zero header before parsing userspace tunneling action.

When we parse the text representation of the Geneve action the
header is not fully initialized. Besides the obvious potential
to generate an action that the user did not actually specify, this
also causes intermittent unit test failures when an action is
read in and printed out and the result is different.

Signed-off-by: Jesse Gross <jesse@nicira.com>
9 years agoovn: Rename "ovn" database to "ovn-sb".
Justin Pettit [Wed, 8 Apr 2015 00:40:48 +0000 (17:40 -0700)]
ovn: Rename "ovn" database to "ovn-sb".

It was confusing having a database called "ovn", since it's also the
name of the project.  Since we have an "ovn-nb", rename "ovn" to
"ovn-sb".

Signed-off-by: Justin Pettit <jpettit@nicira.com>
9 years agopacket: Avoid array of struct with zero length member.
Jesse Gross [Wed, 8 Apr 2015 00:57:36 +0000 (17:57 -0700)]
packet: Avoid array of struct with zero length member.

Windows doesn't like that the Geneve header has an array of
options with each have a zero length member (the variable data).
Nothing is accessing the data now, so just replace the member with
a comment - we can use pointer arithmetic when necessary.

Reported-by: Gurucharan Shetty <shettyg@nicira.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
9 years agotunneling: Add UDP checksum support for userspace tunnels.
Jesse Gross [Thu, 26 Mar 2015 21:27:19 +0000 (14:27 -0700)]
tunneling: Add UDP checksum support for userspace tunnels.

Kernel based OVS recently added the ability to support checksums
for UDP based tunnels (Geneve and VXLAN). This adds similar support
for the userspace datapath to bring feature parity.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
9 years agopacket: Add IP pseudoheader checksum calculation.
Jesse Gross [Mon, 30 Mar 2015 19:17:05 +0000 (12:17 -0700)]
packet: Add IP pseudoheader checksum calculation.

As OVS adds userspace support for being the endpoint in protocols
like tunnels, it will need to be able to calculate pseudoheaders
as part of the checksum calculation.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
9 years agotunneling: Add userspace tunnel support for Geneve.
Jesse Gross [Thu, 26 Mar 2015 20:51:06 +0000 (13:51 -0700)]
tunneling: Add userspace tunnel support for Geneve.

This adds basic userspace dataplane support for the Geneve
tunneling protocol. The rest of userspace only has the ability
to handle Geneve without options and this follows that pattern
for the time being. However, when the rest of userspace is updated
it should be easy to extend the dataplane as well.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
9 years agotunneling: Factor out common UDP tunnel code.
Jesse Gross [Thu, 26 Mar 2015 19:07:02 +0000 (12:07 -0700)]
tunneling: Factor out common UDP tunnel code.

Currently, the userspace VXLAN implementation contains the code
for generating and parsing both the UDP and VXLAN headers. This
pulls out the UDP portion for better layering and to make it
easier to support additional UDP based tunnels and features.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
9 years agovxlan: Set FLOW_TNL_F_KEY for received packets.
Jesse Gross [Tue, 7 Apr 2015 23:40:18 +0000 (16:40 -0700)]
vxlan: Set FLOW_TNL_F_KEY for received packets.

The VNI is always present in the VXLAN header, so we should
set the FLOW_TNL_F_KEY flag to indicate this. However, the
userspace implementation of VXLAN currently does not.

Signed-off-by: Jesse Gross <jesse@nicira.com>
9 years agoodp-util: Shift VXLAN VNI when printing/parsing.
Jesse Gross [Sat, 28 Mar 2015 00:51:35 +0000 (17:51 -0700)]
odp-util: Shift VXLAN VNI when printing/parsing.

Currently when printing a userspace tunnel action for VXLAN, the
VNI is treated as a 32 bit field rather than 24 bit. Even if this
is the representation that we use internally, we should still show
the right VNI to avoid confusing people.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Pritesh Kothari <pritesh.kothari@cisco.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
9 years agotunneling: Use flow flag for GRE checksum calculation.
Jesse Gross [Fri, 27 Mar 2015 05:55:53 +0000 (22:55 -0700)]
tunneling: Use flow flag for GRE checksum calculation.

The indication to calculate the GRE checksum is currently the port
config rather than the tunnel flow. Currently there is a one to one
mapping between the two so there is no difference. However, the
kernel datapath must use the flow and it is also potentially more
flexible, so this switches how we decide whether to calculate the
checksum.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Pritesh Kothari <pritesh.kothari@cisco.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
9 years agotunneling: Fix location of GRE checksums.
Jesse Gross [Fri, 27 Mar 2015 00:09:38 +0000 (17:09 -0700)]
tunneling: Fix location of GRE checksums.

The GRE checksum is a 16 bit field stored in a 32 bit option (the
rest is reserved). The current code treats the checksum as a 32-bit
field and places it in the right place for little endian systems but
not big endian. This fixes the problem by storing the 16 bit field
directly.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Pritesh Kothari <pritesh.kothari@cisco.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
9 years agotunneling: Add check for GRE protocol is Ethernet.
Jesse Gross [Thu, 26 Mar 2015 23:53:39 +0000 (16:53 -0700)]
tunneling: Add check for GRE protocol is Ethernet.

On receive, the userspace GRE code doesn't check the protocol
field. Since OVS only understands Ethernet packets, this adds a
check that the inner protocol is Ethernet and discards other types
of packets.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Pritesh Kothari <pritesh.kothari@cisco.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
9 years agotunneling: Include IP TTL in flow metadata.
Jesse Gross [Fri, 27 Mar 2015 14:39:18 +0000 (07:39 -0700)]
tunneling: Include IP TTL in flow metadata.

The IP TTL is currently omitted in the extracted tunnel information
that is stored in the flow for userspace tunneling. This includes it
so that the same logic used by the kernel also applies.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Pritesh Kothari <pritesh.kothari@cisco.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
9 years agodatapath-windows: Solved BSOD when uninstalling the driver (race condition)
Sorin Vinturis [Tue, 7 Apr 2015 16:35:54 +0000 (16:35 +0000)]
datapath-windows: Solved BSOD when uninstalling the driver (race condition)

The BSOD occurred because the FilterAttach routine released the switch
context, while there were IRPs in processing.

The solution was to add a reference count to prevent premature deallocation of the
global switch context structure, gOvsSwitchContext.

Signed-off-by: Sorin Vinturis <svinturis@cloudbasesolutions.com>
Reported-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com>
Reported-at: https://github.com/openvswitch/ovs-issues/issues/58
Acked-by: Eitan Eliahu <eliahue@vmware.com>
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
9 years agospecify -w to set variables for sysctl(8) on NetBSD
Kevin Lo [Tue, 7 Apr 2015 08:18:47 +0000 (16:18 +0800)]
specify -w to set variables for sysctl(8) on NetBSD

We have to specify -w to set tunable sysctls on NetBSD.

Signed-off-by: Kevin Lo <kevlo at FreeBSD.org>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
9 years agorhel: Make Fedora %files and %install section wildcards match.
Ben Pfaff [Mon, 6 Apr 2015 20:56:04 +0000 (13:56 -0700)]
rhel: Make Fedora %files and %install section wildcards match.

Since %install puts every .ko file into /lib/modules, %files should make
sure that all of them are packaged.

Suggested-by: Thomas Graf <tgraf@noironetworks.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Flavio Leitner <fbl@redhat.com>
9 years agohmap: Add comment warning about pitfall in HMAP_FOR_EACH_* usage.
Ben Pfaff [Mon, 6 Apr 2015 21:39:06 +0000 (14:39 -0700)]
hmap: Add comment warning about pitfall in HMAP_FOR_EACH_* usage.

CC: Russell Bryant <rbryant@redhat.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
9 years agobridge: Wait for previous stats update transation when it is incomplete.
Alex Wang [Wed, 1 Apr 2015 00:07:03 +0000 (17:07 -0700)]
bridge: Wait for previous stats update transation when it is incomplete.

When ovsdb happens to get blocked for few seconds, the 'stats_timer'
will not be updated due to incompletion of previous transaction.
When the current time passes the 'stats_timer', the call to
poll_timer_wait_until(stats_timer) will keep waking up ovs-vswitchd,
causing 100% cpu utilization.

This commit fixes this issue by making ovs-vswitchd wait on the
previous idl transaction when it is incomplete rather than the
'stats_timer'.

Signed-off-by: Alex Wang <alexw@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
9 years agobridge: Do not wait for status update when there is no bridge.
Alex Wang [Tue, 31 Mar 2015 23:53:47 +0000 (16:53 -0700)]
bridge: Do not wait for status update when there is no bridge.

Signed-off-by: Alex Wang <alexw@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
9 years agoovn-nbctl: Add lport-get-up command.
Russell Bryant [Mon, 6 Apr 2015 15:27:05 +0000 (11:27 -0400)]
ovn-nbctl: Add lport-get-up command.

Add a command to get the 'up' state of a logical port.

Signed-off-by: Russell Bryant <rbryant@redhat.com>
[blp@nicira.com changed true/false output to up/down]
Signed-off-by: Ben Pfaff <blp@nicira.com>
9 years agolib/list: Add LIST_FOR_EACH_POP.
Jarno Rajahalme [Mon, 6 Apr 2015 21:02:28 +0000 (14:02 -0700)]
lib/list: Add LIST_FOR_EACH_POP.

Makes popping each member of the list a bit easier.

Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Acked-by: Russell Bryant <rbryant@redhat.com>
Acked-by: Ben Pfaff <blp@nicira.com>
9 years agoauto-attach: Fix segfault when enabling auto attach.
Dennis Flynn [Mon, 6 Apr 2015 14:59:19 +0000 (10:59 -0400)]
auto-attach: Fix segfault when enabling auto attach.

This commit fixes a segmentation fault observed when enabling lldp prior to
establishing auto attach mappings.

Signed-off-by: Dennis Flynn <drflynn@avaya.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
9 years agodatapath-windows Release lock on HVUpdateNIC
Alin Serdean [Mon, 6 Apr 2015 17:22:06 +0000 (17:22 +0000)]
datapath-windows Release lock on HVUpdateNIC

Release switchContext->dispatchLock in case the vport has not been found.

Acked-by: Eitan Eliahu <eliahue@vmware.com>
Acked-by: Sorin Vinturis <svinturis@cloudbasesolutions.com>
Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
9 years agodatapath-windows: Allow NdisSwitchPortTypeSynthetic to be updated
Alin Serdean [Mon, 6 Apr 2015 17:28:42 +0000 (17:28 +0000)]
datapath-windows: Allow NdisSwitchPortTypeSynthetic to be updated

Allow the port to be updated if it the type is only:
NdisSwitchPortTypeSynthetic

Acked-by: Nithin Raju <nithin@vmware.com>
Acked-by: Eitan Eliahu <eliahue@vmware.com>
Acked-by: Sorin Vinturis <svinturis@cloudbasesolutions.com>
Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
9 years agoovs-dev.py: Remove vport-*.ko at same time as openvswitch.ko.
Ben Pfaff [Sun, 5 Apr 2015 19:12:14 +0000 (12:12 -0700)]
ovs-dev.py: Remove vport-*.ko at same time as openvswitch.ko.

My guess is that this is the intent.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
9 years agorhel: Package vport-*.ko in Fedora kernel package.
Ben Pfaff [Sun, 5 Apr 2015 19:12:13 +0000 (12:12 -0700)]
rhel: Package vport-*.ko in Fedora kernel package.

Fixes a presumed build break due to unpackaged files.  (Only "presumed" at
this point because it is masked in the VMware build system by the similar
XenServer build failure.)

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
9 years agoxenserver: Package vport-*.ko with kernel module.
Ben Pfaff [Sun, 5 Apr 2015 19:12:12 +0000 (12:12 -0700)]
xenserver: Package vport-*.ko with kernel module.

Fixes a build error due to unpackaged files.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
9 years agoovs-sandbox: Tell gdb to start the daemon.
Russell Bryant [Fri, 3 Apr 2015 20:04:14 +0000 (16:04 -0400)]
ovs-sandbox: Tell gdb to start the daemon.

The current gdb support launches gdb but doesn't start the daemon.
If you start ovsdb-server with gdb, ovs-sandbox produces an error as
it tries to run ovs-vsctl before ovsdb-server is running.  Telling gdb
to start the daemon immediately avoids this error.

There are cases where it's useful to go straight to the gdb prompt,
too.  For example, someone may want to set a breakpoint.  In that
case, it's easy enough to just kill it, set a breakpoint, and execute
'run' again.

In passing, fix indentation to use spaces instead of tabs.

Signed-off-by: Russell Bryant <rbryant@redhat.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>