diff options
Diffstat (limited to 'drivers/net/ethernet/intel/e1000e/param.c')
| -rw-r--r-- | drivers/net/ethernet/intel/e1000e/param.c | 57 | 
1 files changed, 30 insertions, 27 deletions
diff --git a/drivers/net/ethernet/intel/e1000e/param.c b/drivers/net/ethernet/intel/e1000e/param.c index c16bd75b6ca..aa1923f7ebd 100644 --- a/drivers/net/ethernet/intel/e1000e/param.c +++ b/drivers/net/ethernet/intel/e1000e/param.c @@ -1,30 +1,23 @@ -/******************************************************************************* - -  Intel PRO/1000 Linux driver -  Copyright(c) 1999 - 2013 Intel Corporation. - -  This program is free software; you can redistribute it and/or modify it -  under the terms and conditions of the GNU General Public License, -  version 2, as published by the Free Software Foundation. - -  This program is distributed in the hope it will be useful, but WITHOUT -  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for -  more details. - -  You should have received a copy of the GNU General Public License along with -  this program; if not, write to the Free Software Foundation, Inc., -  51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. - -  The full GNU General Public License is included in this distribution in -  the file called "COPYING". - -  Contact Information: -  Linux NICS <linux.nics@intel.com> -  e1000-devel Mailing List <e1000-devel@lists.sourceforge.net> -  Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 - -*******************************************************************************/ +/* Intel PRO/1000 Linux driver + * Copyright(c) 1999 - 2014 Intel Corporation. + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for + * more details. + * + * The full GNU General Public License is included in this distribution in + * the file called "COPYING". + * + * Contact Information: + * Linux NICS <linux.nics@intel.com> + * e1000-devel Mailing List <e1000-devel@lists.sourceforge.net> + * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 + */  #include <linux/netdevice.h>  #include <linux/module.h> @@ -381,6 +374,12 @@ void e1000e_check_options(struct e1000_adapter *adapter)  				 "%s set to dynamic mode\n", opt.name);  			adapter->itr = 20000;  			break; +		case 2: +			dev_info(&adapter->pdev->dev, +				 "%s Invalid mode - setting default\n", +				 opt.name); +			adapter->itr_setting = opt.def; +			/* fall-through */  		case 3:  			dev_info(&adapter->pdev->dev,  				 "%s set to dynamic conservative mode\n", @@ -437,6 +436,7 @@ void e1000e_check_options(struct e1000_adapter *adapter)  		if (num_IntMode > bd) {  			unsigned int int_mode = IntMode[bd]; +  			e1000_validate_option(&int_mode, &opt, adapter);  			adapter->int_mode = int_mode;  		} else { @@ -458,6 +458,7 @@ void e1000e_check_options(struct e1000_adapter *adapter)  		if (num_SmartPowerDownEnable > bd) {  			unsigned int spd = SmartPowerDownEnable[bd]; +  			e1000_validate_option(&spd, &opt, adapter);  			if ((adapter->flags & FLAG_HAS_SMART_POWER_DOWN) && spd)  				adapter->flags |= FLAG_SMART_POWER_DOWN; @@ -474,6 +475,7 @@ void e1000e_check_options(struct e1000_adapter *adapter)  		if (num_CrcStripping > bd) {  			unsigned int crc_stripping = CrcStripping[bd]; +  			e1000_validate_option(&crc_stripping, &opt, adapter);  			if (crc_stripping == OPTION_ENABLED) {  				adapter->flags2 |= FLAG2_CRC_STRIPPING; @@ -496,6 +498,7 @@ void e1000e_check_options(struct e1000_adapter *adapter)  		if (num_KumeranLockLoss > bd) {  			unsigned int kmrn_lock_loss = KumeranLockLoss[bd]; +  			e1000_validate_option(&kmrn_lock_loss, &opt, adapter);  			enabled = kmrn_lock_loss;  		}  | 
