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:21:46 +0000 (11:21 -0700)
commit3520425d04a436bb63500712759e0194cbc4f722
tree680b79c3a6b06a71dd34484522bcfef40fa20fe1
parentce3fbe30ced329c5bd2ee54a0ee46884e4caa788
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