Skip to content

Commit 2a12d6c

Browse files
committed
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/net-next
Jeff Kirsher says: ==================== Intel Wired LAN Driver Updates 2015-02-23 This series contains updates to e1000e, igbvf, i40e and i40evf. David adds support for i219 devices to the e1000e driver. Jeff (me) provides two patches to cleanup igbvf, first cleans up the whitespace issues found and the second cleans up the usage of msleep(), min() and max() with usleep_range(), min_t() and max_t() respectively. Kamil updates the shadow RAM read/write functions by refactoring them to prepare for future work. Shannon renames the debugfs command "clear_stats pf" to clear_stats port" to clarify what the function really does. Mitch refactors the receive routine, by splitting the receive hot path code into two, one for packet split and one for single buffer, which improves receive performance. Disables NAPI polling sooner when closing the interface to fix an occasional panic during close which was caused by the driver trying to delete and clean rings at the same time. Also refactors reset for i40evf, since a recent change to the shutdown flow messed up the reset flow. Since i40evf_down() now holds the critical section lock, we cannot call it from the reset handler, which also holds the lock. Nicholas restricts the virtual channel opcodes should remain consistent between updates to the opcode enum. Neerav converts the VSI connection type to use a #define instead of using a magic number. Anjali updates the registers file to remove registers no longer available. Also fixes the EMPR interrupt handling, so that we won't trigger another EMPR when we receive an EMPR event. Catherine cleans up the variable an_enable since it was set and never used. Greg fixes the netdev op that allows the operator to turn MAC/VLAN spoof checking on and off so that it includes the flag for VLAN spoof checking. v2: Updated patch raspberrypi#10 in the series to use test_and_clear_bit() as suggested by Sergei Shtylyov ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
2 parents 1e0629d + 54e16f6 commit 2a12d6c

38 files changed

Lines changed: 2157 additions & 1032 deletions

‎drivers/net/ethernet/intel/e1000e/defines.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@
141141
#define E1000_RCTL_LBM_TCVR 0x000000C0 /* tcvr loopback mode */
142142
#define E1000_RCTL_DTYP_PS 0x00000400 /* Packet Split descriptor */
143143
#define E1000_RCTL_RDMTS_HALF 0x00000000 /* Rx desc min threshold size */
144+
#define E1000_RCTL_RDMTS_HEX 0x00010000
144145
#define E1000_RCTL_MO_SHIFT 12 /* multicast offset shift */
145146
#define E1000_RCTL_MO_3 0x00003000 /* multicast offset 15:4 */
146147
#define E1000_RCTL_BAM 0x00008000 /* broadcast enable */

‎drivers/net/ethernet/intel/e1000e/e1000.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ enum e1000_boards {
132132
board_pchlan,
133133
board_pch2lan,
134134
board_pch_lpt,
135+
board_pch_spt
135136
};
136137

137138
struct e1000_ps_page {
@@ -501,6 +502,7 @@ extern const struct e1000_info e1000_ich10_info;
501502
extern const struct e1000_info e1000_pch_info;
502503
extern const struct e1000_info e1000_pch2_info;
503504
extern const struct e1000_info e1000_pch_lpt_info;
505+
extern const struct e1000_info e1000_pch_spt_info;
504506
extern const struct e1000_info e1000_es2_info;
505507

506508
void e1000e_ptp_init(struct e1000_adapter *adapter);

‎drivers/net/ethernet/intel/e1000e/ethtool.c‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -896,18 +896,20 @@ static int e1000_reg_test(struct e1000_adapter *adapter, u64 *data)
896896
case e1000_pchlan:
897897
case e1000_pch2lan:
898898
case e1000_pch_lpt:
899+
case e1000_pch_spt:
899900
mask |= (1 << 18);
900901
break;
901902
default:
902903
break;
903904
}
904905

905-
if (mac->type == e1000_pch_lpt)
906+
if ((mac->type == e1000_pch_lpt) || (mac->type == e1000_pch_spt))
906907
wlock_mac = (er32(FWSM) & E1000_FWSM_WLOCK_MAC_MASK) >>
907908
E1000_FWSM_WLOCK_MAC_SHIFT;
908909

909910
for (i = 0; i < mac->rar_entry_count; i++) {
910-
if (mac->type == e1000_pch_lpt) {
911+
if ((mac->type == e1000_pch_lpt) ||
912+
(mac->type == e1000_pch_spt)) {
911913
/* Cannot test write-protected SHRAL[n] registers */
912914
if ((wlock_mac == 1) || (wlock_mac && (i > wlock_mac)))
913915
continue;

‎drivers/net/ethernet/intel/e1000e/hw.h‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ struct e1000_hw;
8787
#define E1000_DEV_ID_PCH_I218_V2 0x15A1
8888
#define E1000_DEV_ID_PCH_I218_LM3 0x15A2 /* Wildcat Point PCH */
8989
#define E1000_DEV_ID_PCH_I218_V3 0x15A3 /* Wildcat Point PCH */
90+
#define E1000_DEV_ID_PCH_SPT_I219_LM 0x156F /* SPT PCH */
91+
#define E1000_DEV_ID_PCH_SPT_I219_V 0x1570 /* SPT PCH */
92+
#define E1000_DEV_ID_PCH_SPT_I219_LM2 0x15B7 /* SPT-H PCH */
93+
#define E1000_DEV_ID_PCH_SPT_I219_V2 0x15B8 /* SPT-H PCH */
9094

9195
#define E1000_REVISION_4 4
9296

@@ -108,6 +112,7 @@ enum e1000_mac_type {
108112
e1000_pchlan,
109113
e1000_pch2lan,
110114
e1000_pch_lpt,
115+
e1000_pch_spt,
111116
};
112117

113118
enum e1000_media_type {
@@ -153,6 +158,7 @@ enum e1000_bus_width {
153158
e1000_bus_width_pcie_x1,
154159
e1000_bus_width_pcie_x2,
155160
e1000_bus_width_pcie_x4 = 4,
161+
e1000_bus_width_pcie_x8 = 8,
156162
e1000_bus_width_32,
157163
e1000_bus_width_64,
158164
e1000_bus_width_reserved

0 commit comments

Comments
 (0)