]> 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)
commit81e6967fae331fd3b570b6a314ed05f2fcdc2c99
tree33ee3853074e6eca1f2ff0419c4f59d3cfb41dc3
parentcd78d67945d56901398209fed9cd4a176ce1007d
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: b19e7983b3ca ('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