]> 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)
commit3d43b612ffccd1cc2844e386760542e9436b63b4
tree3a7134bfad42d069f4e87e48d7775d29ae485d6b
parente80df2d13ab6aeb7d32f720a2c49f0a953b83544
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