[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ccb70b0f-81c0-46ce-12aa-a74b2e6832e8@gmail.com>
Date: Wed, 17 Jan 2018 16:17:43 -0800
From: David Ahern <dsahern@...il.com>
To: Jiri Pirko <jiri@...nulli.us>,
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>,
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
On 1/17/18 3:52 PM, Jiri Pirko wrote:
> 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.
given existing IFLA_LINK_* attributes how about
IFLA_CARRIER_{UP,DOWN}_COUNT?
Powered by blists - more mailing lists