datapath: Enable usage of cached flows.
[openvswitch] / datapath / vport.c
index 91b650e54695f751b26dcec98e526b8282eb2159..6c8eb0845aec6dff26031cbabb1b329afa6789d1 100644 (file)
@@ -1217,6 +1217,9 @@ void vport_receive(struct vport *vport, struct sk_buff *skb)
                local_bh_enable();
        }
 
+       if (!(vport->ops->flags & VPORT_F_FLOW))
+               OVS_CB(skb)->flow = NULL;
+
        if (!(vport->ops->flags & VPORT_F_TUN_ID))
                OVS_CB(skb)->tun_id = 0;