From patchwork Wed Jul 4 03:32:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: fumihiko kakuma X-Patchwork-Id: 939068 X-Patchwork-Delegate: shemminger@vyatta.com Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=valinux.co.jp Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 41L64r4634z9s3q for ; Wed, 4 Jul 2018 13:32:44 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932448AbeGDDcl (ORCPT ); Tue, 3 Jul 2018 23:32:41 -0400 Received: from mail.valinux.co.jp ([210.128.90.3]:40700 "EHLO mail.valinux.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753104AbeGDDck (ORCPT ); Tue, 3 Jul 2018 23:32:40 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.valinux.co.jp (Postfix) with ESMTP id 0FAF9B36B1; Wed, 4 Jul 2018 12:32:40 +0900 (JST) X-Virus-Scanned: Debian amavisd-new at valinux.co.jp Received: from mail.valinux.co.jp ([127.0.0.1]) by localhost (mail.valinux.co.jp [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ciW5pk9-16mk; Wed, 4 Jul 2018 12:32:39 +0900 (JST) Received: from vajk435db0-1.local.valinux.co.jp (vagw.valinux.co.jp [210.128.90.14]) by mail.valinux.co.jp (Postfix) with ESMTP id E348CB3528; Wed, 4 Jul 2018 12:32:39 +0900 (JST) From: fumihiko kakuma To: netdev@vger.kernel.org Cc: fumihiko kakuma Subject: [PATCH iproute2] tc: Fix the bug not to display prio and quantum options of htb Date: Wed, 4 Jul 2018 12:32:33 +0900 Message-Id: <1530675153-8748-1-git-send-email-kakuma@valinux.co.jp> X-Mailer: git-send-email 2.7.4 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org A commandline like 'tc -d class show dev dev-name' does not display value of prio and quantum option when we use htb qdisc. This patch fixes the bug. Signed-off-by: Fumihiko Kakuma Acked-by: Cong Wang --- tc/q_htb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tc/q_htb.c b/tc/q_htb.c index 7d5f6ce..b93d31d 100644 --- a/tc/q_htb.c +++ b/tc/q_htb.c @@ -291,9 +291,9 @@ static int htb_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt) if (RTA_PAYLOAD(tb[TCA_HTB_PARMS]) < sizeof(*hopt)) return -1; if (!hopt->level) { - print_int(PRINT_ANY, "prio", "prio ", (int)hopt->prio); + print_int(PRINT_ANY, "prio", "prio %d ", (int)hopt->prio); if (show_details) - print_int(PRINT_ANY, "quantum", "quantum ", + print_int(PRINT_ANY, "quantum", "quantum %d ", (int)hopt->quantum); }