diff mbox series

[ovs-dev,RFC,PATCHv2,12/13] ofproto: disable megaflow for bpf datapath.

Message ID 1531568345-80246-13-git-send-email-u9012063@gmail.com
State RFC
Headers show
Series OVS eBPF datapath. | expand

Commit Message

William Tu July 14, 2018, 11:39 a.m. UTC
BPF datapath is always exact match.

Signed-off-by: William Tu <u9012063@gmail.com>
---
 ofproto/ofproto-dpif-upcall.c | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/ofproto/ofproto-dpif-upcall.c b/ofproto/ofproto-dpif-upcall.c
index 4f696fdca7f6..92a55d0b7768 100644
--- a/ofproto/ofproto-dpif-upcall.c
+++ b/ofproto/ofproto-dpif-upcall.c
@@ -388,7 +388,11 @@  static void upcall_uninit(struct upcall *);
 static upcall_callback upcall_cb;
 static dp_purge_callback dp_purge_cb;
 
+#ifdef HAVE_BPF
+static atomic_bool enable_megaflows = ATOMIC_VAR_INIT(false);
+#else
 static atomic_bool enable_megaflows = ATOMIC_VAR_INIT(true);
+#endif
 static atomic_bool enable_ufid = ATOMIC_VAR_INIT(true);
 
 void