From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:72ef::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.bufferbloat.net (Postfix) with ESMTPS id 703913BA8E for ; Mon, 7 May 2018 17:21:33 -0400 (EDT) Received: by sipsolutions.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.91) (envelope-from ) id 1fFnZb-0004Sz-PN; Mon, 07 May 2018 23:21:31 +0200 Message-ID: <1525728090.6222.1.camel@sipsolutions.net> From: Johannes Berg To: Toke =?ISO-8859-1?Q?H=F8iland-J=F8rgensen?= , make-wifi-fast@lists.bufferbloat.net, linux-wireless@vger.kernel.org Date: Mon, 07 May 2018 23:21:30 +0200 In-Reply-To: <20180219170224.14816-3-toke@toke.dk> (sfid-20180219_180319_201142_47E9DB27) References: <20180219170224.14816-1-toke@toke.dk> <20180219170224.14816-3-toke@toke.dk> (sfid-20180219_180319_201142_47E9DB27) Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.6 (3.26.6-1.fc27) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [Make-wifi-fast] [PATCH 2/3] iw: Print TXQ statistics for stations and interfaces X-BeenThere: make-wifi-fast@lists.bufferbloat.net X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 May 2018 21:21:33 -0000 On Mon, 2018-02-19 at 18:02 +0100, Toke Høiland-Jørgensen wrote: > > + if (header && tid >= 0) > + pos += snprintf(buf, buflen, "\n\t\tTID\tqsz-byt\t" > + "qsz-pkt\tflows\tdrops\tmarks\toverlmt\t" > + "hashcol\ttx-bytes\ttx-packets"); > + else if (header) > + pos += snprintf(buf, buflen, "\n\t\tqsz-byt\t" > + "qsz-pkt\tflows\tdrops\tmarks\toverlmt\t" > + "hashcol\ttx-bytes\ttx-packets"); > + > + if (tid >= 0) > + pos += snprintf(pos, buflen - (pos - buf), "\n\t\t%d", tid); > + else > + pos += snprintf(pos, buflen - (pos - buf), "\n\t"); > + > + txqinfo = txqstats_info[NL80211_TXQ_STATS_BACKLOG_BYTES]; > + if (txqinfo) > + pos += snprintf(pos, buflen - (pos - buf), "\t%u", > + nla_get_u32(txqinfo)); since the header is fixed, shouldn't all of these get an else branch that just prints a tab or so? johannes