Re: [ovs-dev] [PATCH] ofproto: Return error codes for Rule insertions

2018-07-31 Thread Aravind Prasad
> > Rule-insert errors for bundles are handled too in this pull-request. > > > > Signed-off-by: Aravind Prasad S > > >Which switches does this help? > > Hi Ben, These type of errors are possible in actual Hardware > implementations of OVS. It is possible that ofproto and n

Re: [ovs-dev] [PATCH] ofproto: Return error codes for Rule insertions

2018-07-30 Thread Aravind Prasad
ependent layers for HW rule > insertions and application layer to interact with OVS. HW layer > could face any dynamic issue during rule handling which application could > not have predicted/captured in rule-construction phase. > Rule-insert errors for bundles are handled too in this pull-reque

Re: [ovs-dev] [PATCH] ofproto: Return error codes for Rule insertions

2018-07-28 Thread Aravind Prasad
ependent layers for HW rule > insertions and application layer to interact with OVS. HW layer > could face any dynamic issue during rule handling which application could > not have predicted/captured in rule-construction phase. > Rule-insert errors for bundles are handled too in this pull-reque

Re: [ovs-dev] [PATCH] ofproto: Return error codes for Rule insertions

2018-07-25 Thread Aravind Prasad
ependent layers for HW rule > insertions and application layer to interact with OVS. HW layer > could face any dynamic issue during rule handling which application could > not have predicted/captured in rule-construction phase. > Rule-insert errors for bundles are handled too in this pull-reque

Re: [ovs-dev] [PATCH] ofproto: Return error codes for Rule insertions

2018-07-25 Thread Aravind Prasad
ependent layers for HW rule > insertions and application layer to interact with OVS. HW layer > could face any dynamic issue during rule handling which application could > not have predicted/captured in rule-construction phase. > Rule-insert errors for bundles are handled too in this pull-reque

Re: [ovs-dev] [PATCH] ofproto: Return error codes for Rule insertions

2018-07-23 Thread Aravind Prasad
ependent layers for HW rule > insertions and application layer to interact with OVS. HW layer > could face any dynamic issue during rule handling which application could > not have predicted/captured in rule-construction phase. > Rule-insert errors for bundles are handled too in this pull-reque

Re: [ovs-dev] [PATCH] ofproto: Return error codes for Rule insertions

2018-07-20 Thread Aravind Prasad
independent layers for HW rule > insertions and application layer to interact with OVS. HW layer > could face any dynamic issue during rule handling which application could > not have predicted/captured in rule-construction phase. > Rule-insert errors for bundles are handled too in this pull-

Re: [ovs-dev] [PATCH] ofproto: Return error codes for Rule insertions

2018-07-19 Thread Aravind Prasad
Hi Ben/Aaron/All, Kindly review the patch and let me know your views. On Thu, Jul 12, 2018 at 11:34 PM, Aravind Prasad S wrote: > Currently, rule_insert() API does not have return value. There are some > possible > scenarios where rule insertions can fail at run-time even though t

Re: [ovs-dev] [PATCH] ofproto: Return error codes for Rule insertions

2018-07-17 Thread Aravind Prasad
Hi Aaron/Ben/All, If possible, Kindly review the patch and let me know your views. On Thu, Jul 12, 2018 at 11:34 PM, Aravind Prasad S wrote: > Currently, rule_insert() API does not have return value. There are some > possible > scenarios where rule insertions can fail at run-time ev

Re: [ovs-dev] [PATCH] ofproto: Return error codes for Rule insertions

2018-07-16 Thread Aravind Prasad
Hi Ben/Aaron/All, Kindly review the patch and let me know your views. On Thu, Jul 12, 2018 at 11:34 PM, Aravind Prasad S wrote: > Currently, rule_insert() API does not have return value. There are some > possible > scenarios where rule insertions can fail at run-time even though t

Re: [ovs-dev] [PATCH] ofproto: Return error codes for Rule insertions

2018-07-15 Thread Aravind Prasad
Hi Aaron/Ben/All, Kindly review the patch and let me know your views. On Thu, Jul 12, 2018 at 11:34 PM, Aravind Prasad S wrote: > Currently, rule_insert() API does not have return value. There are some > possible > scenarios where rule insertions can fail at run-time even though t

Re: [ovs-dev] [PATCH] ofproto: Return error codes for Rule insertions

2018-07-15 Thread Aravind Prasad
Hi Ben/Aaron,All, Kindly review the patch and let me know your views. On Thu, Jul 12, 2018 at 11:34 PM, Aravind Prasad S wrote: > Currently, rule_insert() API does not have return value. There are some > possible > scenarios where rule insertions can fail at run-time even though t

Re: [ovs-dev] [PATCH] ofproto: Return error codes for Rule insertions

2018-07-13 Thread Aravind Prasad
Hi Aaron/Ben/All, Kindly review the patch and let me know your views. On Thu, Jul 12, 2018 at 11:34 PM, Aravind Prasad S wrote: > Currently, rule_insert() API does not have return value. There are some > possible > scenarios where rule insertions can fail at run-time even though t

Re: [ovs-dev] [PATCH] ofproto: Return error codes for Rule insertions

2018-07-12 Thread Aravind Prasad
Hi Aaron/Ben/All, If possible, Kindly review the patch and let me know your views. On Thu, Jul 12, 2018 at 11:34 PM, Aravind Prasad S wrote: > Currently, rule_insert() API does not have return value. There are some > possible > scenarios where rule insertions can fail at run-time ev

Re: [ovs-dev] [PATCH] ofproto: Return error codes for Rule insertions

2018-07-12 Thread Aravind Prasad
your suggestion for using a integer type for success is valid but has to be handled as a separate cleanup patch which fixes this behavior across the entire codebase. Thanks, Aravind Prasad S On Thu, Jul 12, 2018 at 8:22 PM, Aaron Conole wrote: > Aravind Prasad S writes: > > > Cu

[ovs-dev] [PATCH] ofproto: Return error codes for Rule insertions

2018-07-12 Thread Aravind Prasad S
layer to interact with OVS. HW layer could face any dynamic issue during rule handling which application could not have predicted/captured in rule-construction phase. Rule-insert errors for bundles are handled too in this pull-request. Signed-off-by: Aravind Prasad S --- ofproto/ofproto-dpif.c

Re: [ovs-dev] [PATCH] ofproto: Return error codes for Rule insertions

2018-07-12 Thread Aravind Prasad
Ben/All, Sorry for re-sending the patch. Handled rule-insertion failures in bundle-scenario too with this patch. Thought it could be better if the entire set of changes are provided in a single patch for review. Kindly review and let me know your views. Thanks, Aravind Prasad S On Thu, Jul 12, 2

[ovs-dev] [PATCH] ofproto: Return error codes for Rule insertions

2018-07-12 Thread Aravind Prasad S
layer to interact with OVS. HW layer could face any dynamic issue during rule handling which application could not have predicted/captured in rule-construction phase. Rule-insert errors for bundles are also handled in this patch. Signed-off-by: Aravind Prasad S --- ofproto/ofproto-dpif.c

Re: [ovs-dev] [PATCH] ofproto: Return error codes for Rule insertions"

2018-07-11 Thread Aravind Prasad
ow Switch functioning), the possibility of rule-insertion failures could be higher. Kindly let me know your views. Thanks, Aravind Prasad S On Tue, Jul 10, 2018 at 10:02 PM Ben Pfaff wrote: > OK. > > On Tue, Jul 10, 2018 at 02:58:47PM +0530, Aravind Prasad wrote: > > Hi Ben/A

Re: [ovs-dev] [PATCH] ofproto: Return error codes for Rule insertions"

2018-07-10 Thread Aravind Prasad
). And thanks again for understanding. Thanks, Aravind Prasad S On Tue, Jul 10, 2018 at 7:06 AM Aravind Prasad wrote: > > Currently, rule_insert() API doesnot have return value. There are some > possible > > scenarios where rule insertions can fail at run-time even though the > static

Re: [ovs-dev] [PATCH] ofproto: Return error codes for Rule insertions"

2018-07-09 Thread Aravind Prasad
insertion may get failed in HW (runtime errors, HW errors and so on). Hence, we need a way to rollback for rule-insert phase also. Kindly let me know your views. Thanks, Aravind Prasad S On Tue, Jul 10, 2018 at 3:45 AM Ben Pfaff wrote: > On Mon, Jul 09, 2018 at 01:02:08PM +0530, Aravind Pr

[ovs-dev] [PATCH] ofproto: Return error codes for Rule insertions"

2018-07-09 Thread Aravind Prasad S
-by: Aravind Prasad S --- ofproto/ofproto-dpif.c | 4 ++- ofproto/ofproto-provider.h | 6 ++-- ofproto/ofproto.c | 76 +- 3 files changed, 61 insertions(+), 25 deletions(-) diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index ad1e8af

Re: [ovs-dev] [PATCH] ofproto: Return error codes for Rule insertions

2018-07-08 Thread Aravind Prasad
handled in this pull-request. > Will be handled in upcoming pull request. > > Signed-off-by: Aravind Prasad S > --- >> Thanks for working on OVS. >> As noted, the patch has some submission errors. Please try submitting >> again with 'git send-email' to eliminat

[ovs-dev] [PATCH] Handle rule insert failures

2018-07-08 Thread Aravind Prasad S
--- ofproto/ofproto-dpif.c | 4 ++- ofproto/ofproto-provider.h | 6 ++-- ofproto/ofproto.c | 76 +- 3 files changed, 61 insertions(+), 25 deletions(-) diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index ad1e8af..d1678ed

[ovs-dev] [PATCH] ofproto: Return error codes for Rule insertions

2018-07-08 Thread Aravind Prasad S
-by: Aravind Prasad S --- ofproto/ofproto-dpif.c | 4 ++- ofproto/ofproto-provider.h | 6 ++-- ofproto/ofproto.c | 76 +- 3 files changed, 61 insertions(+), 25 deletions(-) diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index ad1e8af

[ovs-dev] [PATCH] ofproto: Return error codes for Rule insertions

2018-07-08 Thread Aravind Prasad
-by: Aravind Prasad S --- diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index ad1e8af..d1678ed 100644 --- a/ofproto/ofproto-dpif.c +++ b/ofproto/ofproto-dpif.c @@ -4443,7 +4443,7 @@ rule_construct(struct rule *rule_) return 0; } -static void +static enum ofperr rule_insert(struct

Re: [ovs-dev] [PATCH] ofproto: Return error codes for Rule insertions/deletions

2018-06-17 Thread Aravind Prasad
any dynamic issue during rule handling which application could > > > not have predicted/captured in rule-construction phase. > > > > > > This patch is the first step to introduce error reporting for rule > > > insertions/deletions from Client back to OVS. > >

[ovs-dev] [PATCH] ofproto: Return error codes for Rule insertions/deletions

2018-06-16 Thread Aravind Prasad
to introduce error reporting for rule insertions/deletions from Client back to OVS. Signed-off-by: Aravind Prasad S --- diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index ca4582c..ca485b3 100644 --- a/ofproto/ofproto-dpif.c +++ b/ofproto/ofproto-dpif.c @@ -,7 +,7