On Mon, May 18, 2015 at 04:10:15PM -0700, Jarno Rajahalme wrote:
> OpenFlow bundle messages should be decoded and validated at the time
> they are added to the bundle.  This commit does this for flow mod and
> port mod messages.
> 
> Signed-off-by: Jarno Rajahalme <jrajaha...@nicira.com>

It's pretty expensive to give every ofp_bundle_entry a 1-kB stub for
actions, when there might be many thousands of them allocated at a time
into a bundle.  It might be better to accumulate the actions into a
function-local stub then use ofpbuf_clone() or similar to allocate a
correctly sized buffer for ofp_bundle_entry.

I guess that it would be even cheaper, memory-wise (struct match by
itself is almost 1/2 kB!), to just decode the raw message a second time
when we apply the bundle, but maybe that is not worth the extra trouble.
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to