Cake - FQ_codel the next generation
 help / color / mirror / Atom feed
* [Cake] Correct 'change' behaviour
@ 2015-11-03 12:59 Toke Høiland-Jørgensen
  2015-11-03 13:11 ` Kevin Darbyshire-Bryant
  0 siblings, 1 reply; 14+ messages in thread
From: Toke Høiland-Jørgensen @ 2015-11-03 12:59 UTC (permalink / raw)
  To: cake

So we've seen a couple of issues with reconfiguration being weird (i.e.
retaining previous values). Looking at the code in cake_change() and the
iproute2 code, this seems to stem from the fact that tc only sets the
parameters (in the netlink message) that are actually specified on the
command line, and the kernel only changes the parameters specified in
the netlink message.

This leads to the different behaviour: On init, not specifying a
parameter means "give me a sensible default", whereas on a reconfigure
it means "don't change this parameter from its current value". This is
obviously inconsistent. I'd argue that the right thing to do is the
former in all cases; is there any reason why that would not be the case?
If not, I'll go fix it :)

-Toke

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2015-11-04 18:56 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-03 12:59 [Cake] Correct 'change' behaviour Toke Høiland-Jørgensen
2015-11-03 13:11 ` Kevin Darbyshire-Bryant
2015-11-03 13:14   ` Toke Høiland-Jørgensen
2015-11-03 17:24     ` Jonathan Morton
     [not found]       ` <87oafbat54.fsf@toke.dk>
2015-11-03 17:32         ` Jonathan Morton
2015-11-03 17:51           ` Toke Høiland-Jørgensen
2015-11-03 19:07             ` Toke Høiland-Jørgensen
2015-11-03 19:14               ` Dave Taht
2015-11-04 11:09                 ` Toke Høiland-Jørgensen
2015-11-04 14:28                   ` Sebastian Moeller
2015-11-04 18:04                   ` Kevin Darbyshire-Bryant
2015-11-04 18:51                     ` Toke Høiland-Jørgensen
2015-11-04 18:55                       ` Sebastian Moeller
2015-11-03 17:54     ` Kevin Darbyshire-Bryant

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox