From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net-next] net/sched: fix type of htb statistics Date: Sun, 02 Sep 2018 13:57:47 -0700 (PDT) Message-ID: <20180902.135747.17420539327356406.davem@davemloft.net> References: <20180830143923.25122-1-florent.fourcot@wifirst.fr> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org To: florent.fourcot@wifirst.fr Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:34858 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726421AbeICBOw (ORCPT ); Sun, 2 Sep 2018 21:14:52 -0400 In-Reply-To: <20180830143923.25122-1-florent.fourcot@wifirst.fr> Sender: netdev-owner@vger.kernel.org List-ID: From: Florent Fourcot Date: Thu, 30 Aug 2018 16:39:23 +0200 > tokens and ctokens are defined as s64 in htb_class structure, > and clamped to 32bits value during netlink dumps: > > cl->xstats.tokens = clamp_t(s64, PSCHED_NS2TICKS(cl->tokens), > INT_MIN, INT_MAX); > > Defining it as u32 is working since userspace (tc) is printing it as > signed int, but a correct definition from the beginning is probably > better. > > In the same time, 'giants' structure member is unused since years, so > update the comment to mark it unused. > > Signed-off-by: Florent Fourcot Looks good, applied.