[ovs-dev] [PATCH] ovs-vswitchd: call flow_extract for the resumed packet in nxt_resume
Numan Siddique
nusiddiq at redhat.com
Thu Mar 31 13:42:34 UTC 2016
When the packet-in is resumed by vswitchd, it is not setting the
'dp_packet' offsets, because of which it is crashing while executing
the actions.
Signed-off-by: Numan Siddique <nusiddiq at redhat.com>
---
ofproto/ofproto-dpif.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c
index 99c96de..530c49a 100644
--- a/ofproto/ofproto-dpif.c
+++ b/ofproto/ofproto-dpif.c
@@ -4443,6 +4443,9 @@ nxt_resume(struct ofproto *ofproto_,
dp_packet_init(&packet, pin->public.packet_len);
dp_packet_put(&packet, pin->public.packet, pin->public.packet_len);
+ struct flow headers;
+ flow_extract(&packet, &headers);
+
/* Execute the datapath actions on the packet. */
struct dpif_execute execute = {
.actions = odp_actions.data,
--
2.5.5
More information about the dev
mailing list