OSDN Git Service

sched: Remove debug WARN_ONCE messages
authorSubash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Fri, 26 May 2017 02:17:43 +0000 (20:17 -0600)
committerGerrit - the friendly Code Review server <code-review@localhost>
Tue, 30 May 2017 17:48:12 +0000 (10:48 -0700)
If flow control functionality is not enabled in traffic controller
userspace modules, WARN_ONCE messages are triggered. Note that qdisc
will still be setup even if these debug messages are logged.
Remove these messages to reduce log spam.

CRs-Fixed: 2053221
Change-Id: I62a2fcb30d19579180b3df16f33953546f94511a
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
net/sched/sch_api.c

index b855352..5474dc7 100644 (file)
@@ -1200,12 +1200,7 @@ tc_qdisc_flow_control(struct net_device *dev, u32 tcm_handle, int enable_flow)
                        qdisc_len = q->q.qlen;
                        if (q->ops->change(q, &req.attr) != 0)
                                pr_err("%s(): qdisc change failed", __func__);
-               } else {
-                       WARN_ONCE(1, "%s(): called on queue which does %s",
-                                 __func__, "not support change() operation");
                }
-       } else {
-               WARN_ONCE(1, "%s(): called on bad queue", __func__);
        }
        return qdisc_len;
 }