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)
commit65545ea24998bb9aab1ce713a67c693dc7a947ec
treea879d25ec00a214417e97f39a239d5912a227f71
parent3625750f05ecce21a0fce429c1ff85acfffb461b
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