Skip to content

Commit d78a5eb

Browse files
committed
Merge branch '1GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/net-queue
Jeff Kirsher says: ==================== Intel Wired LAN Driver Fixes 2018-11-28 This series contains fixes to igb, ixgbe and i40e. Yunjian Wang from Huawei resolves a variable that could potentially be NULL before it is used. Lihong fixes an i40e issue which goes back to 4.17 kernels, where deleting any of the MAC filters was causing the incorrect syncing for the PF. Josh Elsasser caught that there were missing enum values in the link capabilities for x550 devices, which was preventing link for 1000BaseLX SFP modules. Jan fixes the function header comments for XSK methods. ==================== Signed-off-by: David S. Miller <[email protected]>
2 parents 9a764c1 + 529eb36 commit d78a5eb

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

drivers/net/ethernet/intel/i40e/i40e_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1413,7 +1413,7 @@ void __i40e_del_filter(struct i40e_vsi *vsi, struct i40e_mac_filter *f)
14131413
}
14141414

14151415
vsi->flags |= I40E_VSI_FLAG_FILTER_CHANGED;
1416-
set_bit(__I40E_MACVLAN_SYNC_PENDING, vsi->state);
1416+
set_bit(__I40E_MACVLAN_SYNC_PENDING, vsi->back->state);
14171417
}
14181418

14191419
/**

drivers/net/ethernet/intel/i40e/i40e_xsk.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ static int i40e_alloc_xsk_umems(struct i40e_vsi *vsi)
3333
}
3434

3535
/**
36-
* i40e_add_xsk_umem - Store an UMEM for a certain ring/qid
36+
* i40e_add_xsk_umem - Store a UMEM for a certain ring/qid
3737
* @vsi: Current VSI
3838
* @umem: UMEM to store
3939
* @qid: Ring/qid to associate with the UMEM
@@ -56,7 +56,7 @@ static int i40e_add_xsk_umem(struct i40e_vsi *vsi, struct xdp_umem *umem,
5656
}
5757

5858
/**
59-
* i40e_remove_xsk_umem - Remove an UMEM for a certain ring/qid
59+
* i40e_remove_xsk_umem - Remove a UMEM for a certain ring/qid
6060
* @vsi: Current VSI
6161
* @qid: Ring/qid associated with the UMEM
6262
**/
@@ -130,7 +130,7 @@ static void i40e_xsk_umem_dma_unmap(struct i40e_vsi *vsi, struct xdp_umem *umem)
130130
}
131131

132132
/**
133-
* i40e_xsk_umem_enable - Enable/associate an UMEM to a certain ring/qid
133+
* i40e_xsk_umem_enable - Enable/associate a UMEM to a certain ring/qid
134134
* @vsi: Current VSI
135135
* @umem: UMEM
136136
* @qid: Rx ring to associate UMEM to
@@ -189,7 +189,7 @@ static int i40e_xsk_umem_enable(struct i40e_vsi *vsi, struct xdp_umem *umem,
189189
}
190190

191191
/**
192-
* i40e_xsk_umem_disable - Diassociate an UMEM from a certain ring/qid
192+
* i40e_xsk_umem_disable - Disassociate a UMEM from a certain ring/qid
193193
* @vsi: Current VSI
194194
* @qid: Rx ring to associate UMEM to
195195
*
@@ -255,12 +255,12 @@ int i40e_xsk_umem_query(struct i40e_vsi *vsi, struct xdp_umem **umem,
255255
}
256256

257257
/**
258-
* i40e_xsk_umem_query - Queries a certain ring/qid for its UMEM
258+
* i40e_xsk_umem_setup - Enable/disassociate a UMEM to/from a ring/qid
259259
* @vsi: Current VSI
260260
* @umem: UMEM to enable/associate to a ring, or NULL to disable
261261
* @qid: Rx ring to (dis)associate UMEM (from)to
262262
*
263-
* This function enables or disables an UMEM to a certain ring.
263+
* This function enables or disables a UMEM to a certain ring.
264264
*
265265
* Returns 0 on success, <0 on failure
266266
**/
@@ -276,7 +276,7 @@ int i40e_xsk_umem_setup(struct i40e_vsi *vsi, struct xdp_umem *umem,
276276
* @rx_ring: Rx ring
277277
* @xdp: xdp_buff used as input to the XDP program
278278
*
279-
* This function enables or disables an UMEM to a certain ring.
279+
* This function enables or disables a UMEM to a certain ring.
280280
*
281281
* Returns any of I40E_XDP_{PASS, CONSUMED, TX, REDIR}
282282
**/

drivers/net/ethernet/intel/igb/e1000_i210.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -842,6 +842,7 @@ s32 igb_pll_workaround_i210(struct e1000_hw *hw)
842842
nvm_word = E1000_INVM_DEFAULT_AL;
843843
tmp_nvm = nvm_word | E1000_INVM_PLL_WO_VAL;
844844
igb_write_phy_reg_82580(hw, I347AT4_PAGE_SELECT, E1000_PHY_PLL_FREQ_PAGE);
845+
phy_word = E1000_PHY_PLL_UNCONF;
845846
for (i = 0; i < E1000_MAX_PLL_TRIES; i++) {
846847
/* check current state directly from internal PHY */
847848
igb_read_phy_reg_82580(hw, E1000_PHY_PLL_FREQ_REG, &phy_word);

drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2262,7 +2262,9 @@ static s32 ixgbe_get_link_capabilities_X550em(struct ixgbe_hw *hw,
22622262
*autoneg = false;
22632263

22642264
if (hw->phy.sfp_type == ixgbe_sfp_type_1g_sx_core0 ||
2265-
hw->phy.sfp_type == ixgbe_sfp_type_1g_sx_core1) {
2265+
hw->phy.sfp_type == ixgbe_sfp_type_1g_sx_core1 ||
2266+
hw->phy.sfp_type == ixgbe_sfp_type_1g_lx_core0 ||
2267+
hw->phy.sfp_type == ixgbe_sfp_type_1g_lx_core1) {
22662268
*speed = IXGBE_LINK_SPEED_1GB_FULL;
22672269
return 0;
22682270
}

0 commit comments

Comments
 (0)