All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net 00/15] netpoll: avoid capture effects for NAPI drivers
@ 2018-09-21 22:27 Eric Dumazet
  2018-09-21 22:27 ` [PATCH net 01/15] netpoll: make ndo_poll_controller() optional Eric Dumazet
                   ` (16 more replies)
  0 siblings, 17 replies; 34+ messages in thread
From: Eric Dumazet @ 2018-09-21 22:27 UTC (permalink / raw)
  To: David S . Miller
  Cc: netdev, Eric Dumazet, Michael Chan, Ariel Elior, Eric Dumazet,
	Tariq Toukan, Saeed Mahameed, Jeff Kirsher, Jakub Kicinski,
	Song Liu, Jay Vosburgh, Veaceslav Falico, Andy Gospodarek

As diagnosed by Song Liu, ndo_poll_controller() can
be very dangerous on loaded hosts, since the cpu
calling ndo_poll_controller() might steal all NAPI
contexts (for all RX/TX queues of the NIC).

This capture, showing one ksoftirqd eating all cycles
can last for unlimited amount of time, since one
cpu is generally not able to drain all the queues under load.

It seems that all networking drivers that do use NAPI
for their TX completions, should not provide a ndo_poll_controller() :

Most NAPI drivers have netpoll support already handled
in core networking stack, since netpoll_poll_dev()
uses poll_napi(dev) to iterate through registered
NAPI contexts for a device.

This patch series take care of the first round, we will
handle other drivers in future rounds.

Eric Dumazet (15):
  netpoll: make ndo_poll_controller() optional
  bonding: use netpoll_poll_dev() helper
  ixgbe: remove ndo_poll_controller
  ixgbevf: remove ndo_poll_controller
  fm10k: remove ndo_poll_controller
  ixgb: remove ndo_poll_controller
  igb: remove ndo_poll_controller
  ice: remove ndo_poll_controller
  i40evf: remove ndo_poll_controller
  mlx4: remove ndo_poll_controller
  mlx5: remove ndo_poll_controller
  bnx2x: remove ndo_poll_controller
  bnxt: remove ndo_poll_controller
  nfp: remove ndo_poll_controller
  tun: remove ndo_poll_controller

 drivers/net/bonding/bond_main.c               | 11 +----
 .../net/ethernet/broadcom/bnx2x/bnx2x_main.c  | 16 -------
 drivers/net/ethernet/broadcom/bnxt/bnxt.c     | 18 --------
 drivers/net/ethernet/intel/fm10k/fm10k.h      |  3 --
 .../net/ethernet/intel/fm10k/fm10k_netdev.c   |  3 --
 drivers/net/ethernet/intel/fm10k/fm10k_pci.c  | 22 ----------
 .../net/ethernet/intel/i40evf/i40evf_main.c   | 26 -----------
 drivers/net/ethernet/intel/ice/ice_main.c     | 27 ------------
 drivers/net/ethernet/intel/igb/igb_main.c     | 30 -------------
 drivers/net/ethernet/intel/ixgb/ixgb_main.c   | 25 -----------
 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 25 -----------
 .../net/ethernet/intel/ixgbevf/ixgbevf_main.c | 21 ---------
 .../net/ethernet/mellanox/mlx4/en_netdev.c    | 20 ---------
 .../net/ethernet/mellanox/mlx5/core/en_main.c | 19 --------
 .../ethernet/netronome/nfp/nfp_net_common.c   | 18 --------
 drivers/net/tun.c                             | 43 -------------------
 include/linux/netpoll.h                       |  5 ++-
 net/core/netpoll.c                            | 19 +++-----
 18 files changed, 12 insertions(+), 339 deletions(-)

-- 
2.19.0.444.g18242da7ef-goog

^ permalink raw reply	[flat|nested] 34+ messages in thread

end of thread, other threads:[~2018-09-26  5:46 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-21 22:27 [PATCH net 00/15] netpoll: avoid capture effects for NAPI drivers Eric Dumazet
2018-09-21 22:27 ` [PATCH net 01/15] netpoll: make ndo_poll_controller() optional Eric Dumazet
2018-09-21 22:27 ` [PATCH net 02/15] bonding: use netpoll_poll_dev() helper Eric Dumazet
2018-09-22 10:23   ` Jay Vosburgh
2018-09-21 22:27 ` [PATCH net 03/15] ixgbe: remove ndo_poll_controller Eric Dumazet
2018-09-21 22:27 ` [PATCH net 04/15] ixgbevf: " Eric Dumazet
2018-09-21 22:27 ` [PATCH net 05/15] fm10k: " Eric Dumazet
2018-09-21 22:27 ` [PATCH net 06/15] ixgb: " Eric Dumazet
2018-09-21 22:27 ` [PATCH net 07/15] igb: " Eric Dumazet
2018-09-21 22:27 ` [PATCH net 08/15] ice: " Eric Dumazet
2018-09-21 22:27 ` [PATCH net 09/15] i40evf: " Eric Dumazet
2018-09-21 22:27 ` [PATCH net 10/15] mlx4: " Eric Dumazet
2018-09-21 22:27 ` [PATCH net 11/15] mlx5: " Eric Dumazet
2018-09-21 22:27 ` [PATCH net 12/15] bnx2x: " Eric Dumazet
2018-09-21 22:27 ` [PATCH net 13/15] bnxt: " Eric Dumazet
2018-09-21 22:27 ` [PATCH net 14/15] nfp: " Eric Dumazet
2018-09-21 23:41   ` Jakub Kicinski
2018-09-21 22:27 ` [PATCH net 15/15] tun: " Eric Dumazet
2018-09-23 19:29 ` [PATCH net 00/15] netpoll: avoid capture effects for NAPI drivers David Miller
2018-09-23 19:47   ` Eric Dumazet
2018-09-24  5:04 ` David Miller
2018-09-24 15:30   ` Eric Dumazet
2018-09-24 19:30     ` Song Liu
2018-09-24 19:41       ` Eric Dumazet
2018-09-24 20:00         ` Song Liu
2018-09-24 20:56           ` Eric Dumazet
2018-09-24 21:05             ` Eric Dumazet
2018-09-24 21:18               ` Song Liu
2018-09-25 14:02                 ` Michael Chan
2018-09-25 14:20                   ` Eric Dumazet
2018-09-25 14:43                     ` Michael Chan
2018-09-25 18:25                       ` Song Liu
2018-09-25 21:09                         ` Michael Chan
2018-09-25 23:36     ` Song Liu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.