From 5fcf0cf6073d4adb22e34cd1d14a6318699625a9 Mon Sep 17 00:00:00 2001 From: Julian Anastasov Date: Wed, 3 Sep 2014 00:02:49 +0300 Subject: [PATCH] ipvs: reduce stack usage for sockopt data Use union to reserve the required stack space for sockopt data which is less than the currently hardcoded value of 128. Now the tables for commands should be more readable. The checks added for readability are optimized by compiler, others warn at compile time if command uses too much stack or exceeds the storage of set_arglen and get_arglen. As Dan Carpenter points out, we can run for unprivileged user, so we can silent some error messages. Signed-off-by: Julian Anastasov CC: Dan Carpenter CC: Andrey Utkin CC: David Binderman Signed-off-by: Pablo Neira Ayuso --- Reading git-format-patch failed