bool __ethtool_dev_mm_supported(struct net_device *dev);
 
 #if IS_ENABLED(CONFIG_ETHTOOL_NETLINK)
-void ethtool_rss_notify(struct net_device *dev, u32 rss_context);
+void ethtool_rss_notify(struct net_device *dev, u32 type, u32 rss_context);
 #else
-static inline void ethtool_rss_notify(struct net_device *dev, u32 rss_context)
+static inline void
+ethtool_rss_notify(struct net_device *dev, u32 type, u32 rss_context)
 {
 }
 #endif
 
        if (rc)
                return rc;
 
-       ethtool_rss_notify(dev, fields.rss_context);
+       ethtool_rss_notify(dev, ETHTOOL_MSG_RSS_NTF, fields.rss_context);
        return 0;
 }
 
        struct ethtool_rxnfc rx_rings;
        struct ethtool_rxfh rxfh;
        bool create = false;
-       bool mod = false;
        u8 *rss_config;
+       int ntf = 0;
        int ret;
 
        if (!ops->get_rxnfc || !ops->set_rxfh)
        rxfh_dev.input_xfrm = rxfh.input_xfrm;
 
        if (!rxfh.rss_context) {
+               ntf = ETHTOOL_MSG_RSS_NTF;
                ret = ops->set_rxfh(dev, &rxfh_dev, extack);
        } else if (create) {
                ret = ops->create_rxfh_context(dev, ctx, &rxfh_dev, extack);
                ret = ops->remove_rxfh_context(dev, ctx, rxfh.rss_context,
                                               extack);
        } else {
+               ntf = ETHTOOL_MSG_RSS_NTF;
                ret = ops->modify_rxfh_context(dev, ctx, &rxfh_dev, extack);
        }
        if (ret) {
+               ntf = 0;
                if (create) {
                        /* failed to create, free our new tracking entry */
                        xa_erase(&dev->ethtool->rss_ctx, rxfh.rss_context);
                }
                goto out_unlock;
        }
-       mod = !create && !rxfh_dev.rss_delete;
 
        if (copy_to_user(useraddr + offsetof(struct ethtool_rxfh, rss_context),
                         &rxfh_dev.rss_context, sizeof(rxfh_dev.rss_context)))
        mutex_unlock(&dev->ethtool->rss_lock);
 out_free:
        kfree(rss_config);
-       if (mod)
-               ethtool_rss_notify(dev, rxfh.rss_context);
+       if (ntf)
+               ethtool_rss_notify(dev, ntf, rxfh.rss_context);
        return ret;
 }
 
 
 
 /* RSS_NTF */
 
-void ethtool_rss_notify(struct net_device *dev, u32 rss_context)
+void ethtool_rss_notify(struct net_device *dev, u32 type, u32 rss_context)
 {
        struct rss_req_info req_info = {
                .rss_context = rss_context,
        };
 
-       ethnl_notify(dev, ETHTOOL_MSG_RSS_NTF, &req_info.base);
+       ethnl_notify(dev, type, &req_info.base);
 }
 
 /* RSS_SET */