]> 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)
commitcc04f83f6f9127c06d82b3737237ef41e720b6a9
tree6a65ed44bdbac8b7bf47aa9f25c52c31cbf56f45
parent46718044a1760702099f4389e7b848ea0a069f2c
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