datapath: Refactor actions in terms of match fields.
authorPravin B Shelar <pshelar@nicira.com>
Fri, 21 Oct 2011 21:38:54 +0000 (14:38 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Fri, 21 Oct 2011 21:38:54 +0000 (14:38 -0700)
commit4edb9ae90e4092f5f56b9d914d2b88783c49860d
treeb606f5a5eca862b62aa2f4458cb7f54b06c73c2d
parenta0003c0c359bc3ffe8a6683dbd0121877a3ce700
datapath: Refactor actions in terms of match fields.

Almost all current actions can be expressed in the form of
push/pop/set <field>, where field is one of the match fields. We can
create three base actions and take a field. This has both a nice
symmetry and avoids inconsistencies where we can match on the vlan
TPID but not set it.
Following patch converts all actions to this new format.

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
Bug #7115
datapath/actions.c
datapath/datapath.c
datapath/flow.c
datapath/flow.h
include/linux/openvswitch.h
lib/dpif-netdev.c
lib/odp-util.c
lib/odp-util.h
ofproto/ofproto-dpif.c
tests/ofproto-dpif.at