mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:24:47 +01:00
net/sched: sch_cake: avoid sync overhead when unlimited
Skip inter-instance sync when no rate limit is configured, as it serves
no purpose and only adds overhead.
Fixes: 1bddd758ba ("net/sched: sch_cake: share shaper state across sub-instances of cake_mq")
Signed-off-by: Jonas Köppeler <j.koeppeler@tu-berlin.de>
Acked-by: Toke Høiland-Jørgensen <toke@toke.dk>
Link: https://patch.msgid.link/20260226-cake-mq-skip-sync-bandwidth-unlimited-v1-1-01830bb4db87@tu-berlin.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
29252397bc
commit
0b3cd139be
1 changed files with 2 additions and 1 deletions
|
|
@ -2013,7 +2013,8 @@ static struct sk_buff *cake_dequeue(struct Qdisc *sch)
|
|||
u64 delay;
|
||||
u32 len;
|
||||
|
||||
if (q->config->is_shared && now - q->last_checked_active >= q->config->sync_time) {
|
||||
if (q->config->is_shared && q->rate_ns &&
|
||||
now - q->last_checked_active >= q->config->sync_time) {
|
||||
struct net_device *dev = qdisc_dev(sch);
|
||||
struct cake_sched_data *other_priv;
|
||||
u64 new_rate = q->config->rate_bps;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue