[ovs-dev] [PATCH 03/12] odp-util: Bump up maximum number of ODP actions.

Ben Pfaff blp at nicira.com
Tue Dec 7 19:00:25 UTC 2010


The kernel supports more than a single page of actions now, so userspace
should be able to take advantage of this.

Upcoming commits will completely replace this data structure but this
commit makes the bug fix clear and is suitable for cherry-picking to
long-term support branches.
---
 lib/odp-util.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/odp-util.h b/lib/odp-util.h
index 9cbf7dd..110e8bc 100644
--- a/lib/odp-util.h
+++ b/lib/odp-util.h
@@ -31,7 +31,7 @@ struct flow;
 
 /* The kernel datapaths limits actions to those that fit in a single page of
  * memory, so there is no point in allocating more than that.  */
-enum { MAX_ODP_ACTIONS = 4096 / sizeof(union odp_action) };
+enum { MAX_ODP_ACTIONS = 65536 / sizeof(union odp_action) };
 
 /* odp_actions_add() assumes that MAX_ODP_ACTIONS is a power of 2. */
 BUILD_ASSERT_DECL(IS_POW2(MAX_ODP_ACTIONS));
-- 
1.7.1





More information about the dev mailing list