Skip to content

net: make dev_watchdog() less intrusive

Eric Dumazet netdev oe-kbuild-all 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesApplied 4/4

Patches in v1 All 4 applied

#Subject and filesSizeRepliesApplied
1/4net: use an atomic_long_t for queue->trans_timeoutinclude/linux/netdevice.h net/core/net-sysfs.c net/sched/sch_generic.c+3 -70 repliesApplied
2/4net: annotate accesses to queue->trans_startdrivers/net/ethernet/apm/xgene/xgene_enet_main.c drivers/net/ethernet/atheros/ag71xx.c drivers/net/ethernet/freescale/dpaa/dpaa_eth.c +11 more+33 -230 repliesApplied
3/4net: do not inline netif_tx_lock()/netif_tx_unlock()include/linux/netdevice.h net/sched/sch_generic.c+53 -370 repliesApplied
4/4net: no longer stop all TX queues in dev_watchdog()net/sched/sch_generic.c+5 -30 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 0/4] net: make dev_watchdog() less intrusive

From: Eric Dumazet <[email protected]>

dev_watchdog() is used on many NIC to periodically monitor TX queues to detect hangs.

Problem is : It stops all queues, then check them, then 'unfreeze' them.

Not only this stops feeding the NIC, it also migrates all qdiscs to be serviced on the cpu calling netif_tx_unlock(), causing a potential latency artifact.

With many TX queues, this is becoming more visible.

Eric Dumazet (4):
net: use an atomic_long_t for queue->trans_timeout
net: annotate accesses to queue->trans_start
net: do not inline netif_tx_lock()/netif_tx_unlock()
net: no longer stop all TX queues in dev_watchdog()

 .../net/ethernet/apm/xgene/xgene_enet_main.c  |  2 +-
 drivers/net/ethernet/atheros/ag71xx.c         |  2 +-
 .../net/ethernet/freescale/dpaa/dpaa_eth.c    |  4 +-
 .../net/ethernet/hisilicon/hns3/hns3_enet.c   |  2 +-
 drivers/net/ethernet/ibm/ibmvnic.c            |  2 +-
 drivers/net/ethernet/intel/igb/igb_main.c     |  4 +-
 .../mellanox/mlx5/core/en/reporter_tx.c       |  2 +-
 .../net/ethernet/stmicro/stmmac/stmmac_main.c |  6 +-
 drivers/net/ethernet/ti/am65-cpsw-nuss.c      |  2 +-
 drivers/net/virtio_net.c                      |  2 +-
 drivers/net/wireless/marvell/mwifiex/init.c   |  2 +-
 drivers/staging/rtl8192e/rtllib_softmac.c     |  2 +-
 include/linux/netdevice.h                     | 57 +++++----------
 net/core/net-sysfs.c                          |  6 +-
 net/sched/sch_generic.c                       | 69 ++++++++++++++++---
 15 files changed, 94 insertions(+), 70 deletions(-)
Signature · 1 line
2.34.0.rc1.387.gb447b232ab-goog