Re: [ovs-dev] [RFC 7/9] ofproto-dpif: Allow caching of xlate_actions() effects.

2014-03-27 Thread Ben Pfaff
On Fri, Mar 28, 2014 at 02:39:39PM +1300, Joe Stringer wrote: > Looking back through, there was another question I had, relating to the > below XXX comment: > > On 7 March 2014 14:20, Joe Stringer wrote: > > > > @@ -1427,6 +1498,17 @@ xlate_normal(struct xlate_ctx *ctx) > > if (ctx->xin->may

Re: [ovs-dev] [RFC 7/9] ofproto-dpif: Allow caching of xlate_actions() effects.

2014-03-27 Thread Joe Stringer
Looking back through, there was another question I had, relating to the below XXX comment: On 7 March 2014 14:20, Joe Stringer wrote: > > @@ -1427,6 +1498,17 @@ xlate_normal(struct xlate_ctx *ctx) > if (ctx->xin->may_learn) { > update_learning_table(ctx->xbridge, flow, wc, vlan, in_

Re: [ovs-dev] [RFC 7/9] ofproto-dpif: Allow caching of xlate_actions() effects.

2014-03-17 Thread Joe Stringer
Thanks, I'll roll these in when I rebase and repost. On Wed, Mar 12, 2014 at 12:32 PM, Ben Pfaff wrote: > On Thu, Mar 06, 2014 at 05:20:30PM -0800, Joe Stringer wrote: > > This patch adds a new object called 'struct xlate_cache' which can be > > set in 'struct xlate_in', and passed to xlate_act

Re: [ovs-dev] [RFC 7/9] ofproto-dpif: Allow caching of xlate_actions() effects.

2014-03-11 Thread Ben Pfaff
On Thu, Mar 06, 2014 at 05:20:30PM -0800, Joe Stringer wrote: > This patch adds a new object called 'struct xlate_cache' which can be > set in 'struct xlate_in', and passed to xlate_actions() to cache the > modules affected by this flow translation. Subsequently, the caller can > pass the xcache to

[ovs-dev] [RFC 7/9] ofproto-dpif: Allow caching of xlate_actions() effects.

2014-03-06 Thread Joe Stringer
This patch adds a new object called 'struct xlate_cache' which can be set in 'struct xlate_in', and passed to xlate_actions() to cache the modules affected by this flow translation. Subsequently, the caller can pass the xcache to xlate_from_cache() to credit stats and perform side effects for a low