Skip to content

Commit f4d641a

Browse files
committed
Merge branch '10GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/net-queue
Jeff Kirsher says: ==================== Intel Wired LAN Driver Updates 2018-05-11 This series contains fixes to the ice, ixgbe and ixgbevf drivers. Jeff Shaw provides a fix to ensure rq_last_status gets set, whether or not the hardware responds with an error in the ice driver. Emil adds a check for unsupported module during the reset routine for ixgbe. Luc Van Oostenryck fixes ixgbevf_xmit_frame() where it was not using the correct return value (int). Colin Ian King fixes a potential resource leak in ixgbe, where we were not freeing ipsec in our cleanup path. ==================== Signed-off-by: David S. Miller <[email protected]>
2 parents f010089 + c89ebb9 commit f4d641a

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

drivers/net/ethernet/intel/ice/ice_controlq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1014,10 +1014,10 @@ ice_clean_rq_elem(struct ice_hw *hw, struct ice_ctl_q_info *cq,
10141014
desc = ICE_CTL_Q_DESC(cq->rq, ntc);
10151015
desc_idx = ntc;
10161016

1017+
cq->rq_last_status = (enum ice_aq_err)le16_to_cpu(desc->retval);
10171018
flags = le16_to_cpu(desc->flags);
10181019
if (flags & ICE_AQ_FLAG_ERR) {
10191020
ret_code = ICE_ERR_AQ_ERROR;
1020-
cq->rq_last_status = (enum ice_aq_err)le16_to_cpu(desc->retval);
10211021
ice_debug(hw, ICE_DBG_AQ_MSG,
10221022
"Control Receive Queue Event received with error 0x%x\n",
10231023
cq->rq_last_status);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -943,8 +943,8 @@ void ixgbe_init_ipsec_offload(struct ixgbe_adapter *adapter)
943943
kfree(ipsec->ip_tbl);
944944
kfree(ipsec->rx_tbl);
945945
kfree(ipsec->tx_tbl);
946+
kfree(ipsec);
946947
err1:
947-
kfree(adapter->ipsec);
948948
netdev_err(adapter->netdev, "Unable to allocate memory for SA tables");
949949
}
950950

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3427,6 +3427,9 @@ static s32 ixgbe_reset_hw_X550em(struct ixgbe_hw *hw)
34273427
hw->phy.sfp_setup_needed = false;
34283428
}
34293429

3430+
if (status == IXGBE_ERR_SFP_NOT_SUPPORTED)
3431+
return status;
3432+
34303433
/* Reset PHY */
34313434
if (!hw->phy.reset_disable && hw->phy.ops.reset)
34323435
hw->phy.ops.reset(hw);

drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4137,7 +4137,7 @@ static int ixgbevf_xmit_frame_ring(struct sk_buff *skb,
41374137
return NETDEV_TX_OK;
41384138
}
41394139

4140-
static int ixgbevf_xmit_frame(struct sk_buff *skb, struct net_device *netdev)
4140+
static netdev_tx_t ixgbevf_xmit_frame(struct sk_buff *skb, struct net_device *netdev)
41414141
{
41424142
struct ixgbevf_adapter *adapter = netdev_priv(netdev);
41434143
struct ixgbevf_ring *tx_ring;

0 commit comments

Comments
 (0)