-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/gi…
…t/jkirsher/net-next Jeff Kirsher says: ==================== This series contains updates to e1000e and ixgbe. Majority of the patches are against e1000e, where Bruce makes several cosmetic #define moves into header files. In addition, Bruce does a cleanup of braces to resolve checkpatch warnings (when using the strict option). Ixgbe patches contain several fixes as well as updating the copyright. The fixes from Josh Hay, resolved a possible NULL pointer dereference and resolved Smatch warnings by fixing return values and memcpy parameters. Alex provides 2 fixes, the first is to replace rmb() with read_barrier_depends() in the Tx cleanup. The second fixes an MTU warning when using SR-IOV which corrects the fact that we were using 1522 to test for the max frame size in ixgbe_change_mtu and 1518 in ixgbe_set_vf_lpe. The difference was the addition of VLAN_HLEN, which we only need to add in the case of computing a buffer size, but not a filter size. Lastly, a patch from Emil which is based on a community patch from Aurélien Guillaume which adds functions needed for reading SFF-8472 diagnostic data from SFP modules. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
- Loading branch information
Showing
47 changed files
with
1,228 additions
and
910 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
/******************************************************************************* | ||
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 | ||
*******************************************************************************/ | ||
|
||
#ifndef _E1000E_80003ES2LAN_H_ | ||
#define _E1000E_80003ES2LAN_H_ | ||
|
||
#define E1000_KMRNCTRLSTA_OFFSET_FIFO_CTRL 0x00 | ||
#define E1000_KMRNCTRLSTA_OFFSET_INB_CTRL 0x02 | ||
#define E1000_KMRNCTRLSTA_OFFSET_HD_CTRL 0x10 | ||
#define E1000_KMRNCTRLSTA_OFFSET_MAC2PHY_OPMODE 0x1F | ||
|
||
#define E1000_KMRNCTRLSTA_FIFO_CTRL_RX_BYPASS 0x0008 | ||
#define E1000_KMRNCTRLSTA_FIFO_CTRL_TX_BYPASS 0x0800 | ||
#define E1000_KMRNCTRLSTA_INB_CTRL_DIS_PADDING 0x0010 | ||
|
||
#define E1000_KMRNCTRLSTA_HD_CTRL_10_100_DEFAULT 0x0004 | ||
#define E1000_KMRNCTRLSTA_HD_CTRL_1000_DEFAULT 0x0000 | ||
#define E1000_KMRNCTRLSTA_OPMODE_E_IDLE 0x2000 | ||
|
||
#define E1000_KMRNCTRLSTA_OPMODE_MASK 0x000C | ||
#define E1000_KMRNCTRLSTA_OPMODE_INBAND_MDIO 0x0004 | ||
|
||
#define E1000_TCTL_EXT_GCEX_MASK 0x000FFC00 /* Gig Carry Extend Padding */ | ||
#define DEFAULT_TCTL_EXT_GCEX_80003ES2LAN 0x00010000 | ||
|
||
#define DEFAULT_TIPG_IPGT_1000_80003ES2LAN 0x8 | ||
#define DEFAULT_TIPG_IPGT_10_100_80003ES2LAN 0x9 | ||
|
||
/* GG82563 PHY Specific Status Register (Page 0, Register 16 */ | ||
#define GG82563_PSCR_POLARITY_REVERSAL_DISABLE 0x0002 /* 1=Reversal Dis */ | ||
#define GG82563_PSCR_CROSSOVER_MODE_MASK 0x0060 | ||
#define GG82563_PSCR_CROSSOVER_MODE_MDI 0x0000 /* 00=Manual MDI */ | ||
#define GG82563_PSCR_CROSSOVER_MODE_MDIX 0x0020 /* 01=Manual MDIX */ | ||
#define GG82563_PSCR_CROSSOVER_MODE_AUTO 0x0060 /* 11=Auto crossover */ | ||
|
||
/* PHY Specific Control Register 2 (Page 0, Register 26) */ | ||
#define GG82563_PSCR2_REVERSE_AUTO_NEG 0x2000 /* 1=Reverse Auto-Neg */ | ||
|
||
/* MAC Specific Control Register (Page 2, Register 21) */ | ||
/* Tx clock speed for Link Down and 1000BASE-T for the following speeds */ | ||
#define GG82563_MSCR_TX_CLK_MASK 0x0007 | ||
#define GG82563_MSCR_TX_CLK_10MBPS_2_5 0x0004 | ||
#define GG82563_MSCR_TX_CLK_100MBPS_25 0x0005 | ||
#define GG82563_MSCR_TX_CLK_1000MBPS_25 0x0007 | ||
|
||
#define GG82563_MSCR_ASSERT_CRS_ON_TX 0x0010 /* 1=Assert */ | ||
|
||
/* DSP Distance Register (Page 5, Register 26) | ||
* 0 = <50M | ||
* 1 = 50-80M | ||
* 2 = 80-100M | ||
* 3 = 110-140M | ||
* 4 = >140M | ||
*/ | ||
#define GG82563_DSPD_CABLE_LENGTH 0x0007 | ||
|
||
/* Kumeran Mode Control Register (Page 193, Register 16) */ | ||
#define GG82563_KMCR_PASS_FALSE_CARRIER 0x0800 | ||
|
||
/* Max number of times Kumeran read/write should be validated */ | ||
#define GG82563_MAX_KMRN_RETRY 0x5 | ||
|
||
/* Power Management Control Register (Page 193, Register 20) */ | ||
/* 1=Enable SERDES Electrical Idle */ | ||
#define GG82563_PMCR_ENABLE_ELECTRICAL_IDLE 0x0001 | ||
|
||
/* In-Band Control Register (Page 194, Register 18) */ | ||
#define GG82563_ICR_DIS_PADDING 0x0010 /* Disable Padding */ | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
/******************************************************************************* | ||
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 | ||
*******************************************************************************/ | ||
|
||
#ifndef _E1000E_82571_H_ | ||
#define _E1000E_82571_H_ | ||
|
||
#define ID_LED_RESERVED_F746 0xF746 | ||
#define ID_LED_DEFAULT_82573 ((ID_LED_DEF1_DEF2 << 12) | \ | ||
(ID_LED_OFF1_ON2 << 8) | \ | ||
(ID_LED_DEF1_DEF2 << 4) | \ | ||
(ID_LED_DEF1_DEF2)) | ||
|
||
#define E1000_GCR_L1_ACT_WITHOUT_L0S_RX 0x08000000 | ||
#define AN_RETRY_COUNT 5 /* Autoneg Retry Count value */ | ||
|
||
/* Intr Throttling - RW */ | ||
#define E1000_EITR_82574(_n) (0x000E8 + (0x4 * (_n))) | ||
|
||
#define E1000_EIAC_82574 0x000DC /* Ext. Interrupt Auto Clear - RW */ | ||
#define E1000_EIAC_MASK_82574 0x01F00000 | ||
|
||
/* Manageability Operation Mode mask */ | ||
#define E1000_NVM_INIT_CTRL2_MNGM 0x6000 | ||
|
||
#define E1000_BASE1000T_STATUS 10 | ||
#define E1000_IDLE_ERROR_COUNT_MASK 0xFF | ||
#define E1000_RECEIVE_ERROR_COUNTER 21 | ||
#define E1000_RECEIVE_ERROR_MAX 0xFFFF | ||
bool e1000_check_phy_82574(struct e1000_hw *hw); | ||
bool e1000e_get_laa_state_82571(struct e1000_hw *hw); | ||
void e1000e_set_laa_state_82571(struct e1000_hw *hw, bool state); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.