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:

committed by
David S. Miller

parent
f265d79959
commit
111dcba3c6
@@ -194,6 +194,9 @@ int ethnl_set_privflags(struct sk_buff *skb, struct genl_info *info)
|
||||
if (ret < 0 || !mod)
|
||||
goto out_free;
|
||||
ret = ops->set_priv_flags(dev, flags);
|
||||
if (ret < 0)
|
||||
goto out_free;
|
||||
ethtool_notify(dev, ETHTOOL_MSG_PRIVFLAGS_NTF, NULL);
|
||||
|
||||
out_free:
|
||||
kfree(names);
|
||||
|
Reference in New Issue
Block a user