datapath: Drop parameters from execute_actions().
authorBen Pfaff <blp@nicira.com>
Fri, 29 Apr 2011 17:49:06 +0000 (10:49 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 29 Apr 2011 17:49:06 +0000 (10:49 -0700)
commita4af24751b4127ae0c5cb25262b4069a7c0842ae
tree216b9b7b4a5c41acee787014dc841504f26d4f05
parente0e57990f6d59db44e47b3991b8bea7392b9f30b
datapath: Drop parameters from execute_actions().

It's (almost) always easier to understand a function with fewer parameters,
so this removes the now-redundant sw_flow_key and actions parameters from
execute_actions(), since they can be found through OVS_CB(skb)->flow now.

This also necessarily moves loop detection into execute_actions().
Otherwise, the flow's actions could have changed between the time that the
loop was detected and the time that it was suppressed, which would mean
that the wrong (version of the) flow would get suppressed.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
datapath/actions.c
datapath/actions.h
datapath/datapath.c
datapath/loop_counter.c
datapath/loop_counter.h