Intel Wired LAN Driver Updates 2023-05-18 (igc, igb, e1000e)
Subsystems (4)
Tony Nguyen
maintainerThis series contains updates to igc, igb, and e1000e drivers.
Kurt Kanzenbach adds calls to txq_trans_cond_update() for XDP transmit on igc.
Tom Rix makes definition of igb_pm_ops conditional on CONFIG_PM for igb.
Baozhu Ni adds a missing kdoc description on e1000e.
The following are changes since commit 02f8fc1a67c160b2faab2c9e9439026deb076971:
Merge branch 'net-lan966x-add-support-for-pcp-dei-dscp'
and are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue 1GbE
Baozhu Ni (1):
e1000e: Add @adapter description to kdoc
Kurt Kanzenbach (1):
igc: Avoid transmit queue timeout for XDP
Tom Rix (1):
igb: Define igb_pm_ops conditionally on CONFIG_PM
drivers/net/ethernet/intel/e1000e/netdev.c | 2 +- drivers/net/ethernet/intel/igb/igb_main.c | 2 ++ drivers/net/ethernet/intel/igc/igc_main.c | 8 ++++++++ 3 files changed, 11 insertions(+), 1 deletion(-)
Signature · 1 line
2.38.1
Tony Nguyen
maintainerPATCH 1/3 igc: Avoid transmit queue timeout for XDP
From: Kurt Kanzenbach <[email protected]>
High XDP load triggers the netdev watchdog:
|NETDEV WATCHDOG: enp3s0 (igc): transmit queue 2 timed out
The reason is the Tx queue transmission start (txq->trans_start) is not updated in XDP code path. Therefore, add it for all XDP transmission functions.
--- drivers/net/ethernet/intel/igc/igc_main.c | 8 ++++++++ 1 file changed, 8 insertions(+)
drivers/net/ethernet/intel/igc/igc_main.c +8 -0
@@ -2411,6 +2411,8 @@ static int igc_xdp_xmit_back(struct igc_adapter *adapter, struct xdp_buff *xdp) nq =txring_txq (ring);__netif_tx_lock (nq, cpu); +/* Avoid transmit queue timeout since we share it with the slow path */ +txq_trans_cond_update (nq); res =igc_xdp_init_tx_descriptor (ring, xdpf);__netif_tx_unlock (nq);return res;
@@ -2829,6 +2831,9 @@ static void igc_xdp_xmit_zc(struct igc_ring *ring)__netif_tx_lock (nq, cpu); +/* Avoid transmit queue timeout since we share it with the slow path */ +txq_trans_cond_update (nq); + budget =igc_desc_unused (ring);while (xsk_tx_peek_desc (pool, &xdp_desc) && budget--) {
@@ -6354,6 +6359,9 @@ static int igc_xdp_xmit(struct net_device *dev, int num_frames,__netif_tx_lock (nq, cpu); +/* Avoid transmit queue timeout since we share it with the slow path */ +txq_trans_cond_update (nq); + drops =0 ;for (i =0 ; i < num_frames; i++) {int err;
Signature · 1 line
2.38.1
Tony Nguyen
maintainerPATCH 2/3 igb: Define igb_pm_ops conditionally on CONFIG_PM
In reply to Tony NguyenFrom: Tom Rix <[email protected]>
For s390, gcc with W=1 reports drivers/net/ethernet/intel/igb/igb_main.c:186:32: error:
'igb_pm_ops' defined but not used [-Werror=unused-const-variable=]
186 | static const struct dev_pm_ops igb_pm_ops = {
| ^~~~~~~~~~The only use of igb_pm_ops is conditional on CONFIG_PM. The definition of igb_pm_ops should also be conditional on CONFIG_PM
--- drivers/net/ethernet/intel/igb/igb_main.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/net/ethernet/intel/igb/igb_main.c +2 -0
@@ -183,11 +183,13 @@ static int igb_resume(struct device *);static int igb_runtime_suspend (struct device *dev);static int igb_runtime_resume (struct device *dev);static int igb_runtime_idle (struct device *dev); +#ifdef CONFIG_PM static const struct dev_pm_ops igb_pm_ops = { SET_SYSTEM_SLEEP_PM_OPS(igb_suspend, igb_resume)SET_RUNTIME_PM_OPS (igb_runtime_suspend, igb_runtime_resume, igb_runtime_idle) }; +#endif static void igb_shutdown (struct pci_dev *);static int igb_pci_sriov_configure (struct pci_dev *dev,int num_vfs);#ifdef CONFIG_IGB_DCA
Signature · 1 line
2.38.1
Tony Nguyen
maintainerPATCH 3/3 e1000e: Add @adapter description to kdoc
In reply to Tony NguyenFrom: Baozhu Ni <[email protected]>
Provide a description for the kernel doc of the @adapter of e1000e_trigger_lsc()
--- drivers/net/ethernet/intel/e1000e/netdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/e1000e/netdev.c +1 -1
@@ -4198,7 +4198,7 @@ void e1000e_reset(struct e1000_adapter *adapter)/** * e1000e_trigger_lsc - trigger an LSC interrupt -* @adapter: +* @adapter: board private structure * * Fire a link status change interrupt to start the watchdog. **/
Signature · 1 line
2.38.1
This series was applied to netdev/net-next.git (main) by Tony Nguyen <[email protected]>:
Hello:
This series was applied to netdev/net-next.git (main) by Tony Nguyen <[email protected]>:
Quoted 8 lines · On Thu, 18 May 2023 10:09:39 -0700 you wrote:
This series contains updates to igc, igb, and e1000e drivers.
Kurt Kanzenbach adds calls to
txq_trans_cond_update()for XDP transmit on igc.Tom Rix makes definition of
igb_pm_opsconditional onCONFIG_PMfor igb.[...]
Here is the summary with links:
- [net-next,1/3] igc: Avoid transmit queue timeout for XDP
https://git.kernel.org/netdev/net-next/c/95b681485563 - [net-next,2/3] igb: Define igb_pm_ops conditionally on CONFIG_PM https://git.kernel.org/netdev/net-next/c/7271522b729b - [net-next,3/3] e1000e: Add @adapter description to kdoc https://git.kernel.org/netdev/net-next/c/c4dc8dc32bd1
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html