datapath: Fix FLOW_BUFSIZE definition. v1.7.1
authorJesse Gross <jesse@nicira.com>
Mon, 3 Sep 2012 22:15:01 +0000 (15:15 -0700)
committerJesse Gross <jesse@nicira.com>
Tue, 4 Sep 2012 02:01:59 +0000 (19:01 -0700)
commit12953ff77c8e0f1fc99f04b34220b84fb6a20efe
treef495adb118f48021ffe3870c73987982865ec6d9
parente80478bac49b86e1b9b9cf91fd809e9443794e19
datapath: Fix FLOW_BUFSIZE definition.

This is analogous to the change made in userspace with
2508ac16defd417b94fb69689b6b1da4fbc76282 (odp-util: Update
ODPUTIL_FLOW_KEY_BYTES for current kernel flow format.).  The extra
space for vlan encapsulation was not included in the allocation for
maximum length flows.

Found by code inspection and to my knowledge has never been hit, likely
because skb allocations are padded out to a cacheline, making userspace
more susceptible to this problem than the kernel.  In theory, however,
the right combination of flow and packet size could result in a kernel
panic.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Kyle Mestery <kmestery@cisco.com>
datapath/flow.h