[RFC PATCHv2 12/13] ofproto: disable megaflow for bpf datapath.


William Tu
 

BPF datapath is always exact match.

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

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
--
2.7.4

Join iovisor-dev@lists.iovisor.org to automatically receive all group messages.