net/sched: cls_flower: allocate mask dynamically in fl_change()
Recent changes (especially 05cd271fd61a ("cls_flower: Support multiple
masks per priority")) in the fl_flow_mask structure grow it and its
current size e.g. on x86_64 with defconfig is 760 bytes and more than
1024 bytes with some debug options enabled. Prior the mentioned commit
its size was 176 bytes (using defconfig on x86_64).
With regard to this fact it's reasonable to allocate this structure
dynamically in fl_change() to reduce its stack size.
- use kzalloc() instead of kcalloc()
Fixes: 05cd271fd61a ("cls_flower: Support multiple masks per priority")
Cc: Jiri Pirko <firstname.lastname@example.org>
Cc: Paul Blakey <email@example.com>
Acked-by: Jiri Pirko <firstname.lastname@example.org>
Signed-off-by: Ivan Vecera <email@example.com>
Signed-off-by: David S. Miller <firstname.lastname@example.org>
1 file changed