[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c14b01d8-a752-13dc-11a3-374b04309407@gmail.com>
Date: Mon, 23 Dec 2019 20:34:22 -0800
From: Florian Fainelli <f.fainelli@...il.com>
To: Michal Kubecek <mkubecek@...e.cz>,
David Miller <davem@...emloft.net>, netdev@...r.kernel.org
Cc: Jakub Kicinski <jakub.kicinski@...ronome.com>,
Jiri Pirko <jiri@...nulli.us>, Andrew Lunn <andrew@...n.ch>,
John Linville <linville@...driver.com>,
Stephen Hemminger <stephen@...workplumber.org>,
Johannes Berg <johannes@...solutions.net>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH net-next v8 10/14] ethtool: add LINKINFO_NTF notification
On 12/22/2019 3:46 PM, Michal Kubecek wrote:
> Send ETHTOOL_MSG_LINKINFO_NTF notification message whenever device link
> settings are modified using ETHTOOL_MSG_LINKINFO_SET netlink message or
> ETHTOOL_SLINKSETTINGS or ETHTOOL_SSET ioctl commands.
>
> The notification message has the same format as reply to LINKINFO_GET
> request. ETHTOOL_MSG_LINKINFO_SET netlink request only triggers the
> notification if there is a change but the ioctl command handlers do not
> check if there is an actual change and trigger the notification whenever
> the commands are executed.
>
> As all work is done by ethnl_default_notify() handler and callback
> functions introduced to handle LINKINFO_GET requests, all that remains is
> adding entries for ETHTOOL_MSG_LINKINFO_NTF into ethnl_notify_handlers and
> ethnl_default_notify_ops lookup tables and calls to ethtool_notify() where
> needed.
>
> Signed-off-by: Michal Kubecek <mkubecek@...e.cz>
Reviewed-by: Florian Fainelli <f.fainelli@...il.com>
--
Florian
Powered by blists - more mailing lists