aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
diff options
context:
space:
mode:
authorGravatar Kamal Heib <kamalh@mellanox.com> 2016-12-06 17:32:43 +0200
committerGravatar David S. Miller <davem@davemloft.net> 2016-12-06 11:44:43 -0500
commitf663ad98623926b8d7bdef4b4648d10c0229aebe (patch)
tree33ee3853074e6eca1f2ff0419c4f59d3cfb41dc3 /drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
parentnet: fec: fix compile with CONFIG_M5272 (diff)
downloadlinux-f663ad98623926b8d7bdef4b4648d10c0229aebe.tar.gz
linux-f663ad98623926b8d7bdef4b4648d10c0229aebe.tar.bz2
linux-f663ad98623926b8d7bdef4b4648d10c0229aebe.zip
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>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h')
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h b/drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
index 187662c8ea96..20d16b137e03 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
+++ b/drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
@@ -44,7 +44,7 @@
#define MLX5_TOTAL_VPORTS(mdev) (1 + pci_sriov_get_totalvfs(mdev->pdev))
-extern int mlx5_core_debug_mask;
+extern uint mlx5_core_debug_mask;
#define mlx5_core_dbg(__dev, format, ...) \
dev_dbg(&(__dev)->pdev->dev, "%s:%s:%d:(pid %d): " format, \