Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F137292107
D4177.id10230.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
644 B
Referenced Files
None
Subscribers
None
D4177.id10230.diff
View Options
Index: sys/dev/mlx5/mlx5_en/mlx5_en_ethtool.c
===================================================================
--- sys/dev/mlx5/mlx5_en/mlx5_en_ethtool.c
+++ sys/dev/mlx5/mlx5_en/mlx5_en_ethtool.c
@@ -184,6 +184,13 @@
}
if (priv->ifp->if_capenable & IFCAP_LRO)
priv->params.hw_lro_en = !!MLX5_CAP_ETH(priv->mdev, lro_cap);
+ else {
+ /* set the correct (0) value to params_ethtool.hw_lro, issue a warning and return error */
+ priv->params_ethtool.hw_lro = 0;
+ error = EINVAL;
+ if_printf(priv->ifp, "Can't set HW_LRO to a device with LRO turned off");
+ goto done;
+ }
}
else {
priv->params.hw_lro_en = false;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 23, 3:19 AM (2 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25990527
Default Alt Text
D4177.id10230.diff (644 B)
Attached To
Mode
D4177: mlx5en: maintain hw_lro conf var correctly
Attached
Detach File
Event Timeline
Log In to Comment