datapath: Make OVS_ACTION_ATTR_USERSPACE action to send packet key
authorAndy Zhou <azhou@nicira.com>
Tue, 25 Jun 2013 16:21:16 +0000 (09:21 -0700)
committerJesse Gross <jesse@nicira.com>
Tue, 25 Jun 2013 18:18:27 +0000 (11:18 -0700)
commitd1d71a36446d2322986038fdb0402cc8ed53079a
treed6f056d92719e897858ce4c59b79b0a53e8bf345
parentf4104c68823df93064b8997e5ca0e0564704bc87
datapath: Make OVS_ACTION_ATTR_USERSPACE action to send packet key

OVS_ACTION_ATTR_USERSPACE action was sending the key from the matching
flow. This works for exact match flows because flow keys are the
same as packet keys. However, it does not work with wildcarded flows as
the packet keys may be different than the flow keys. This patch uses
the packet keys carried in OVS_CB(skb) when calling output_userspace().

Bug #18163

Signed-off-by: Andy Zhou <azhou@nicira.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
datapath/actions.c
datapath/datapath.c
datapath/datapath.h