All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next v3 0/6] Add adaptive interrupt coalescing
@ 2020-07-21  7:55 Claudiu Manoil
  2020-07-21  7:55 ` [PATCH net-next v3 1/6] enetc: Refine buffer descriptor ring sizes Claudiu Manoil
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Claudiu Manoil @ 2020-07-21  7:55 UTC (permalink / raw)
  To: David S . Miller; +Cc: Jakub Kicinski, netdev

Apart from some related cleanup patches, this set
introduces in a straightforward way the support needed
to enable and configure interrupt coalescing for ENETC.

Patch 5 introduces the support needed for configuring the
interrupt coalescing parameters and for switching between
moderated (int. coalescing) and per-packet interrupt modes.
When interrupt coalescing is enabled the Rx/Tx time
thresholds are configurable, packet thresholds are fixed.
To make this work reliably, patch 5 uses the traffic
pause procedure introduced in patch 2.

Patch 6 adds DIM (Dynamic Interrupt Moderation) to implement
adaptive coalescing based on time thresholds, for the Rx 'channel'.
On the Tx side a default optimal value is used instead, optimized for
TCP traffic over 1G and 2.5G links.  This default 'optimal' value can
be overridden anytime via 'ethtool -C tx-usecs'.

netperf -t TCP_MAERTS measurements show a significant CPU load
reduction correlated w/ reduced interrupt rates. For the
measurement results refer to the comments in patch 6.

v2: Replaced Tx DIM with predefined optimal value, giving
better results. This was also suggested by Jakub (cc).
Switched order of patches 4 and 5, for better grouping.

v3: minor cleanup/improvements

Claudiu Manoil (6):
  enetc: Refine buffer descriptor ring sizes
  enetc: Factor out the traffic start/stop procedures
  enetc: Fix interrupt coalescing register naming
  enetc: Drop redundant ____cacheline_aligned_in_smp
  enetc: Add interrupt coalescing support
  enetc: Add adaptive interrupt coalescing

 drivers/net/ethernet/freescale/enetc/Kconfig  |   2 +
 drivers/net/ethernet/freescale/enetc/enetc.c  | 156 ++++++++++++++----
 drivers/net/ethernet/freescale/enetc/enetc.h  |  36 +++-
 .../ethernet/freescale/enetc/enetc_ethtool.c  |  84 +++++++++-
 .../net/ethernet/freescale/enetc/enetc_hw.h   |  23 ++-
 5 files changed, 257 insertions(+), 44 deletions(-)

-- 
2.17.1


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

end of thread, other threads:[~2020-07-21 22:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-21  7:55 [PATCH net-next v3 0/6] Add adaptive interrupt coalescing Claudiu Manoil
2020-07-21  7:55 ` [PATCH net-next v3 1/6] enetc: Refine buffer descriptor ring sizes Claudiu Manoil
2020-07-21  7:55 ` [PATCH net-next v3 2/6] enetc: Factor out the traffic start/stop procedures Claudiu Manoil
2020-07-21  7:55 ` [PATCH net-next v3 3/6] enetc: Fix interrupt coalescing register naming Claudiu Manoil
2020-07-21  7:55 ` [PATCH net-next v3 4/6] enetc: Drop redundant ____cacheline_aligned_in_smp Claudiu Manoil
2020-07-21  7:55 ` [PATCH net-next v3 5/6] enetc: Add interrupt coalescing support Claudiu Manoil
2020-07-21  7:55 ` [PATCH net-next v3 6/6] enetc: Add adaptive interrupt coalescing Claudiu Manoil
2020-07-21 19:23 ` [PATCH net-next v3 0/6] " Jakub Kicinski
2020-07-21 22:38 ` David Miller

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.