summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorToke Høiland-Jørgensen <toke@redhat.com>2026-01-13 17:31:56 +0300
committerJakub Kicinski <kuba@kernel.org>2026-01-18 02:30:28 +0300
commit2a85541d95f7b791a8547ea1c2e22d214278079d (patch)
tree765e1621c1230c28180bc246c2efa175ea3b16cc /include/linux
parent8fc807104125428be6b2ac9c3f210d0f69e055be (diff)
downloadlinux-2a85541d95f7b791a8547ea1c2e22d214278079d.tar.xz
net/sched: cake: avoid separate allocation of struct cake_sched_config
Paolo pointed out that we can avoid separately allocating struct cake_sched_config even in the non-mq case, by embedding it into struct cake_sched_data. This reduces the complexity of the logic that swaps the pointers and frees the old value, at the cost of adding 56 bytes to the latter. Since cake_sched_data is already almost 17k bytes, this seems like a reasonable tradeoff. Suggested-by: Paolo Abeni <pabeni@redhat.com> Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com> Fixes: bc0ce2bad36c ("net/sched: sch_cake: Factor out config variables into separate struct") Link: https://patch.msgid.link/20260113143157.2581680-1-toke@redhat.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions