]> git.baikalelectronics.ru Git - kernel.git/commit
ethtool: add DEBUG_NTF notification
authorMichal Kubecek <mkubecek@suse.cz>
Sun, 26 Jan 2020 22:11:10 +0000 (23:11 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Jan 2020 10:31:36 +0000 (11:31 +0100)
commit694575b0bdf6670b164cc2bc20f19c7578e5871a
tree3a7134bfad42d069f4e87e48d7775d29ae485d6b
parentfa06d59b376ed4fc13dcca058a183e64c958bc56
ethtool: add DEBUG_NTF notification

Send ETHTOOL_MSG_DEBUG_NTF notification message whenever debugging message
mask for a device are modified using ETHTOOL_MSG_DEBUG_SET netlink message
or ETHTOOL_SMSGLVL ioctl request.

The notification message has the same format as reply to DEBUG_GET request.
As with other ethtool notifications, netlink requests only trigger the
notification if the mask is actually changed while ioctl request trigger it
whenever the request results in calling the ethtool_ops handler.

Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/networking/ethtool-netlink.rst
include/uapi/linux/ethtool_netlink.h
net/ethtool/debug.c
net/ethtool/ioctl.c
net/ethtool/netlink.c