Re: [ovs-dev] knowing when a kernel flow is really deleted

2011-12-14 Thread Jesse Gross
On Wed, Dec 14, 2011 at 4:23 PM, Ben Pfaff wrote: > On Wed, Dec 14, 2011 at 04:21:21PM -0800, Ethan Jackson wrote: >> > ? ? ? ?4. Have the RCU callback for flow deletion send the Netlink >> > ? ? ? ? ? broadcast message that tells userspace that the flow is gone. >> > ? ? ? ? ? The Netlink client

Re: [ovs-dev] knowing when a kernel flow is really deleted

2011-12-14 Thread Jesse Gross
On Wed, Dec 14, 2011 at 4:12 PM, Ben Pfaff wrote: > Why do we care?  Current userspace isn't really affected.  At most, we > get flow statistics wrong by one packet (I guess multiple packets is > theoretically possible?), if and when this happens.  The place where it > keeps coming up is in situat

[ovs-dev] [PATCH] vswitchd: Default to active-backup bonds.

2011-12-14 Thread Ethan Jackson
Since SLB bonds are fairly risky (see vswitchd/INTERNALS), it seems prudent to require users to explicitly configure them. This patch defaults to active-backup bonds when no other bond_mode is explicitly specified. Signed-off-by: Ethan Jackson --- vswitchd/bridge.c|2 +- vswitchd/vswitc

[ovs-dev] [PATCH 1/3] datapath: Add genl_exec().

2011-12-14 Thread Pravin B Shelar
Fixed according to comments from Ansis. --8<--cut here-->8-- genl_lock is not exported from older kernel. Following patch add genl_exec() which can run any function (passed as arg) with genl_mutex held. Signed-off-by: Pravin B Shelar --- datapath

Re: [ovs-dev] [PATCH 1/3] datapath: Add genl_exec().

2011-12-14 Thread Pravin Shelar
On Wed, Dec 14, 2011 at 5:16 PM, Jesse Gross wrote: > On Wed, Dec 14, 2011 at 4:48 PM, Pravin Shelar wrote: >> On Wed, Dec 14, 2011 at 4:37 PM, Jesse Gross wrote: >>> On Wed, Dec 14, 2011 at 3:47 PM, Pravin Shelar wrote: On Wed, Dec 14, 2011 at 3:34 PM, Jesse Gross wrote: > On Wed, De

Re: [ovs-dev] [flow-stats 06/14] packets: New function eth_from_hex().

2011-12-14 Thread Ansis Atteka
On Thu, Dec 8, 2011 at 2:01 PM, Ben Pfaff wrote: > An upcoming commit will add another user. > --- > lib/packets.c | 25 + > lib/packets.h |2 ++ > ofproto/ofproto-dpif.c | 12 > 3 files changed, 31 insertions(+), 8 deletions(-) > >

Re: [ovs-dev] [PATCH 1/3] datapath: Add genl_exec().

2011-12-14 Thread Jesse Gross
On Wed, Dec 14, 2011 at 4:48 PM, Pravin Shelar wrote: > On Wed, Dec 14, 2011 at 4:37 PM, Jesse Gross wrote: >> On Wed, Dec 14, 2011 at 3:47 PM, Pravin Shelar wrote: >>> On Wed, Dec 14, 2011 at 3:34 PM, Jesse Gross wrote: On Wed, Dec 14, 2011 at 3:07 PM, Pravin Shelar wrote: > On Wed,

[ovs-dev] hello

2011-12-14 Thread Vannessa Harry
I will be happy if you can reply me back for i have something very important to tell you, Ms Vannessa Nuova grafica e nuove funzionalità! Crea subito Gratis la tua nuova Casella di Posta Katamail ___ dev mailing list dev@openvswitch.org http://op

Re: [ovs-dev] [PATCH 1/3] datapath: Add genl_exec().

2011-12-14 Thread Pravin Shelar
On Wed, Dec 14, 2011 at 4:37 PM, Jesse Gross wrote: > On Wed, Dec 14, 2011 at 3:47 PM, Pravin Shelar wrote: >> On Wed, Dec 14, 2011 at 3:34 PM, Jesse Gross wrote: >>> On Wed, Dec 14, 2011 at 3:07 PM, Pravin Shelar wrote: On Wed, Dec 14, 2011 at 2:47 PM, Ansis Atteka wrote: > On Wed, D

Re: [ovs-dev] [PATCH 1/3] datapath: Add genl_exec().

2011-12-14 Thread Jesse Gross
On Wed, Dec 14, 2011 at 3:47 PM, Pravin Shelar wrote: > On Wed, Dec 14, 2011 at 3:34 PM, Jesse Gross wrote: >> On Wed, Dec 14, 2011 at 3:07 PM, Pravin Shelar wrote: >>> On Wed, Dec 14, 2011 at 2:47 PM, Ansis Atteka wrote: On Wed, Dec 14, 2011 at 2:08 PM, Pravin B Shelar wrote: >

Re: [ovs-dev] knowing when a kernel flow is really deleted

2011-12-14 Thread Ben Pfaff
On Wed, Dec 14, 2011 at 04:21:21PM -0800, Ethan Jackson wrote: > > ? ? ? ?4. Have the RCU callback for flow deletion send the Netlink > > ? ? ? ? ? broadcast message that tells userspace that the flow is gone. > > ? ? ? ? ? The Netlink client that sent the actual deletion request > > ? ? ? ? ? woul

Re: [ovs-dev] knowing when a kernel flow is really deleted

2011-12-14 Thread Ethan Jackson
>        4. Have the RCU callback for flow deletion send the Netlink >           broadcast message that tells userspace that the flow is gone. >           The Netlink client that sent the actual deletion request >           would still get a synchronous response, but the broadcast >           would

[ovs-dev] knowing when a kernel flow is really deleted

2011-12-14 Thread Ben Pfaff
Currently, a Netlink operation that deletes a flow can send its response to userspace before the flow is completely "gone", because another CPU can see the flow just before the deletion becomes visible on that CPU and still be processing its actions afterward. I don't know if this is actually a sc

Re: [ovs-dev] [PATCH 1/3] datapath: Add genl_exec().

2011-12-14 Thread Pravin Shelar
On Wed, Dec 14, 2011 at 3:34 PM, Jesse Gross wrote: > On Wed, Dec 14, 2011 at 3:07 PM, Pravin Shelar wrote: >> On Wed, Dec 14, 2011 at 2:47 PM, Ansis Atteka wrote: >>> On Wed, Dec 14, 2011 at 2:08 PM, Pravin B Shelar wrote: +int genl_exec(genl_exec_func_t func, void *data) +{ +  

Re: [ovs-dev] [PATCH 1/3] datapath: Add genl_exec().

2011-12-14 Thread Jesse Gross
On Wed, Dec 14, 2011 at 3:07 PM, Pravin Shelar wrote: > On Wed, Dec 14, 2011 at 2:47 PM, Ansis Atteka wrote: >> On Wed, Dec 14, 2011 at 2:08 PM, Pravin B Shelar wrote: >>> +int genl_exec(genl_exec_func_t func, void *data) >>> +{ >>> +       struct sk_buff *skb; >>> + >>> +       skb = genlmsg_ne

Re: [ovs-dev] [PATCH 1/3] datapath: Add genl_exec().

2011-12-14 Thread Pravin Shelar
On Wed, Dec 14, 2011 at 2:47 PM, Ansis Atteka wrote: > > On Wed, Dec 14, 2011 at 2:08 PM, Pravin B Shelar wrote: >> >> genl_lock is not exported from older kernel. Following patch add >> genl_exec() which can run any function (passed as arg) with >> genl_lock held. >> >> Signed-off-by: Pravin B S

Re: [ovs-dev] [PATCH] ofproto-dpif: Flush MACs for deleted ports from every bridge.

2011-12-14 Thread Ethan Jackson
> +                            tag_set_add(&o->revalidate_set, e->tag); > +                            mac_learning_expire (o->ml, e); Redundant space in this function call. As I read this, I was wondering if we could somehow expose the all_ofprotos map in ofproto.c to providers by implementing s

[ovs-dev] [PATCH 3/3] datapath: Implement flow table re-hashing.

2011-12-14 Thread Pravin B Shelar
Fixed according to comments from Jesse. - fixed to make it consistent with upstream version. --8<--cut here-->8-- Following patch introduces a timer based event to rehash flow-hash table. It makes finding collisions difficult to for an attac

[ovs-dev] [PATCH 2/3] datapath: Fix OVS compat workqueue support.

2011-12-14 Thread Pravin B Shelar
Signed-off-by: Pravin B Shelar --- datapath/datapath.c |9 +- datapath/linux/Modules.mk |3 +- datapath/linux/compat/include/linux/workqueue.h | 74 ++--- datapath/linux/compat/workqueue.c | 213 +++

[ovs-dev] [PATCH 1/3] datapath: Add genl_exec().

2011-12-14 Thread Pravin B Shelar
genl_lock is not exported from older kernel. Following patch add genl_exec() which can run any function (passed as arg) with genl_lock held. Signed-off-by: Pravin B Shelar --- datapath/datapath.c |9 ++- datapath/linux/compat/genetlink.inc | 102 +

Re: [ovs-dev] [flow-stats 05/14] unixctl: Implement quoting.

2011-12-14 Thread Ethan Jackson
All your comments sound reasonable. Ethan On Wed, Dec 14, 2011 at 09:25, Ben Pfaff wrote: > On Tue, Dec 13, 2011 at 03:18:17PM -0800, Ethan Jackson wrote: >> Why are min and max args 'int's instead of 'size_t's or 'unsigned'? > > I was drawing an analogy to main(), which has an "int" for argc. >

Re: [ovs-dev] [flow-stats 06/14] packets: New function eth_from_hex().

2011-12-14 Thread Ethan Jackson
> ETH_TOTAL_MIN isn't really very useful in practice because it only > applies to packets that go over a physical Ethernet (or some > semi-accurate virtualization thereof).  I'm not even sure that all > physical media that we call "Ethernet" even has this requirement (is > there any reason for it o

[ovs-dev] [of1.1 2/3] ofp-util: Extend message decoding data structures with version field.

2011-12-14 Thread Ben Pfaff
This makes it possible to add entries for decoding OpenFlow messages with newer versions, e.g. OpenFlow 1.1 or 1.2. However, no actual messages for newer versions are actually implemented yet; that will come later. --- include/openflow/openflow.h |1 + lib/ofp-util.c | 112 +

[ovs-dev] [of1.1 1/3] nicira-ext: Rename "struct nxt_*" to "struct nx_*".

2011-12-14 Thread Ben Pfaff
Most structures in this file have an "nx_" prefix, so this makes naming more consistent. --- include/openflow/nicira-ext.h | 10 +- lib/ofp-print.c |4 ++-- lib/ofp-util.c|8 ofproto/ofproto.c |8 4 files changed, 15

[ovs-dev] [of1.1 0/3] revised begining of of1.1 draft series

2011-12-14 Thread Ben Pfaff
I think that these patches are now ready for review to be checked in. Compared to the start of the "of1.1 draft" series that I posted earlier, "ofp-util: Extend message decoding..." is new and "Better abstract..." now unit tests the OF1.1 error decoding support. Ben Pfaff (3): nicira-ext: Rename

[ovs-dev] (no subject)

2011-12-14 Thread KIM INVESTMENT LTD
Do you need a loan? CONTACT us with amount needed and duration___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [flow-stats 06/14] packets: New function eth_from_hex().

2011-12-14 Thread Ben Pfaff
On Tue, Dec 13, 2011 at 03:41:54PM -0800, Ethan Jackson wrote: > > + ? ?if (packet->size < ETH_HEADER_LEN) { > > In theory, I think we would want ETH_TOTAL_MIN here. However, that > could potentially be annoying for it's only user ofproto/trace. So I > think it's fine. Thank you for the review.

Re: [ovs-dev] [flow-stats 05/14] unixctl: Implement quoting.

2011-12-14 Thread Ben Pfaff
On Tue, Dec 13, 2011 at 03:18:17PM -0800, Ethan Jackson wrote: > Why are min and max args 'int's instead of 'size_t's or 'unsigned'? I was drawing an analogy to main(), which has an "int" for argc. > In ofproto/trace, you have a case which expects argc == 6, but you > only allow a maximum of 4 (+