summaryrefslogtreecommitdiff
path: root/net/9p/protocol.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2024-07-10 18:16:53 +0300
committerJakub Kicinski <kuba@kernel.org>2024-07-12 03:13:58 +0300
commitcef4902b0fadfc4181176ef5713f0b7cf2a40d8f (patch)
tree05b9cc1dd265e2c35070b570e13b5cfcd6044958 /net/9p/protocol.c
parentb07593edd2faf310f9b758896f4f1c6054515be4 (diff)
downloadlinux-cef4902b0fadfc4181176ef5713f0b7cf2a40d8f.tar.xz
net: reduce rtnetlink_rcv_msg() stack usage
IFLA_MAX is increasing slowly but surely. Some compilers use more than 512 bytes of stack in rtnetlink_rcv_msg() because it calls rtnl_calcit() for RTM_GETLINK message. Use noinline_for_stack attribute to not inline rtnl_calcit(), and directly use nla_for_each_attr_type() (Jakub suggestion) because we only care about IFLA_EXT_MASK at this stage. Signed-off-by: Eric Dumazet <edumazet@google.com> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/20240710151653.3786604-1-edumazet@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/9p/protocol.c')
0 files changed, 0 insertions, 0 deletions