]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: sch_red: Split init and change callbacks
authorPetr Machata <petrm@mellanox.com>
Fri, 26 Jun 2020 22:45:27 +0000 (01:45 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Jun 2020 00:08:28 +0000 (17:08 -0700)
commit8837bf6667ef558cfe39ace5567a17a27a523279
treea879d25ec00a214417e97f39a239d5912a227f71
parente9ba4f1dda4db0eaaa61afd5a388f08a3eb8b5fc
net: sched: sch_red: Split init and change callbacks

In the following patches, RED will get two qevents. The implementation will
be clearer if the callback for change is not a pure subset of the callback
for init. Split the two and promote attribute parsing to the callbacks
themselves from the common code, because it will be handy there.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_red.c