]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_en: Align behavior of set ring size flow via ethtool
authorEugenia Emantayev <eugenia@mellanox.com>
Mon, 8 Jan 2018 14:00:25 +0000 (16:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Jan 2018 16:54:49 +0000 (11:54 -0500)
commit0c0d82611fab420bd4b823caf250a914801588f2
tree6a65ed44bdbac8b7bf47aa9f25c52c31cbf56f45
parent77ec6b45abbdfc2dbfbcf0d64114461ee4aae4b4
net/mlx4_en: Align behavior of set ring size flow via ethtool

In current implementation, any requested RX/TX ring size value
that is less than minimum is silently casted to nearest valid value.
Update this behavior to align with mlx5 behavior by printing warning
in dmesg and remaining the size unchanged.
Kernel is responsible for verifying against the maximum.

Signed-off-by: Eugenia Emantayev <eugenia@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_ethtool.c