]> git.baikalelectronics.ru Git - kernel.git/commit
taprio: Use taprio_reset_tc() to reset Traffic Classes configuration
authorVinicius Costa Gomes <vinicius.gomes@intel.com>
Thu, 6 Feb 2020 21:46:09 +0000 (13:46 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Feb 2020 10:30:03 +0000 (11:30 +0100)
commit424ac14848662e27ad5e6a51f8ab8b34b4f8b5c5
tree99f9176f0c914c624a8a9bae6fa10673585133b7
parent07d3889c6c8a91aba6b546493e2d7782c3932456
taprio: Use taprio_reset_tc() to reset Traffic Classes configuration

When destroying the current taprio instance, which can happen when the
creation of one fails, we should reset the traffic class configuration
back to the default state.

netdev_reset_tc() is a better way because in addition to setting the
number of traffic classes to zero, it also resets the priority to
traffic classes mapping to the default value.

Fixes: 6e8a93ac1aec ("tc: Add support for configuring the taprio scheduler")
Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_taprio.c