diff options
author | Eric Dumazet <[email protected]> | 2024-07-10 15:16:53 +0000 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2024-07-11 17:13:58 -0700 |
commit | cef4902b0fadfc4181176ef5713f0b7cf2a40d8f (patch) | |
tree | 05b9cc1dd265e2c35070b570e13b5cfcd6044958 /drivers/usb/cdns3/cdns3-debug.h | |
parent | b07593edd2faf310f9b758896f4f1c6054515be4 (diff) |
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 <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions