From 9ccb22ec5f0a9edcba39a1c60469582496a70f8c Mon Sep 17 00:00:00 2001 From: Pravin B Shelar Date: Thu, 28 Feb 2013 16:15:00 -0800 Subject: [PATCH] datapath: Increase maximum allocation size of action list. The switch to flow based tunneling increased the size of each output action in the flow action list. In extreme cases, this can result in the action list exceeding the maximum buffer size. This doubles the maximum buffer size to compensate for the increase in action size. Action list is recieved from netlink callback which is allocating linear-skb, therefore allocating another multi-page buffer would not increase probability of the allocation-failure a lot. Signed-off-by: Pravin B Shelar Acked-by: Jesse Gross Bug #15203 --- datapath/flow.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datapath/flow.h b/datapath/flow.h index 694964051..887b6d4b3 100644 --- a/datapath/flow.h +++ b/datapath/flow.h @@ -194,7 +194,7 @@ int ovs_flow_from_nlattrs(struct sw_flow_key *swkey, int *key_lenp, int ovs_flow_metadata_from_nlattrs(struct sw_flow *flow, int key_len, const struct nlattr *attr); -#define MAX_ACTIONS_BUFSIZE (16 * 1024) +#define MAX_ACTIONS_BUFSIZE (32 * 1024) #define TBL_MIN_BUCKETS 1024 struct flow_table { -- 2.43.0