summaryrefslogtreecommitdiffstats
path: root/net/ethtool/eee.c
diff options
context:
space:
mode:
authorMichal Kubecek <mkubecek@suse.cz>2020-03-28 00:01:48 +0100
committerDavid S. Miller <davem@davemloft.net>2020-03-29 22:32:36 -0700
commit6c5bc8fe4e1915da8296a665bd742dbe34de02f0 (patch)
tree407739e00f65ba29cb6faf4001a0849ab2def99b /net/ethtool/eee.c
parentfd77be7bd43c578614165b1ae5fdb91b8f2f1689 (diff)
downloadlinux-6c5bc8fe4e1915da8296a665bd742dbe34de02f0.tar.gz
linux-6c5bc8fe4e1915da8296a665bd742dbe34de02f0.tar.bz2
linux-6c5bc8fe4e1915da8296a665bd742dbe34de02f0.zip
ethtool: add EEE_NTF notification
Send ETHTOOL_MSG_EEE_NTF notification whenever EEE settings of a network device are modified using ETHTOOL_MSG_EEE_SET netlink message or ETHTOOL_SEEE ioctl request. Signed-off-by: Michal Kubecek <mkubecek@suse.cz> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ethtool/eee.c')
-rw-r--r--net/ethtool/eee.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ethtool/eee.c b/net/ethtool/eee.c
index ded092d1b2b9..94aa19cff22f 100644
--- a/net/ethtool/eee.c
+++ b/net/ethtool/eee.c
@@ -192,6 +192,9 @@ int ethnl_set_eee(struct sk_buff *skb, struct genl_info *info)
goto out_ops;
ret = dev->ethtool_ops->set_eee(dev, &eee);
+ if (ret < 0)
+ goto out_ops;
+ ethtool_notify(dev, ETHTOOL_MSG_EEE_NTF, NULL);
out_ops:
ethnl_ops_complete(dev);