]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Verify module parameters
authorKamal Heib <kamalh@mellanox.com>
Tue, 6 Dec 2016 15:32:43 +0000 (17:32 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Dec 2016 16:44:43 +0000 (11:44 -0500)
commitd64cd1a0cb866b56cd87170d0bdbc2f78ff4a287
tree33ee3853074e6eca1f2ff0419c4f59d3cfb41dc3
parent5099452275bb4ef37da6ee7de0a0c14a14fe4020
net/mlx5: Verify module parameters

Verify the mlx5_core module parameters by making sure that they are in
the expected range and if they aren't restore them to their default
values.

Fixes: a76686a4b7e5 ('mlx5: Move pci device handling from mlx5_ib to mlx5_core')
Signed-off-by: Kamal Heib <kamalh@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/main.c
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h