[ovs-dev] [PATCH 0/2] Compilation with Android NDK (batch ii)

2011-09-23 Thread Simon Horman
Hi, this series contains a second round of patches intended to bring Open vSwitch closer to being able to be compiled when compiling using the Android NDK r6b (Android API level 13). ___ dev mailing list dev@openvswitch.org

[ovs-dev] Attention !!!

2011-09-23 Thread MR.S.GENERAL OKOM.
Attention, It was resolved and agreed at the bank head quarter that your inheritance fund would be deliver to you on a special method of payment Tag name read swift credit card, forward to us your full information to enable us deliver your card to you. Mr.S.general Okom

Re: [ovs-dev] [PATCH 0/2] Compilation with Android NDK (batch ii)

2011-09-23 Thread Ben Pfaff
On Fri, Sep 23, 2011 at 08:11:18PM +0900, Simon Horman wrote: this series contains a second round of patches intended to bring Open vSwitch closer to being able to be compiled when compiling using the Android NDK r6b (Android API level 13). Thanks Simon, I pushed both of these to master.

Re: [ovs-dev] [PATCH 5/5] dpif-linux: Prevent a single port from monopolizing upcalls.

2011-09-23 Thread Ben Pfaff
On Thu, Sep 22, 2011 at 03:59:30PM -0700, Jesse Gross wrote: On Thu, Sep 22, 2011 at 1:11 PM, Ben Pfaff b...@nicira.com wrote: On Mon, Sep 19, 2011 at 03:00:08PM -0700, Jesse Gross wrote: Currently it is possible for a client on a single port to generate a huge number of packets that miss

Re: [ovs-dev] [PATCH] fix vlan-id tracking in compose_actions()

2011-09-23 Thread Ben Pfaff
[adding Ethan since he designed the 'base_flow' thingy] On Thu, Sep 22, 2011 at 05:18:30PM -0700, Pravin Shelar wrote: Track vlan-id correctly. So that we can use that information for composing optimized action set. I don't think that this is a sufficient fix. The problem remains, at

Re: [ovs-dev] [PATCH 5/5] dpif-linux: Prevent a single port from monopolizing upcalls.

2011-09-23 Thread Jesse Gross
On Fri, Sep 23, 2011 at 9:16 AM, Ben Pfaff b...@nicira.com wrote: On Thu, Sep 22, 2011 at 03:59:30PM -0700, Jesse Gross wrote: On Thu, Sep 22, 2011 at 1:11 PM, Ben Pfaff b...@nicira.com wrote: On Mon, Sep 19, 2011 at 03:00:08PM -0700, Jesse Gross wrote: Currently it is possible for a client

[ovs-dev] [PATCH v2 2/6] datapath: Use unicast Netlink sockets for upcalls.

2011-09-23 Thread Jesse Gross
Currently we publish several multicast groups for upcalls and let userspace sockets subscribe to them. The benefit of this is mostly that userspace is the one doing the subscription - the actual multicast capability is not currently used and probably wouldn't be even if we moved to a multiprocess

[ovs-dev] [PATCH v2 3/6] ofproto-dpif: Flush flows before dpif_recv_set_mask().

2011-09-23 Thread Jesse Gross
Now that upcalls from the kernel use unicast sockets, we need to tell the kernel where to send them explicitly. This means that when the switch is restarted it's necessary to take control of any existing objects, which is done when the dpif listen mask becomes non-zero. Since we're going to blow

[ovs-dev] [PATCH v2 5/6] netlink: Expose version of nl_attr_find for key and len.

2011-09-23 Thread Jesse Gross
Many of our functions pass around a pointer to Netlink attributes and a length. This exposes the version of nl_attr_find that takes that format so it can be used by callers outside the Netlink library. --- v2: New patch. --- lib/netlink.c |2 +- lib/netlink.h |2 ++ 2 files changed, 3

[ovs-dev] [PATCH 1/2] ovs-monitor-ipsec: Add unit test.

2011-09-23 Thread Ben Pfaff
--- debian/ovs-monitor-ipsec | 52 ++- tests/automake.mk |1 + tests/ovs-monitor-ipsec.at | 222 tests/testsuite.at |1 + 4 files changed, 254 insertions(+), 22 deletions(-) create mode 100644

[ovs-dev] [PATCH 2/2] ovs-xapi-sync: Add unit test.

2011-09-23 Thread Ben Pfaff
--- tests/MockXenAPI.py| 82 tests/automake.mk |4 +- tests/ovs-xapi-sync.at | 74 ++ tests/testsuite.at |1 +

Re: [ovs-dev] [python idl 00/16] Make Python IDL support writing

2011-09-23 Thread Ben Pfaff
I pushed this series and sent out two more patches that add unit tests. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [python idl 00/16] Make Python IDL support writing

2011-09-23 Thread Ethan Jackson
Awesome, thanks. Ethan On Fri, Sep 23, 2011 at 14:25, Ben Pfaff b...@nicira.com wrote: I pushed this series and sent out two more patches that add unit tests. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH v2 2/6] datapath: Use unicast Netlink sockets for upcalls.

2011-09-23 Thread Ben Pfaff
On Fri, Sep 23, 2011 at 02:20:13PM -0700, Jesse Gross wrote: Currently we publish several multicast groups for upcalls and let userspace sockets subscribe to them. The benefit of this is mostly that userspace is the one doing the subscription - the actual multicast capability is not currently

Re: [ovs-dev] [PATCH v2 5/6] netlink: Expose version of nl_attr_find for key and len.

2011-09-23 Thread Ben Pfaff
On Fri, Sep 23, 2011 at 02:20:16PM -0700, Jesse Gross wrote: Many of our functions pass around a pointer to Netlink attributes and a length. This exposes the version of nl_attr_find that takes that format so it can be used by callers outside the Netlink library. --- v2: New patch. Looks

Re: [ovs-dev] [PATCH v2 6/6] dpif-linux: Prevent a single port from monopolizing upcalls.

2011-09-23 Thread Ben Pfaff
On Fri, Sep 23, 2011 at 02:20:17PM -0700, Jesse Gross wrote: Currently it is possible for a client on a single port to generate a huge number of packets that miss in the kernel flow table and monopolize the userspace/kernel communication path. This effectively DoS's the machine because no new

[ovs-dev] [PATCH] tag: Fix typo in comment.

2011-09-23 Thread Ben Pfaff
--- lib/tag.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/tag.h b/lib/tag.h index 5885e15..9cb581d 100644 --- a/lib/tag.h +++ b/lib/tag.h @@ -75,7 +75,7 @@ static inline bool tag_intersects(tag_type, tag_type); static inline bool tag_is_valid(tag_type); /*

Re: [ovs-dev] [PATCH] tag: Fix typo in comment.

2011-09-23 Thread Ethan Jackson
Looks good, Ethan On Fri, Sep 23, 2011 at 15:15, Ben Pfaff b...@nicira.com wrote: ---  lib/tag.h |    2 +-  1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/tag.h b/lib/tag.h index 5885e15..9cb581d 100644 --- a/lib/tag.h +++ b/lib/tag.h @@ -75,7 +75,7 @@ static inline

Re: [ovs-dev] [PATCH] tag: Fix typo in comment.

2011-09-23 Thread Ben Pfaff
Thanks, pushed. On Fri, Sep 23, 2011 at 03:18:33PM -0700, Ethan Jackson wrote: Looks good, Ethan On Fri, Sep 23, 2011 at 15:15, Ben Pfaff b...@nicira.com wrote: --- ?lib/tag.h | ? ?2 +- ?1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/tag.h b/lib/tag.h index

[ovs-dev] [PATCH] tests: test-jsonrpc references nonexistent variable.

2011-09-23 Thread Ethan Jackson
--- tests/test-jsonrpc.py |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test-jsonrpc.py b/tests/test-jsonrpc.py index 064457e..fda9a03 100644 --- a/tests/test-jsonrpc.py +++ b/tests/test-jsonrpc.py @@ -177,7 +177,7 @@ def main(argv): args = args[1:]

Re: [ovs-dev] [PATCH v2 2/6] datapath: Use unicast Netlink sockets for upcalls.

2011-09-23 Thread Jesse Gross
On Fri, Sep 23, 2011 at 2:38 PM, Ben Pfaff b...@nicira.com wrote: On Fri, Sep 23, 2011 at 02:20:13PM -0700, Jesse Gross wrote: Currently we publish several multicast groups for upcalls and let userspace sockets subscribe to them.  The benefit of this is mostly that userspace is the one doing

Re: [ovs-dev] [PATCH] tests: test-jsonrpc references nonexistent variable.

2011-09-23 Thread Ben Pfaff
Looks good. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH v2 2/6] datapath: Use unicast Netlink sockets for upcalls.

2011-09-23 Thread Ben Pfaff
On Fri, Sep 23, 2011 at 03:22:32PM -0700, Jesse Gross wrote: On Fri, Sep 23, 2011 at 2:38 PM, Ben Pfaff b...@nicira.com wrote: On Fri, Sep 23, 2011 at 02:20:13PM -0700, Jesse Gross wrote: Currently we publish several multicast groups for upcalls and let userspace sockets subscribe to them.

[ovs-dev] [PATCH] tests: test-jsonrpc.py whitespace cleanup.

2011-09-23 Thread Ethan Jackson
Pleases pep8. --- tests/test-jsonrpc.py | 14 ++ 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/tests/test-jsonrpc.py b/tests/test-jsonrpc.py index fda9a03..781f1f4 100644 --- a/tests/test-jsonrpc.py +++ b/tests/test-jsonrpc.py @@ -23,6 +23,7 @@ import ovs.jsonrpc

Re: [ovs-dev] [PATCH v2 6/6] dpif-linux: Prevent a single port from monopolizing upcalls.

2011-09-23 Thread Jesse Gross
On Fri, Sep 23, 2011 at 2:53 PM, Ben Pfaff b...@nicira.com wrote: On Fri, Sep 23, 2011 at 02:20:17PM -0700, Jesse Gross wrote: Currently it is possible for a client on a single port to generate a huge number of packets that miss in the kernel flow table and monopolize the userspace/kernel

Re: [ovs-dev] [PATCH] tests: test-jsonrpc references nonexistent variable.

2011-09-23 Thread Ethan Jackson
Thanks, pushed. On Fri, Sep 23, 2011 at 15:23, Ben Pfaff b...@nicira.com wrote: Looks good. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

[ovs-dev] [PATCH] ovs-bugtool: Use RUNDIR macro for ovs-appctl target.

2011-09-23 Thread Justin Pettit
--- utilities/bugtool/ovs-bugtool.in |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/utilities/bugtool/ovs-bugtool.in b/utilities/bugtool/ovs-bugtool.in index c2b603f..422b2dd 100755 --- a/utilities/bugtool/ovs-bugtool.in +++ b/utilities/bugtool/ovs-bugtool.in @@

[ovs-dev] [PATCH] datapath: Annotate dp_ifindex code with likely/unlikely.

2011-09-23 Thread Ben Pfaff
There's only a small race window on datapath creation when get_dpfindex() can return 0, so it's pretty unlikely. Found by inspection. Signed-off-by: Ben Pfaff b...@nicira.com --- datapath/datapath.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datapath/datapath.c

Re: [ovs-dev] [PATCH] datapath: Annotate dp_ifindex code with likely/unlikely.

2011-09-23 Thread Ben Pfaff
On Fri, Sep 23, 2011 at 03:44:49PM -0700, Jesse Gross wrote: On Fri, Sep 23, 2011 at 3:32 PM, Ben Pfaff b...@nicira.com wrote: There's only a small race window on datapath creation when get_dpfindex() can return 0, so it's pretty unlikely. Found by inspection. Signed-off-by: Ben Pfaff

[ovs-dev] [PATCH 1/2] ovs-monitor-ipsec: Remove unused root-prefix option.

2011-09-23 Thread Ethan Jackson
--- debian/ovs-monitor-ipsec |5 + 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/debian/ovs-monitor-ipsec b/debian/ovs-monitor-ipsec index c123188..f62c393 100755 --- a/debian/ovs-monitor-ipsec +++ b/debian/ovs-monitor-ipsec @@ -436,7 +436,7 @@ def get_ssl_cert(data):

[ovs-dev] [PATCH 2/2] ovs-monitor-ipsec: Style cleanup.

2011-09-23 Thread Ethan Jackson
Pleases pep8. --- debian/ovs-monitor-ipsec | 42 -- 1 files changed, 24 insertions(+), 18 deletions(-) diff --git a/debian/ovs-monitor-ipsec b/debian/ovs-monitor-ipsec index f62c393..10b278d 100755 --- a/debian/ovs-monitor-ipsec +++

Re: [ovs-dev] [PATCH 1/2] ovs-monitor-ipsec: Remove unused root-prefix option.

2011-09-23 Thread Ben Pfaff
This option gets used in the unit test for ovs-monitor-ipsec that is currently out for review. I accidentally let part of that stray into the wrong commit. It's fine if you delete it, though; I'll fold it into the unit test commit. ___ dev mailing list

Re: [ovs-dev] [PATCH 2/2] ovs-monitor-ipsec: Style cleanup.

2011-09-23 Thread Ben Pfaff
On Fri, Sep 23, 2011 at 05:05:56PM -0700, Ethan Jackson wrote: Pleases pep8. Fine with me. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

[ovs-dev] [PATCH] bond: Remove spurious blank line.

2011-09-23 Thread Ben Pfaff
--- lib/bond.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/lib/bond.c b/lib/bond.c index 5b984fb..e15af04 100644 --- a/lib/bond.c +++ b/lib/bond.c @@ -639,7 +639,6 @@ void bond_account(struct bond *bond, const struct flow *flow, uint16_t vlan, uint64_t

Re: [ovs-dev] [PATCH 1/2] ovs-monitor-ipsec: Remove unused root-prefix option.

2011-09-23 Thread Ethan Jackson
Sounds good. pep8 complained about the global variable being defined outside module context which is why I deleted it. Could you please fix the warning in your patch? Ethan On Fri, Sep 23, 2011 at 17:13, Ben Pfaff b...@nicira.com wrote: This option gets used in the unit test for

Re: [ovs-dev] [PATCH 1/2] ovs-monitor-ipsec: Remove unused root-prefix option.

2011-09-23 Thread Ben Pfaff
Will do, thanks. On Fri, Sep 23, 2011 at 05:15:22PM -0700, Ethan Jackson wrote: Sounds good. pep8 complained about the global variable being defined outside module context which is why I deleted it. Could you please fix the warning in your patch? Ethan On Fri, Sep 23, 2011 at 17:13,

[ovs-dev] [vlans v2 0/5] Implement native VLANs, add lots of tests

2011-09-23 Thread Ben Pfaff
This second version of the vlans series adds two commits at the beginning that fix up some internal ugliness and bugs in the OFPP_NORMAL handling of vlans in ofproto-dpif. I've also fixed how mirroring to VLANs works in the final commit, as well as increasing the stringency of the tests to ensure

[ovs-dev] [vlans v2 1/5] ofproto-dpif: Fix VLAN and other field handling in OFPP_NORMAL.

2011-09-23 Thread Ben Pfaff
compose_actions(), which is part of the OFPP_NORMAL implementation, had multiple flaws that this commit corrects. First, it did not commit changes made to the flow by actions preceding the output to OFPP_NORMAL. This means that, for example, if an OpenFlow action to modify an L2 or L3 header

[ovs-dev] [vlans v2 2/5] ofproto-dpif: Get rid of OFP_VLAN_NONE pollution.

2011-09-23 Thread Ben Pfaff
OFP_VLAN_NONE used to be convenient as a value for struct dst's 'vlan' member, because it ended up being used in actions anyway, but now it's much better to just use 0. --- ofproto/ofproto-dpif.c | 55 ++- 1 files changed, 21 insertions(+), 34

[ovs-dev] [vlans v2 3/5] ofproto-dpif: Add tests for VLAN handling.

2011-09-23 Thread Ben Pfaff
These tests would have caught the bug fixed in the previous commit ofproto-dpif: Fix behavior when a subset of VLANs is trunked. --- tests/ofproto-dpif.at | 79 +++ tests/ofproto-macros.at | 43 + 2 files changed, 122

[ovs-dev] [vlans v2 4/5] bitmap: New function to allocate a bitmap initialized to all-1-bits.

2011-09-23 Thread Ben Pfaff
--- lib/bitmap.c | 21 - lib/bitmap.h |2 ++ 2 files changed, 22 insertions(+), 1 deletions(-) diff --git a/lib/bitmap.c b/lib/bitmap.c index df3c4eb..76a667a 100644 --- a/lib/bitmap.c +++ b/lib/bitmap.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2009 Nicira Networks.

[ovs-dev] [vlans v2 5/5] Implement native VLAN feature.

2011-09-23 Thread Ben Pfaff
Significant updates by Ben Pfaff, including: * Comment, coding style, indentation updates. * Documentation improved. * Added tests. * Dropped PORT_VLAN_EMPTY. --- NEWS |3 + ofproto/ofproto-dpif.c | 156 +++--- ofproto/ofproto.h

Re: [ovs-dev] [PATCH] fix vlan-id tracking in compose_actions()

2011-09-23 Thread Ben Pfaff
On Fri, Sep 23, 2011 at 10:57:35AM -0700, Ben Pfaff wrote: [adding Ethan since he designed the 'base_flow' thingy] On Thu, Sep 22, 2011 at 05:18:30PM -0700, Pravin Shelar wrote: Track vlan-id correctly. So that we can use that information for composing optimized action set. I don't

Re: [ovs-dev] [PATCH 1/2] ovs-xapi-sync: Remove dead code.

2011-09-23 Thread Ben Pfaff
These look fine to me. They're going to conflict with the unit tests I sent out today, but it should be easy enough to fix up. How much work would it be to fix all the remaining pychecker and pep8 warnings in one series? I think I'd rather get it all fixed in one go, if it's practical.

Re: [ovs-dev] [PATCH] bond: Remove spurious blank line.

2011-09-23 Thread Justin Pettit
Looks obviously correct. --Justin On Sep 23, 2011, at 5:14 PM, Ben Pfaff b...@nicira.com wrote: --- lib/bond.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/lib/bond.c b/lib/bond.c index 5b984fb..e15af04 100644 --- a/lib/bond.c +++ b/lib/bond.c @@ -639,7

Re: [ovs-dev] [PATCH] bond: Remove spurious blank line.

2011-09-23 Thread Ben Pfaff
Thanks, I pushed it. On Fri, Sep 23, 2011 at 09:22:39PM -0700, Justin Pettit wrote: Looks obviously correct. --Justin On Sep 23, 2011, at 5:14 PM, Ben Pfaff b...@nicira.com wrote: --- lib/bond.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git

Re: [ovs-dev] [manpages 0/5] more manpage infrastructure improvements

2011-09-23 Thread Ben Pfaff
This series has been waiting for review for almost a month now. I'd like to get it reviewed someday soon. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [error reporting 0/6] enhance OpenFlow error reporting

2011-09-23 Thread Ben Pfaff
This series has gone without any reviews for a couple of weeks. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev