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)
commitf663ad98623926b8d7bdef4b4648d10c0229aebe
tree33ee3853074e6eca1f2ff0419c4f59d3cfb41dc3
parentf85de6666347c974cdf97b1026180995d912d7d0
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: 9603b61de1ee ('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