ofproto-dpif-xlate: Unmask mark when used for tunnels.
authorJesse Gross <jesse@nicira.com>
Thu, 1 Aug 2013 20:31:28 +0000 (13:31 -0700)
committerJesse Gross <jesse@nicira.com>
Fri, 2 Aug 2013 02:05:39 +0000 (19:05 -0700)
The tunnel lookup uses the skb_mark as part of the port find process
but it isn't unmasked along with the other fields. This adds it to
the list of significant fields.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
ofproto/ofproto-dpif.c

index 01a4cd4..79ad711 100644 (file)
@@ -7164,6 +7164,9 @@ xlate_actions(struct xlate_in *xin, struct xlate_out *xout)
 
     if (tnl_port_should_receive(&ctx.xin->flow)) {
         memset(&wc->masks.tunnel, 0xff, sizeof wc->masks.tunnel);
+        /* skb_mark is currently used only by tunnels but that will likely
+         * change in the future. */
+        memset(&wc->masks.skb_mark, 0xff, sizeof wc->masks.skb_mark);
     }
 
     /* Disable most wildcarding for NetFlow. */