You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ->set/create/modify_rxfh() callbacks now pass a valid extack instead
of NULL through netlink [1]. In case of an error, reflect it through
extack instead of a dmesg print.
[1]
commit c0ae035 ("ethtool: rss: initial RSS_SET (indirection table handling)")
Signed-off-by: Gal Pressman <[email protected]>
Reviewed-by: Dragos Tatulea <[email protected]>
Signed-off-by: Tariq Toukan <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
netdev_err(priv->netdev, "%s: Cannot set RSS hash function to XOR, current number of channels (%d) exceeds the maximum allowed for XOR8 RSS hfunc (%d)\n",
1508
-
__func__, count, xor8_max_channels);
1508
+
NL_SET_ERR_MSG_FMT_MOD(
1509
+
extack,
1510
+
"Number of channels (%u) exceeds the max for XOR8 RSS (%u)",
1511
+
count, xor8_max_channels);
1509
1512
return-EINVAL;
1510
1513
}
1511
1514
}
@@ -1524,7 +1527,7 @@ static int mlx5e_set_rxfh(struct net_device *dev,
1524
1527
1525
1528
mutex_lock(&priv->state_lock);
1526
1529
1527
-
err=mlx5e_rxfh_hfunc_check(priv, rxfh);
1530
+
err=mlx5e_rxfh_hfunc_check(priv, rxfh, extack);
1528
1531
if (err)
1529
1532
goto unlock;
1530
1533
@@ -1550,7 +1553,7 @@ static int mlx5e_create_rxfh_context(struct net_device *dev,
1550
1553
1551
1554
mutex_lock(&priv->state_lock);
1552
1555
1553
-
err=mlx5e_rxfh_hfunc_check(priv, rxfh);
1556
+
err=mlx5e_rxfh_hfunc_check(priv, rxfh, extack);
1554
1557
if (err)
1555
1558
goto unlock;
1556
1559
@@ -1590,7 +1593,7 @@ static int mlx5e_modify_rxfh_context(struct net_device *dev,
0 commit comments