[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170112174335.1bd391c2@xeon-e3>
Date: Thu, 12 Jan 2017 17:43:35 -0800
From: Stephen Hemminger <stephen@...workplumber.org>
To: Nogah Frankel <nogahf@...lanox.com>
Cc: netdev@...r.kernel.org, roszenrami@...il.com,
roopa@...ulusnetworks.com, jiri@...lanox.com, idosch@...lanox.com,
eladr@...lanox.com, yotamg@...lanox.com, ogerlitz@...lanox.com
Subject: Re: [PATCH iproute2 v4 3/4] ifstat: Add 64 bits based stats to
extended statistics
On Thu, 12 Jan 2017 15:49:50 +0200
Nogah Frankel <nogahf@...lanox.com> wrote:
> The default stats for ifstat are 32 bits based.
> The kernel supports 64 bits based stats. (They are returned in struct
> rtnl_link_stats64 which is an exact copy of struct rtnl_link_stats, in
> which the "normal" stats are returned, but with fields of u64 instead of
> u32). This patch adds them as an extended stats.
>
> It is read with filter type IFLA_STATS_LINK_64 and no sub type.
>
> It is under the name 64bits
> (or any shorten of it as "64")
>
> For example:
> ifstat -x 64bit
>
> Signed-off-by: Nogah Frankel <nogahf@...lanox.com>
> Reviewed-by: Jiri Pirko <jiri@...lanox.com>
Other commands (like ip link) always use the 64 bit statistics if available
from the device. I see no reason that ifstat needs to be different.
Powered by blists - more mailing lists