ethtool: add RINGS_NTF notification
Send ETHTOOL_MSG_RINGS_NTF notification whenever ring sizes of a network device are modified using ETHTOOL_MSG_RINGS_SET netlink message or ETHTOOL_SRINGPARAM ioctl request. Signed-off-by: Michal Kubecek <mkubecek@suse.cz> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
2fc2929e80
commit
bc9d1c995e
@@ -532,6 +532,7 @@ ethnl_default_notify_ops[ETHTOOL_MSG_KERNEL_MAX + 1] = {
|
||||
[ETHTOOL_MSG_WOL_NTF] = ðnl_wol_request_ops,
|
||||
[ETHTOOL_MSG_FEATURES_NTF] = ðnl_features_request_ops,
|
||||
[ETHTOOL_MSG_PRIVFLAGS_NTF] = ðnl_privflags_request_ops,
|
||||
[ETHTOOL_MSG_RINGS_NTF] = ðnl_rings_request_ops,
|
||||
};
|
||||
|
||||
/* default notification handler */
|
||||
@@ -619,6 +620,7 @@ static const ethnl_notify_handler_t ethnl_notify_handlers[] = {
|
||||
[ETHTOOL_MSG_WOL_NTF] = ethnl_default_notify,
|
||||
[ETHTOOL_MSG_FEATURES_NTF] = ethnl_default_notify,
|
||||
[ETHTOOL_MSG_PRIVFLAGS_NTF] = ethnl_default_notify,
|
||||
[ETHTOOL_MSG_RINGS_NTF] = ethnl_default_notify,
|
||||
};
|
||||
|
||||
void ethtool_notify(struct net_device *dev, unsigned int cmd, const void *data)
|
||||
|
Reference in New Issue
Block a user