diff options
author | Michal Kubecek <mkubecek@suse.cz> | 2020-03-12 21:08:33 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-12 15:32:33 -0700 |
commit | bc9d1c995ecb8cccaac8ead2ed570544c2c885eb (patch) | |
tree | 5e54f7ecf974a5e2092ea919e8094a58cd5f28a2 /net/ethtool/rings.c | |
parent | 2fc2929e807211a9535a6541f24b57fa1c469728 (diff) | |
download | linux-stable-bc9d1c995ecb8cccaac8ead2ed570544c2c885eb.tar.gz linux-stable-bc9d1c995ecb8cccaac8ead2ed570544c2c885eb.tar.bz2 linux-stable-bc9d1c995ecb8cccaac8ead2ed570544c2c885eb.zip |
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>
Diffstat (limited to 'net/ethtool/rings.c')
-rw-r--r-- | net/ethtool/rings.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ethtool/rings.c b/net/ethtool/rings.c index 93f428e9a6c2..c2ebf72be217 100644 --- a/net/ethtool/rings.c +++ b/net/ethtool/rings.c @@ -186,6 +186,9 @@ int ethnl_set_rings(struct sk_buff *skb, struct genl_info *info) } ret = dev->ethtool_ops->set_ringparam(dev, &ringparam); + if (ret < 0) + goto out_ops; + ethtool_notify(dev, ETHTOOL_MSG_RINGS_NTF, NULL); out_ops: ethnl_ops_complete(dev); |