[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180117235207.GC26967@nanopsycho>
Date: Thu, 18 Jan 2018 00:52:07 +0100
From: Jiri Pirko <jiri@...nulli.us>
To: Florian Fainelli <f.fainelli@...il.com>
Cc: netdev@...r.kernel.org, edumazet@...gle.com, andrew@...n.ch,
cphealy@...il.com, David Decotigny <decot@...glers.com>,
"David S. Miller" <davem@...emloft.net>,
Jamal Hadi Salim <jhs@...atatu.com>,
Cong Wang <xiyou.wangcong@...il.com>,
Daniel Borkmann <daniel@...earbox.net>,
Nikolay Aleksandrov <nikolay@...ulusnetworks.com>,
Alexei Starovoitov <ast@...com>,
Roopa Prabhu <roopa@...ulusnetworks.com>,
Mahesh Bandewar <maheshb@...gle.com>,
Vlad Yasevich <vyasevich@...il.com>,
Jakub Kicinski <jakub.kicinski@...ronome.com>,
Jonas Bonn <jonas@...thpole.se>,
stephen hemminger <stephen@...workplumber.org>,
Hans Liljestrand <ishkamiel@...il.com>,
"Reshetova, Elena" <elena.reshetova@...el.com>,
Kirill Tkhai <ktkhai@...tuozzo.com>,
Andrey Vagin <avagin@...nvz.org>,
Florian Westphal <fw@...len.de>,
David Ahern <dsahern@...il.com>,
Xin Long <lucien.xin@...il.com>,
Matthias Schiffer <mschiffer@...verse-factory.net>,
Jiri Benc <jbenc@...hat.com>,
open list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH net-next] net: core: Expose number of link up/down
transitions
Thu, Jan 18, 2018 at 12:06:57AM CET, f.fainelli@...il.com wrote:
>From: David Decotigny <decot@...glers.com>
>
>Expose the number of times the link has been going UP or DOWN, and
>update the "carrier_changes" counter to be the sum of these two events.
>While at it, also update the sysfs-class-net documentation to cover:
>carrier_changes (3.15), count_link_up (4.16) and count_link_down (4.16)
>
>Signed-off-by: David Decotigny <decot@...glers.com>
[...]
>@@ -161,6 +161,8 @@ enum {
> IFLA_EVENT,
> IFLA_NEW_NETNSID,
> IFLA_IF_NETNSID,
>+ IFLA_COUNT_LINK_UP,
>+ IFLA_COUNT_LINK_DOWN,
IFLA_LINK_UP_COUNT,
IFLA_LINK_DOWN_COUNT,
would sound a bit nicer to me.
> __IFLA_MAX
> };
Powered by blists - more mailing lists