summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/core/dev.c2
-rw-r--r--net/ethtool/ioctl.c9
2 files changed, 7 insertions, 4 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 8481dc4f2196..2daed4464c08 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -11256,7 +11256,7 @@ static void netdev_rss_contexts_free(struct net_device *dev)
xa_erase(&dev->ethtool->rss_ctx, context);
if (dev->ethtool_ops->create_rxfh_context)
dev->ethtool_ops->remove_rxfh_context(dev, ctx,
- context);
+ context, NULL);
else
dev->ethtool_ops->set_rxfh(dev, &rxfh, NULL);
kfree(ctx);
diff --git a/net/ethtool/ioctl.c b/net/ethtool/ioctl.c
index 46b50ddde013..82c610e9e6b2 100644
--- a/net/ethtool/ioctl.c
+++ b/net/ethtool/ioctl.c
@@ -1426,12 +1426,15 @@ static noinline_for_stack int ethtool_set_rxfh(struct net_device *dev,
if (rxfh.rss_context && ops->create_rxfh_context) {
if (create)
- ret = ops->create_rxfh_context(dev, ctx, &rxfh_dev);
+ ret = ops->create_rxfh_context(dev, ctx, &rxfh_dev,
+ extack);
else if (rxfh_dev.rss_delete)
ret = ops->remove_rxfh_context(dev, ctx,
- rxfh.rss_context);
+ rxfh.rss_context,
+ extack);
else
- ret = ops->modify_rxfh_context(dev, ctx, &rxfh_dev);
+ ret = ops->modify_rxfh_context(dev, ctx, &rxfh_dev,
+ extack);
} else {
ret = ops->set_rxfh(dev, &rxfh_dev, extack);
}