[ovs-dev] [PATCH 6/7] ofproto-dpif-upcall: Create ukey only for miss upcalls.
Jarno Rajahalme
jrajahalme at nicira.com
Tue Feb 24 23:42:05 UTC 2015
There is no point trying to create ukeys for non-miss upcalls, such as
upcalls due to an explicit userspace actions.
Signed-off-by: Jarno Rajahalme <jrajahalme at nicira.com>
---
ofproto/ofproto-dpif-upcall.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/ofproto/ofproto-dpif-upcall.c b/ofproto/ofproto-dpif-upcall.c
index 748b0f1..97e4588 100644
--- a/ofproto/ofproto-dpif-upcall.c
+++ b/ofproto/ofproto-dpif-upcall.c
@@ -990,7 +990,9 @@ upcall_xlate(struct udpif *udpif, struct upcall *upcall,
&upcall->put_actions);
}
- upcall->ukey = ukey_create_from_upcall(upcall);
+ if (upcall->type == DPIF_UC_MISS) {
+ upcall->ukey = ukey_create_from_upcall(upcall);
+ }
}
static void
--
1.7.10.4
More information about the dev
mailing list