diff options
| author | Ben Pfaff <blp@nicira.com> | 2010-12-07 12:17:03 -0800 |
|---|---|---|
| committer | Ben Pfaff <blp@nicira.com> | 2010-12-07 13:44:10 -0800 |
| commit | ad8ee2c0f3b7d0e53aab749da97a9c78765d74fa (patch) | |
| tree | ee5c3feeb8144a32a7641137da96c3314aaa71ad /lib/odp-util.h | |
| parent | f9ba8dad04b6f1b6c2994b462b13531f6e2f24c4 (diff) | |
| download | openvswitch-ad8ee2c0f3b7d0e53aab749da97a9c78765d74fa.tar.gz | |
odp-util: Bump up maximum number of ODP actions.
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.
Diffstat (limited to 'lib/odp-util.h')
| -rw-r--r-- | lib/odp-util.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/odp-util.h b/lib/odp-util.h index 9cbf7ddb1..813e29f3a 100644 --- a/lib/odp-util.h +++ b/lib/odp-util.h @@ -29,9 +29,7 @@ struct ds; 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 = 16384 / 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)); |
