diff options
author | Justin Pettit <jpettit@nicira.com> | 2011-02-06 22:39:09 -0800 |
---|---|---|
committer | Justin Pettit <jpettit@nicira.com> | 2011-02-07 15:40:35 -0800 |
commit | 7d332293f8f8d3faa50ba6faf415af864d32b686 (patch) | |
tree | 78b5422d0c296f89672d4961b674cf3481ea192d /datapath/flow.h | |
parent | a4a2643672e4d2f68f8246e406749009a3f3211b (diff) |
datapath: Increase size of max nlattr-formatted flow to 132.
The addition of IPv6 matching increased the maximum size of a
nlattr-formatted flow. This was not properly reflected in the userspace
and kernel #defines that reserve space for the flows and could lead to
crashes. This commit increases the size uniformly to 132 bytes.
Signed-off-by: Justin Pettit <jpettit@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
Diffstat (limited to 'datapath/flow.h')
-rw-r--r-- | datapath/flow.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/datapath/flow.h b/datapath/flow.h index 21df5fbe..9cf5c678 100644 --- a/datapath/flow.h +++ b/datapath/flow.h @@ -108,9 +108,9 @@ u32 flow_hash(const struct sw_flow_key *); int flow_cmp(const struct tbl_node *, void *target); /* By my calculations currently the longest valid nlattr-formatted flow key is - * 80 bytes long, so this leaves some safety margin. + * 132 bytes long. */ -#define FLOW_BUFSIZE 96 +#define FLOW_BUFSIZE 132 int flow_to_nlattrs(const struct sw_flow_key *, struct sk_buff *); int flow_from_nlattrs(struct sw_flow_key *swkey, const struct nlattr *); |