ofproto-dpif: Omit "execute" operation entirely when there are no actions.
authorBen Pfaff <blp@nicira.com>
Mon, 26 Dec 2011 22:40:54 +0000 (14:40 -0800)
committerBen Pfaff <blp@nicira.com>
Mon, 2 Jan 2012 20:42:35 +0000 (12:42 -0800)
commit968131c18090916ec30738d1ff8c1725bb744a30
tree6038ce6d54afef570418e79dc6047d81d8cd035f
parent699e4abf40b8c86994bff808bc995bcd0693e5af
ofproto-dpif: Omit "execute" operation entirely when there are no actions.

There's no point in executing an empty set of actions.

dpif_execute() has had this optimization internally for a long time but
dpif_operate() doesn't.  For dpif_operate() it seems like a bigger win to
optimize it at this higher level, avoiding adding any operation to the
array at all.

Signed-off-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto-dpif.c