Skip to content

net: xilinx: axienet: Enable adaptive IRQ coalescing with DIM

Sean Anderson linux-arm-kernel lkml netdev 5 versions – Applied

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest4 patches 0 repliesApplied 4/4
  2. v46 patches 3 repliesSuperseded 2 of 6 applied
  3. v36 patches 5 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v2 RFC6 patches4 repliesSuperseded
v12 patches5 repliesSuperseded

Changes in v5 from the cover letter

- Move axienet_coalesce_params doc fix to correct patch
- Rebase onto net-next/master

Patches in v5 All 4 applied

#Subject and filesSizeRepliesApplied
1/4net: xilinx: axienet: Combine CR calculationdrivers/net/ethernet/xilinx/xilinx_axienet.h drivers/net/ethernet/xilinx/xilinx_axienet_main.c+34 -330 repliesApplied
2/4net: xilinx: axienet: Support adjusting coalesce settings while runningdrivers/net/ethernet/xilinx/xilinx_axienet.h drivers/net/ethernet/xilinx/xilinx_axienet_main.c+119 -230 repliesApplied
3/4net: xilinx: axienet: Get coalesce parameters from driver statedrivers/net/ethernet/xilinx/xilinx_axienet.h drivers/net/ethernet/xilinx/xilinx_axienet_main.c+47 -310 repliesApplied
4/4net: xilinx: axienet: Enable adaptive IRQ coalescing with DIMdrivers/net/ethernet/xilinx/Kconfig drivers/net/ethernet/xilinx/xilinx_axienet.h drivers/net/ethernet/xilinx/xilinx_axienet_main.c+82 -90 repliesApplied

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchShannon Nelson
1/4R-b
2/4R-b
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH net-next v5 0/4] net: xilinx: axienet: Enable adaptive IRQ coalescing with DIM

To improve performance without sacrificing latency under low load, enable DIM. While I appreciate not having to write the library myself, I do think there are many unusual aspects to DIM, as detailed in the last patch.

Changes in v5:
- Move axienet_coalesce_params doc fix to correct patch
- Rebase onto net-next/master

Changes in v4:
- Rebase onto net-next/master
- Fix incorrect function name in doc comment for axienet_coalesce_params

Changes in v3:
- Fix mismatched parameter name documentation for axienet_calc_cr
- Integrate some cleanups originally included in
https://lore.kernel.org/netdev/[email protected]/
- Move spin (un)locking in IRQs inside the if condition of napi_schedule_prep. This lets us hold the lock just for the rmw.
- Fix function name in doc comments for axienet_update_coalesce_rx/tx
- Adjust axienet_local doc comment order to match the members
- Rebase onto net-next/master

Changes in v2:
- Don't use spin_lock_irqsave when we know the context
- Split the CR calculation refactor from runtime coalesce settings adjustment support for easier review.
- Have axienet_update_coalesce_rx/tx take the cr value/mask instead of calculating it with axienet_calc_cr. This will make it easier to add partial updates in the next few commits.
- Get coalesce parameters from driver state
- Don't take the RTNL in axienet_rx_dim_work to avoid deadlock. Instead, calculate a partial cr update that axienet_update_coalesce_rx can perform under a spin lock.
- Use READ/WRITE_ONCE when accessing/modifying rx_irqs

Sean Anderson (4):
net: xilinx: axienet: Combine CR calculation
net: xilinx: axienet: Support adjusting coalesce settings while
running
net: xilinx: axienet: Get coalesce parameters from driver state
net: xilinx: axienet: Enable adaptive IRQ coalescing with DIM

 drivers/net/ethernet/xilinx/Kconfig           |   1 +
 drivers/net/ethernet/xilinx/xilinx_axienet.h  |  29 +-
 .../net/ethernet/xilinx/xilinx_axienet_main.c | 312 ++++++++++++++----
 3 files changed, 264 insertions(+), 78 deletions(-)
Signature · 1 line
2.35.1.1320.gc452695387.dirty