diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2021-02-02 10:26:09 -0800 | 
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-02-02 10:26:09 -0800 | 
| commit | a9925628727bbbfbd7263cf7c7791709af84296e (patch) | |
| tree | a6278594b63024090f305fa2b1bedfcafe25f5f9 /drivers/net/ethernet/intel/igc | |
| parent | 88bb507a74ea7d75fa49edd421eaa710a7d80598 (diff) | |
| parent | 6c9f18f294c4a1a6d8b1097e39c325481664ee1c (diff) | |
Merge tag 'net-5.11-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
Pull networking fixes from Jakub Kicinski:
 "Networking fixes for 5.11-rc7, including fixes from bpf and mac80211
  trees.
  Current release - regressions:
   - ip_tunnel: fix mtu calculation
   - mlx5: fix function calculation for page trees
  Previous releases - regressions:
   - vsock: fix the race conditions in multi-transport support
   - neighbour: prevent a dead entry from updating gc_list
   - dsa: mv88e6xxx: override existent unicast portvec in port_fdb_add
  Previous releases - always broken:
   - bpf, cgroup: two copy_{from,to}_user() warn_on_once splats for BPF
     cgroup getsockopt infra when user space is trying to race against
     optlen, from Loris Reiff.
   - bpf: add missing fput() in BPF inode storage map update helper
   - udp: ipv4: manipulate network header of NATed UDP GRO fraglist
   - mac80211: fix station rate table updates on assoc
   - r8169: work around RTL8125 UDP HW bug
   - igc: report speed and duplex as unknown when device is runtime
     suspended
   - rxrpc: fix deadlock around release of dst cached on udp tunnel"
* tag 'net-5.11-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (36 commits)
  net: hsr: align sup_multicast_addr in struct hsr_priv to u16 boundary
  net: ipa: fix two format specifier errors
  net: ipa: use the right accessor in ipa_endpoint_status_skip()
  net: ipa: be explicit about endianness
  net: ipa: add a missing __iomem attribute
  net: ipa: pass correct dma_handle to dma_free_coherent()
  r8169: fix WoL on shutdown if CONFIG_DEBUG_SHIRQ is set
  net/rds: restrict iovecs length for RDS_CMSG_RDMA_ARGS
  net: mvpp2: TCAM entry enable should be written after SRAM data
  net: lapb: Copy the skb before sending a packet
  net/mlx5e: Release skb in case of failure in tc update skb
  net/mlx5e: Update max_opened_tc also when channels are closed
  net/mlx5: Fix leak upon failure of rule creation
  net/mlx5: Fix function calculation for page trees
  docs: networking: swap words in icmp_errors_use_inbound_ifaddr doc
  udp: ipv4: manipulate network header of NATed UDP GRO fraglist
  net: ip_tunnel: fix mtu calculation
  vsock: fix the race conditions in multi-transport support
  net: sched: replaced invalid qdisc tree flush helper in qdisc_replace
  ibmvnic: device remove has higher precedence over reset
  ...
Diffstat (limited to 'drivers/net/ethernet/intel/igc')
| -rw-r--r-- | drivers/net/ethernet/intel/igc/igc_ethtool.c | 3 | ||||
| -rw-r--r-- | drivers/net/ethernet/intel/igc/igc_i225.c | 3 | ||||
| -rw-r--r-- | drivers/net/ethernet/intel/igc/igc_mac.c | 2 | 
3 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/ethernet/intel/igc/igc_ethtool.c b/drivers/net/ethernet/intel/igc/igc_ethtool.c index 831f2f09de5f..ec8cd69d4992 100644 --- a/drivers/net/ethernet/intel/igc/igc_ethtool.c +++ b/drivers/net/ethernet/intel/igc/igc_ethtool.c @@ -1714,7 +1714,8 @@ static int igc_ethtool_get_link_ksettings(struct net_device *netdev,  						     Asym_Pause);  	} -	status = rd32(IGC_STATUS); +	status = pm_runtime_suspended(&adapter->pdev->dev) ? +		 0 : rd32(IGC_STATUS);  	if (status & IGC_STATUS_LU) {  		if (status & IGC_STATUS_SPEED_1000) { diff --git a/drivers/net/ethernet/intel/igc/igc_i225.c b/drivers/net/ethernet/intel/igc/igc_i225.c index 8b67d9b49a83..7ec04e48860c 100644 --- a/drivers/net/ethernet/intel/igc/igc_i225.c +++ b/drivers/net/ethernet/intel/igc/igc_i225.c @@ -219,9 +219,9 @@ static s32 igc_write_nvm_srwr(struct igc_hw *hw, u16 offset, u16 words,  			      u16 *data)  {  	struct igc_nvm_info *nvm = &hw->nvm; +	s32 ret_val = -IGC_ERR_NVM;  	u32 attempts = 100000;  	u32 i, k, eewr = 0; -	s32 ret_val = 0;  	/* A check for invalid values:  offset too large, too many words,  	 * too many words for the offset, and not enough words. @@ -229,7 +229,6 @@ static s32 igc_write_nvm_srwr(struct igc_hw *hw, u16 offset, u16 words,  	if (offset >= nvm->word_size || (words > (nvm->word_size - offset)) ||  	    words == 0) {  		hw_dbg("nvm parameter(s) out of bounds\n"); -		ret_val = -IGC_ERR_NVM;  		goto out;  	} diff --git a/drivers/net/ethernet/intel/igc/igc_mac.c b/drivers/net/ethernet/intel/igc/igc_mac.c index 09cd0ec7ee87..67b8ffd21d8a 100644 --- a/drivers/net/ethernet/intel/igc/igc_mac.c +++ b/drivers/net/ethernet/intel/igc/igc_mac.c @@ -638,7 +638,7 @@ s32 igc_config_fc_after_link_up(struct igc_hw *hw)  	}  out: -	return 0; +	return ret_val;  }  /**  | 
