datapath: Convert kernel priority actions into match/set.
authorPravin B Shelar <pshelar@nicira.com>
Tue, 1 Nov 2011 17:13:16 +0000 (10:13 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Tue, 1 Nov 2011 17:13:16 +0000 (10:13 -0700)
commitabff858b5ad310a529d5a5ac2a230ee4ac9736db
treeac2cb7524dc3267adf07e0df61d2aab5ee78836f
parent7f4ae491b0fb5fb513e22ed2bd1829c5cd42e71c
datapath: Convert kernel priority actions into match/set.

Following patch adds skb-priority to flow key. So userspace will know
what was priority when packet arrived and we can remove the pop/reset
priority action. It's no longer necessary to have a special action for
pop that is based on the kernel remembering original skb->priority.
Userspace can just emit a set priority action with the original value.

Since the priority field is a match field with just a normal set action,
we can convert it into the new model for actions that are based on
matches.

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
Bug #7715
22 files changed:
datapath/actions.c
datapath/datapath.c
datapath/flow.c
datapath/flow.h
include/linux/openvswitch.h
lib/classifier.c
lib/dpif-linux.c
lib/dpif-netdev.c
lib/dpif-provider.h
lib/dpif.c
lib/flow.c
lib/flow.h
lib/learning-switch.c
lib/odp-util.c
lib/odp-util.h
lib/ofp-print.c
ofproto/ofproto-dpif.c
ofproto/ofproto-unixctl.man
ofproto/ofproto.c
tests/odp.at
tests/ofp-print.at
tests/test-flows.c