Skip to content

hardware pacing offload

Willem de Bruijn intel-wired-lan netdev 9 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. v9 Latest7 patches 6 repliesApplied 7/7
  2. v86 patches 13 repliesSuperseded
  3. v76 patches 2 repliesSuperseded
Earlier versions · 6
VersionPostedPatchesRepliesStatus
v66 patches5 repliesSuperseded
v56 patches4 repliesSuperseded
v46 patches3 repliesSuperseded
v37 patches7 repliesSuperseded
v27 patches8 repliesSuperseded
v17 patches5 repliesSuperseded

Changes in v9 from the cover letter

- graceful fallback to sw pacing if hw pacing becomes unavailable
- add new FQ patch for this fq_offload_horizon() check
- simplify dev->pacing_offload_horizon to bool dev->pacing_offload

Patches in v9 All 7 applied

#Subject and filesSizeRepliesApplied
1/7net: rtnetlink: add pacing_offload attribute to net_deviceDocumentation/netlink/specs/rt-link.yaml Documentation/networking/net_cachelines/net_device.rst include/linux/netdevice.h +2 more+31 -01 replyApplied
2/7net_sched: sch_fq: check device pacing offloadnet/sched/sch_fq.c+41 -121 replyApplied
3/7net_sched: sch_fq: clear past skb->tstamp if offloading pacingnet/sched/sch_fq.c+15 -31 replyApplied
4/7idpf: support pacing offloaddrivers/net/ethernet/intel/idpf/idpf.h drivers/net/ethernet/intel/idpf/idpf_lib.c drivers/net/ethernet/intel/idpf/idpf_txrx.c +2 more+165 -31 replyApplied
5/7selftests: drv-net: refactor so_txtime errqueue handlingtools/testing/selftests/drivers/net/so_txtime.c+36 -300 repliesApplied
6/7selftests: drv-net: in so_txtime tell apart sw from hw pacingtools/testing/selftests/drivers/net/so_txtime.c+79 -161 replyApplied
7/7selftests: drv-net: extend so_txtime with hw offloadtools/testing/selftests/drivers/net/so_txtime.c tools/testing/selftests/drivers/net/so_txtime.py+79 -51 replyApplied

Reviews trailers per patch

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

Read the v9 thread

Cover letter [PATCH net-next v9 0/7] hardware pacing offload

From: Willem de Bruijn <[email protected]>

Enable safe hardware pacing offload on a first device (idpf), plus support.

- Add rtnetlink support for admin control over the device feature
- Add device support to the idpf driver

Besides the main feature, also

- Small optimization to FQ offload: avoid unnecessary ktime_.._get().
- Expand so_txtime drv-net test with hw offload testcases.

Details and detailed changelog in the individual patches.

High level changes:
v8 -> v9
- graceful fallback to sw pacing if hw pacing becomes unavailable
- add new FQ patch for this fq_offload_horizon() check
- simplify dev->pacing_offload_horizon to bool dev->pacing_offload
v7 -> v8
- 2 small fixes: unused variable in idpf and new ruff warning in test
v6 -> v7
- Rebase onto conflicting patches and address feedback
v5 -> v6
- Address substantial opus 5 feedback
v4 -> v5
- Rebase + small kdoc fix only
v3 -> v4
- Replace ethtool API with rtnetlink
- Drop/defer pktgen patch: not essential

v8: https://lore.kernel.org/netdev/[email protected]/
v7: https://lore.kernel.org/netdev/[email protected]/
v6: https://lore.kernel.org/netdev/[email protected]/
v5: https://lore.kernel.org/netdev/[email protected]/
v4: https://lore.kernel.org/netdev/[email protected]/
v3: https://lore.kernel.org/netdev/[email protected]/
v2: https://lore.kernel.org/netdev/[email protected]/
v1: https://lore.kernel.org/netdev/[email protected]/
Willem de Bruijn (7):
net: rtnetlink: add pacing_offload attribute to net_device
net_sched: sch_fq: check device pacing offload
net_sched: sch_fq: clear past skb->tstamp if offloading pacing
idpf: support pacing offload
selftests: drv-net: refactor so_txtime errqueue handling
selftests: drv-net: in so_txtime tell apart sw from hw pacing
selftests: drv-net: extend so_txtime with hw offload

 Documentation/netlink/specs/rt-link.yaml      |   5 +
 .../networking/net_cachelines/net_device.rst  |   1 +
 drivers/net/ethernet/intel/idpf/idpf.h        |  12 ++
 drivers/net/ethernet/intel/idpf/idpf_lib.c    |  19 +++
 drivers/net/ethernet/intel/idpf/idpf_txrx.c   |  69 +++++++-
 drivers/net/ethernet/intel/idpf/idpf_txrx.h   |   8 +-
 .../net/ethernet/intel/idpf/idpf_virtchnl.c   |  60 ++++++-
 include/linux/netdevice.h                     |   2 +
 include/uapi/linux/if_link.h                  |   1 +
 net/core/rtnetlink.c                          |  22 +++
 net/sched/sch_fq.c                            |  71 ++++++--
 .../testing/selftests/drivers/net/so_txtime.c | 159 +++++++++++++-----
 .../selftests/drivers/net/so_txtime.py        |  80 ++++++++-
 13 files changed, 443 insertions(+), 66 deletions(-)
Signature · 1 line
2.55.0.1007.g17ff1f9808-goog