mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 14:11:20 +00:00
ethtool: add PRIVFLAGS_NTF notification
Send ETHTOOL_MSG_PRIVFLAGS_NTF notification whenever private flags of a network device are modified using ETHTOOL_MSG_PRIVFLAGS_SET netlink message or ETHTOOL_SPFLAGS ioctl request. Signed-off-by: Michal Kubecek <mkubecek@suse.cz> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f265d79959
commit
111dcba3c6
4 changed files with 8 additions and 0 deletions
|
@ -530,6 +530,7 @@ ethnl_default_notify_ops[ETHTOOL_MSG_KERNEL_MAX + 1] = {
|
|||
[ETHTOOL_MSG_DEBUG_NTF] = ðnl_debug_request_ops,
|
||||
[ETHTOOL_MSG_WOL_NTF] = ðnl_wol_request_ops,
|
||||
[ETHTOOL_MSG_FEATURES_NTF] = ðnl_features_request_ops,
|
||||
[ETHTOOL_MSG_PRIVFLAGS_NTF] = ðnl_privflags_request_ops,
|
||||
};
|
||||
|
||||
/* default notification handler */
|
||||
|
@ -616,6 +617,7 @@ static const ethnl_notify_handler_t ethnl_notify_handlers[] = {
|
|||
[ETHTOOL_MSG_DEBUG_NTF] = ethnl_default_notify,
|
||||
[ETHTOOL_MSG_WOL_NTF] = ethnl_default_notify,
|
||||
[ETHTOOL_MSG_FEATURES_NTF] = ethnl_default_notify,
|
||||
[ETHTOOL_MSG_PRIVFLAGS_NTF] = ethnl_default_notify,
|
||||
};
|
||||
|
||||
void ethtool_notify(struct net_device *dev, unsigned int cmd, const void *data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue