ethtool: set message mask with DEBUG_SET request
Implement DEBUG_SET netlink request to set debugging settings for a device. At the moment, only message mask corresponding to message level as set by ETHTOOL_SMSGLVL ioctl request can be set. (It is called message level in ioctl interface but almost all drivers interpret it as a bit mask.) Signed-off-by: Michal Kubecek <mkubecek@suse.cz> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
6a94b8ccf6
commit
e54d04e3af
@@ -186,6 +186,7 @@ Userspace to kernel:
|
||||
``ETHTOOL_MSG_LINKMODES_SET`` set link modes info
|
||||
``ETHTOOL_MSG_LINKSTATE_GET`` get link state
|
||||
``ETHTOOL_MSG_DEBUG_GET`` get debugging settings
|
||||
``ETHTOOL_MSG_DEBUG_SET`` set debugging settings
|
||||
===================================== ================================
|
||||
|
||||
Kernel to userspace:
|
||||
@@ -455,6 +456,23 @@ interface follows its actual use in practice.
|
||||
devices supporting the request).
|
||||
|
||||
|
||||
DEBUG_SET
|
||||
=========
|
||||
|
||||
Set or update debugging settings of a device. At the moment, only message mask
|
||||
is supported.
|
||||
|
||||
Request contents:
|
||||
|
||||
==================================== ====== ==========================
|
||||
``ETHTOOL_A_DEBUG_HEADER`` nested request header
|
||||
``ETHTOOL_A_DEBUG_MSGMASK`` bitset message mask
|
||||
==================================== ====== ==========================
|
||||
|
||||
``ETHTOOL_A_DEBUG_MSGMASK`` bit set allows setting or modifying mask of
|
||||
enabled debugging message types for the device.
|
||||
|
||||
|
||||
Request translation
|
||||
===================
|
||||
|
||||
@@ -474,7 +492,7 @@ have their netlink replacement yet.
|
||||
``ETHTOOL_GWOL`` n/a
|
||||
``ETHTOOL_SWOL`` n/a
|
||||
``ETHTOOL_GMSGLVL`` ``ETHTOOL_MSG_DEBUG_GET``
|
||||
``ETHTOOL_SMSGLVL`` n/a
|
||||
``ETHTOOL_SMSGLVL`` ``ETHTOOL_MSG_DEBUG_SET``
|
||||
``ETHTOOL_NWAY_RST`` n/a
|
||||
``ETHTOOL_GLINK`` ``ETHTOOL_MSG_LINKSTATE_GET``
|
||||
``ETHTOOL_GEEPROM`` n/a
|
||||
|
Reference in New Issue
Block a user