OSDN Git Service

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)
commit7589fd5c8c2802c370f18ab5a9c571eb34aa9a35
tree6a65ed44bdbac8b7bf47aa9f25c52c31cbf56f45
parent37e2d99b59c4765112533a1d38174fea58d28a51
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