]> git.baikalelectronics.ru Git - kernel.git/commit
net/sched: taprio: replace safety precautions with comments
authorVladimir Oltean <vladimir.oltean@nxp.com>
Thu, 15 Sep 2022 10:50:46 +0000 (13:50 +0300)
committerJakub Kicinski <kuba@kernel.org>
Tue, 20 Sep 2022 20:53:34 +0000 (13:53 -0700)
commit629f2b1e47a062c589725f50a57f997456a99b6f
tree022d526d4685c832dbe4e410abb1c109fad3870a
parent2f1f843c1d9bea8bc787e3277295c58638df3060
net/sched: taprio: replace safety precautions with comments

The WARN_ON_ONCE() checks introduced in commit 8f05635a203c ("net:
taprio offload: enforce qdisc to netdev queue mapping") take a small
toll on performance, but otherwise, the conditions are never expected to
happen. Replace them with comments, such that the information is still
conveyed to developers.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/sched/sch_taprio.c