Print maximum MTU when trying to set invalid MTU in the mlx4en(4) driver.
Useful for debugging. Submitted by: Sepherosa Ziehau <sephe@dragonflybsd.org> MFC after: 3 days Sponsored by: Mellanox Technologies
This commit is contained in:
parent
a3d0173d98
commit
768a720e95
@ -1771,7 +1771,8 @@ static int mlx4_en_change_mtu(struct net_device *dev, int new_mtu)
|
||||
(unsigned)dev->if_mtu, (unsigned)new_mtu);
|
||||
|
||||
if ((new_mtu < MLX4_EN_MIN_MTU) || (new_mtu > priv->max_mtu)) {
|
||||
en_err(priv, "Bad MTU size:%d.\n", new_mtu);
|
||||
en_err(priv, "Bad MTU size:%d, max %u.\n", new_mtu,
|
||||
priv->max_mtu);
|
||||
return -EPERM;
|
||||
}
|
||||
mutex_lock(&mdev->state_lock);
|
||||
|
Loading…
Reference in New Issue
Block a user