It should be possible to feed to output of "ovs-ofctl dump-flows" to
"ovs-ofctl add-flows". However, some of the metadata needs to be
ignored. "idle_age" was recently added to the output of "ovs-ofctl
dump-flows", but it was not ignored like the other metadata. This
commit ignores it.
Signed-of
Hello OVS experts,
I'm new to OVS and trying to understand a few things...
1. When packet comes in, there is a lookup for outer-IP/L4 in vport-gre.c
(for GRE overlay). Then GRE key is matched.
Finally, at some point later, there is a look up for inner IP/L4 before
inner IP/L4/payload is sent to "
On Jan 29, 2013, at 9:13 PM, Kyle Mestery (kmestery) wrote:
> On Jan 29, 2013, at 6:47 PM, Jesse Gross wrote:
>> On Tue, Jan 29, 2013 at 3:27 PM, Kyle Mestery (kmestery)
>> wrote:
>>> On Jan 29, 2013, at 5:19 PM, Jesse Gross wrote:
The other area that I'm somewhat concerned about is with u
On Fri, Feb 01, 2013 at 12:14:56AM -0800, Justin Pettit wrote:
> It should be possible to feed to output of "ovs-ofctl dump-flows" to
> "ovs-ofctl add-flows". However, some of the metadata needs to be
> ignored. "idle_age" was recently added to the output of "ovs-ofctl
> dump-flows", but it was n
On Fri, Feb 1, 2013 at 2:19 AM, SDN learn wrote:
> Hello OVS experts,
>
> I'm new to OVS and trying to understand a few things...
>
> 1. When packet comes in, there is a lookup for outer-IP/L4 in vport-gre.c
> (for GRE overlay). Then GRE key is matched.
> Finally, at some point later, there is a l
On Fri, Feb 1, 2013 at 6:30 AM, Kyle Mestery (kmestery)
wrote:
> On Jan 29, 2013, at 9:13 PM, Kyle Mestery (kmestery)
> wrote:
>> On Jan 29, 2013, at 6:47 PM, Jesse Gross wrote:
>>> On Tue, Jan 29, 2013 at 3:27 PM, Kyle Mestery (kmestery)
>>> wrote:
On Jan 29, 2013, at 5:19 PM, Jesse Gros
On Feb 1, 2013, at 12:03 PM, Jesse Gross wrote:
> On Fri, Feb 1, 2013 at 6:30 AM, Kyle Mestery (kmestery)
> wrote:
>> On Jan 29, 2013, at 9:13 PM, Kyle Mestery (kmestery)
>> wrote:
>>> On Jan 29, 2013, at 6:47 PM, Jesse Gross wrote:
On Tue, Jan 29, 2013 at 3:27 PM, Kyle Mestery (kmestery)
I applied this to master.
On Fri, Aug 17, 2012 at 06:21:29PM -0700, Ethan Jackson wrote:
> Looks good, thanks.
>
> Ethan
>
> On Fri, Aug 17, 2012 at 4:34 PM, Ben Pfaff wrote:
> > Some Open vSwitch utilities can do useful work when they are not run as
> > root. Without this commit, these utilit
Otherwise, if the test bails out before finishing, the test-netflow daemon
doesn't get killed and the test hangs.
Signed-off-by: Ben Pfaff
---
tests/ofproto-dpif.at |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tests/ofproto-dpif.at b/tests/ofproto-dpif.at
index 3eec9
This is the second version of a patch series that I originally
sent out on Aug. 17, 2012. The first version only attracted a
review for the first patch.
Ben Pfaff (6):
tests: Fix error path in netflow test.
poll-loop: Reduce high-CPU log messages from WARN to INFO.
bond: Reduce log level fr
These can happen occasionally in normal circumstances.
Signed-off-by: Ben Pfaff
---
lib/poll-loop.c |4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/poll-loop.c b/lib/poll-loop.c
index fca1dfa..9855306 100644
--- a/lib/poll-loop.c
+++ b/lib/poll-loop.c
@@ -165,8 +1
This avoids a log warning:
bridge|WARN|port bond: Using the default bond_mode active-backup.
Note that in previous versions, the default bond_mode was balance-slb
This warning is harmless, but I'm trying to add checks for "warn" and
higher severity log messages to the tests, so it makes s
An interface coming up or going down isn't a big deal.
Signed-off-by: Ben Pfaff
---
lib/bond.c |6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/bond.c b/lib/bond.c
index 06680ee..2e151eb 100644
--- a/lib/bond.c
+++ b/lib/bond.c
@@ -1302,12 +1302,12 @@ bond_enable
It is necessary to whitelist a couple of tests that appear to legitimately
have WARN messages.
Signed-off-by: Ben Pfaff
---
tests/ofproto-macros.at | 20 +++-
tests/tunnel.at |4 ++--
2 files changed, 21 insertions(+), 3 deletions(-)
diff --git a/tests/ofproto-macr
It's not meaningful in that case.
Signed-off-by: Ben Pfaff
---
lib/timeval.c |4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/timeval.c b/lib/timeval.c
index d91305c..4ffb756 100644
--- a/lib/timeval.c
+++ b/lib/timeval.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008,
On Thursday 31 January 2013 20:30:18 Ethan Jackson wrote:
> Are you absolutely sure the traffic isn't egressing the first switch,
> and then ingressing the other switch into the bond? It's often hard
> to tell with tcpdump which direction traffic is travelling.
That made me really think and final
Acked-by: Ethan Jackson
On Thu, Jan 24, 2013 at 2:44 PM, Ben Pfaff wrote:
> Two of the users of vlog_set_levels_from_string() in the tests could have
> silently failed, if their arguments were invalid. This avoids that problem
> (and a memory leak).
>
> Found by Coverity.
>
> Signed-off-by: Ben
Acked-by: Ethan Jackson
On Thu, Jan 24, 2013 at 2:44 PM, Ben Pfaff wrote:
> This function has a parameter 's' and a local variable 's', so rename the
> local variable to reduce confusion.
>
> Found by Coverity.
>
> Signed-off-by: Ben Pfaff
> ---
> lib/ofp-util.c | 10 +-
> 1 files ch
Acked-by: Ethan Jackson
On Thu, Jan 24, 2013 at 2:44 PM, Ben Pfaff wrote:
> It's unlikely to fail but checking it can't hurt.
>
> Found by Coverity.
>
> Signed-off-by: Ben Pfaff
> ---
> lib/process.c | 12 +---
> 1 files changed, 9 insertions(+), 3 deletions(-)
>
> diff --git a/lib/p
Acked-by: Ethan Jackson
On Thu, Jan 24, 2013 at 2:44 PM, Ben Pfaff wrote:
> This function has a parameter 'ofp_port' and a local variable 'ofp_port',
> so rename the local variable to reduce confusion.
>
> Found by Coverity.
>
> Signed-off-by: Ben Pfaff
> ---
> vswitchd/bridge.c |4 ++--
>
Acked-by: Ethan Jackson
On Thu, Jan 24, 2013 at 2:44 PM, Ben Pfaff wrote:
> It's unlikely to fail but checking it can't hurt.
>
> Found by Coverity.
>
> Signed-off-by: Ben Pfaff
> ---
> lib/netdev-linux.c |6 +-
> 1 files changed, 5 insertions(+), 1 deletions(-)
>
> diff --git a/lib/ne
Acked-by: Ethan Jackson
On Thu, Jan 24, 2013 at 2:44 PM, Ben Pfaff wrote:
> jsonrpc_transact_block() might return EOF so passing its return value to
> strerror() isn't general enough.
>
> It might be better to change jsonrpc_transact{_block}() to never return
> EOF, since a closed connection see
Acked-by: Ethan Jackson
On Thu, Jan 24, 2013 at 2:44 PM, Ben Pfaff wrote:
> Found by Coverity.
>
> Signed-off-by: Ben Pfaff
> ---
> lib/worker.c |2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/lib/worker.c b/lib/worker.c
> index 6ca05cd..9bcad55 100644
> --- a/li
I've always found this part of C annoying.
Acked-by: Ethan Jackson
On Thu, Jan 24, 2013 at 2:44 PM, Ben Pfaff wrote:
> Durations longer than 4294967 seconds would unnecessarily overflow in the
> multiplication here.
>
> Found by Coverity.
>
> Signed-off-by: Ben Pfaff
> ---
> lib/timeval.c |
On Feb 1, 2013, at 7:20 AM, Ben Pfaff wrote:
> On Fri, Feb 01, 2013 at 12:14:56AM -0800, Justin Pettit wrote:
>> It should be possible to feed to output of "ovs-ofctl dump-flows" to
>> "ovs-ofctl add-flows". However, some of the metadata needs to be
>> ignored. "idle_age" was recently added to
It doesn't seem like a good idea to allow the queue length to grow without
bound, even for a test-only device.
Signed-off-by: Ben Pfaff
---
lib/netdev-dummy.c | 11 ++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/lib/netdev-dummy.c b/lib/netdev-dummy.c
index f81b68e
An upcoming patch will add another user.
Signed-off-by: Ben Pfaff
---
lib/netdev-dummy.c | 33 ++---
1 files changed, 22 insertions(+), 11 deletions(-)
diff --git a/lib/netdev-dummy.c b/lib/netdev-dummy.c
index 001d188..215e1a2 100644
--- a/lib/netdev-dummy.c
+++ b
This adds support for running OFTest against an OVS tree with a
simple "make check-oftest". It is a revised and greatly shortened
version of a series I originally posted in October 2012.
Ben Pfaff (5):
netdev-dummy: Limit receive queue length to 100 packets.
netdev-dummy: Factor some netdev_
Signed-off-by: Ben Pfaff
---
Makefile.am |3 +-
NEWS |2 +
README-OFTest | 77 +++
tests/automake.mk |6 +++
tests/run-oftest | 94 +
5 files changed, 181 insertions
Ethan pointed out that this wasn't very useful.
Signed-off-by: Ben Pfaff
---
lib/netdev-dummy.c| 16 +++-
tests/ofproto-dpif.at |6 ++
2 files changed, 5 insertions(+), 17 deletions(-)
diff --git a/lib/netdev-dummy.c b/lib/netdev-dummy.c
index 215e1a2..2884a80 100644
-
Signed-off-by: Ben Pfaff
---
lib/netdev-dummy.c | 284 +--
1 files changed, 272 insertions(+), 12 deletions(-)
diff --git a/lib/netdev-dummy.c b/lib/netdev-dummy.c
index 2884a80..30bd794 100644
--- a/lib/netdev-dummy.c
+++ b/lib/netdev-dummy.c
@@
Thanks for all the reviews. I'll push these to master soon.
On Fri, Feb 01, 2013 at 01:59:26PM -0800, Ethan Jackson wrote:
> I've always found this part of C annoying.
>
> Acked-by: Ethan Jackson
>
> On Thu, Jan 24, 2013 at 2:44 PM, Ben Pfaff wrote:
> > Durations longer than 4294967 seconds w
Presumably we can test for this Linux feature just by seeing whether the
directory is there.
Another goal is to shorten the code because I intend to make another copy
of it in an upcoming commit, to add a similar test for Python.
Signed-off-by: Ben Pfaff
---
tests/library.at | 12 +---
Signed-off-by: Ben Pfaff
---
tests/automake.mk |1 +
tests/library.at | 24 ++-
tests/test-unix-socket.py | 54 +
3 files changed, 77 insertions(+), 2 deletions(-)
create mode 100644 tests/test-unix-socket.py
d
Signed-off-by: Ben Pfaff
---
tests/library.at |7 ---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/tests/library.at b/tests/library.at
index d8280fd..3e84648 100644
--- a/tests/library.at
+++ b/tests/library.at
@@ -126,9 +126,10 @@ dnl for other platforms, so we skip the
This is a repost of three patches originally posted Jan. 16.
Ben Pfaff (3):
tests: Make test for Linux /proc/self/fd more straightforward.
tests: Make long name more readable by introducing a shell variable.
tests: Add test for Python version of long socket name workaround.
tests/automake.
There's no reason to inline this when we have a helper for it.
Signed-off-by: Ben Pfaff
---
This is a repost of a patch originally posted Oct. 31, 2012.
lib/socket-util.c |9 ++---
1 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/lib/socket-util.c b/lib/socket-util.c
index
The IS_POW2 macro is meant for use in contexts where a function call is not
allowed.
Signed-off-by: Ben Pfaff
---
This is a repost of a patch originally posted Oct. 31, 2012.
lib/util.c|2 +-
utilities/ovs-ofctl.c |2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff
Commit cc7ecee48 (vswitchd: Add unique indexes for some columns.) says,
in part:
With this commit, the database server itself rejects attempts to add
Port or Interface records with duplicate names or Controller or
Manager records with duplicate targets.
but in fact didn't change the C
Acked-by: Ethan Jackson
On Fri, Feb 1, 2013 at 2:50 PM, Ben Pfaff wrote:
> The IS_POW2 macro is meant for use in contexts where a function call is not
> allowed.
>
> Signed-off-by: Ben Pfaff
> ---
> This is a repost of a patch originally posted Oct. 31, 2012.
>
> lib/util.c|2 +
Acked-by: Ethan Jackson
On Fri, Feb 1, 2013 at 2:48 PM, Ben Pfaff wrote:
> There's no reason to inline this when we have a helper for it.
>
> Signed-off-by: Ben Pfaff
> ---
> This is a repost of a patch originally posted Oct. 31, 2012.
>
> lib/socket-util.c |9 ++---
> 1 files changed,
Before this change, enums that have one member were formatted as, e.g.:
"one of xyzzy, , or "
This changes them to be formatted as:
"must be xyzzy"
which makes much more sense.
(An enum with one member may make some sense if you are trying to leave
the possibility for future expansion.)
S
Thanks, I'll push this soon.
On Fri, Feb 01, 2013 at 02:52:05PM -0800, Ethan Jackson wrote:
> Acked-by: Ethan Jackson
>
> On Fri, Feb 1, 2013 at 2:48 PM, Ben Pfaff wrote:
> > There's no reason to inline this when we have a helper for it.
> >
> > Signed-off-by: Ben Pfaff
> > ---
> > This is a r
Thanks, I'll push this soon.
On Fri, Feb 01, 2013 at 02:51:44PM -0800, Ethan Jackson wrote:
> Acked-by: Ethan Jackson
>
> On Fri, Feb 1, 2013 at 2:50 PM, Ben Pfaff wrote:
> > The IS_POW2 macro is meant for use in contexts where a function call is not
> > allowed.
> >
> > Signed-off-by: Ben Pfaf
Looks good. I assume there is no way to have no literals?
For what it's worth,
english = 'one of %s, %s, or %s' % (literals[0],
', '.join(literals[1:-1]),
literals[-1])
could also be written as
english = 'one o
Some tunnel code in OVS (for example, CAPWAP) uses the skb->cb to
store information while processing packets. However, if we don't
find an appropriate tunnel port on receive, then we send an ICMP
port unreachable message, which calls back into the IP stack. The
stack assumes that skb->cb will sti
On Feb 1, 2013, at 6:58 PM, Jesse Gross wrote:
> Some tunnel code in OVS (for example, CAPWAP) uses the skb->cb to
> store information while processing packets. However, if we don't
> find an appropriate tunnel port on receive, then we send an ICMP
> port unreachable message, which calls back int
On Fri, Feb 1, 2013 at 5:04 PM, Kyle Mestery (kmestery)
wrote:
> On Feb 1, 2013, at 6:58 PM, Jesse Gross wrote:
>> Some tunnel code in OVS (for example, CAPWAP) uses the skb->cb to
>> store information while processing packets. However, if we don't
>> find an appropriate tunnel port on receive,
48 matches
Mail list logo