Re: [ovs-dev] [PATCH] ofproto: Always delete rules before deleting a meter.

2016-10-06 Thread Petr Machata
Jarno Rajahalme writes: > Pushed to master, but not sure if need to backport to earlier > branches, as meters are not really supported by any release yet? Nope, we only hit this because our own ofproto provider actually does support meters. Thanks for this! Petr ___

Re: [ovs-dev] Deferring ofproto_class::destruct vs. ovs-appctl exit

2016-10-04 Thread Petr Machata
Petr Machata writes: > We don't actually see a crash, but an AddressSanitizer citation. As I'm > now trying to reproduce on vanilla branch-2.5, I actually can't either > (using the NULL trick). All the rule_delete calls end up being > scheduled before the backer clo

Re: [ovs-dev] Deferring ofproto_class::destruct vs. ovs-appctl exit

2016-09-29 Thread Petr Machata
Jarno Rajahalme writes: > diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c > index 83dcc9c..5b42b7e 100644 > --- a/ofproto/ofproto-dpif.c > +++ b/ofproto/ofproto-dpif.c > @@ -864,7 +864,7 @@ close_dpif_backer(struct dpif_backer *backer) > free(backer->type); > free(backer->d

Re: [ovs-dev] Deferring ofproto_class::destruct vs. ovs-appctl exit

2016-09-29 Thread Petr Machata
Jarno Rajahalme writes: > Btw. I don’t see this problem triggered by the testsuite even if I set the > ‘ofproto->backer' pointer > to NULL right after the free() call. Do you see this happening on an > unmodified OVS 2.5? If so, > could you send the steps to reproduce. Just need to know if this

[ovs-dev] Deferring ofproto_class::destruct vs. ovs-appctl exit

2016-09-29 Thread Petr Machata
Hi, On 2.5, we are seeing the following problem when removing a bridge: - ofproto_destroy calls ofproto_flush__, which eventually calls ovsrcu_postpone(remove_rules_rcu) - ofproto_destroy also calls p->ofproto_class->destruct, which eventually leads to release of DPIF backer (close_d

[ovs-dev] [PATCH] Destroy rules before destroying meters

2016-09-28 Thread Petr Machata
ve resources to forward-port our provider and actually observe the issue in practice. Thank you, Petr Machata --8< An ofproto that's being destroyed could include rules with meters. Each meter in turn holds a list of rules where

Re: [ovs-dev] SAI ofproto provider for OvS

2016-04-25 Thread Petr Machata
Ben Pfaff writes: >> > want to make sure that the additional providers can be built without >> > installing code that is available only under NDA. >> >> That is understood. The SAI backend will be optional. > > That's not exactly what I mean. I mean, there must be a way for users > to compile

Re: [ovs-dev] SAI ofproto provider for OvS

2016-04-05 Thread Petr Machata
Ben Pfaff writes: > We would be pleased to take additional ofproto pr oviders as long as > they are clean and maintainable (and actually maintained). We would We will want to put forward code that is up to snuff. Regarding the "actually maintained" bit--that is the intention. But as you are pr

[ovs-dev] SAI ofproto provider for OvS

2016-04-04 Thread Petr Machata
Hello, Mellanox would like to implement an OvS ofproto provider for SAI[1], a vendor-neutral C API for programming switch ASIC's. Would there be interest in merging this work upstream eventually? We are not asking for a blank check here, but are trying to figure out the general stance of the pro