]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ixgbe: Fix module_param allow_unsupported_sfp type
authorJeff Daly <jeffd@silicom-usa.com>
Thu, 14 Apr 2022 20:21:04 +0000 (16:21 -0400)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 5 May 2022 15:37:14 +0000 (08:37 -0700)
The module_param allow_unsupported_sfp should be a boolean to match the
type in the ixgbe_hw struct.

Signed-off-by: Jeff Daly <jeffd@silicom-usa.com>
Tested-by: Gurucharan <gurucharanx.g@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c

index c4a4954aa3177d012c59c31667871fbfd5933cbe..e5732a058bec6fbe21e063b29ac0a9df1957f793 100644 (file)
@@ -151,8 +151,8 @@ MODULE_PARM_DESC(max_vfs,
                 "Maximum number of virtual functions to allocate per physical function - default is zero and maximum value is 63. (Deprecated)");
 #endif /* CONFIG_PCI_IOV */
 
-static unsigned int allow_unsupported_sfp;
-module_param(allow_unsupported_sfp, uint, 0);
+static bool allow_unsupported_sfp;
+module_param(allow_unsupported_sfp, bool, 0);
 MODULE_PARM_DESC(allow_unsupported_sfp,
                 "Allow unsupported and untested SFP+ modules on 82599-based adapters");