Skip to content

octeontx2-pf: HTB offload support

Hariprasad Kelam linux-doc lkml netdev 12 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. v10 Latest posting 2/28 patches 2 repliesApplied 8/8
  2. v10 posting 1/28 patches 1 replySuperseded
  3. v96 patches 4 repliesSuperseded
Earlier versions · 9
VersionPostedPatchesRepliesStatus
v86 patches1 replySuperseded
v76 patches6 repliesSuperseded
v66 patches3 repliesSuperseded
v56 patches12 repliesSuperseded
v44 patches10 repliesSuperseded
v34 patches4 repliesSuperseded
v2 posting 2/25 patches16 repliesSuperseded
v2 posting 1/25 patches2 repliesSuperseded
v15 patches11 repliesSuperseded

Changes in v10 from the cover letter

1. split the htb offload patch
2. define helper APIs for txschq config
3. update commit description and documentation.

Patches in v10 posting 2/2 All 8 applied

#Subject and filesSizeRepliesApplied
1/8sch_htb: Allow HTB priority parameter in offload modedrivers/net/ethernet/mellanox/mlx5/core/en/qos.c include/net/pkt_cls.h net/sched/sch_htb.c+10 -50 repliesApplied
2/8octeontx2-pf: Rename tot_tx_queues to non_qos_queuesdrivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c +1 more+15 -150 repliesApplied
3/8octeontx2-pf: qos send queues managementdrivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c drivers/net/ethernet/marvell/octeontx2/nic/Makefile drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c +7 more+426 -420 repliesApplied
4/8octeontx2-pf: Refactor schedular queue alloc/free callsdrivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h +2 more+94 -382 repliesApplied
5/8octeontx2-pf: Prepare for QOS offloaddrivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h drivers/net/ethernet/marvell/octeontx2/nic/otx2_reg.h drivers/net/ethernet/marvell/octeontx2/nic/otx2_tc.c+43 -200 repliesApplied
6/8octeontx2-pf: Add support for HTB offloaddrivers/net/ethernet/marvell/octeontx2/af/common.h drivers/net/ethernet/marvell/octeontx2/nic/Makefile drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c +7 more+1507 -140 repliesApplied
7/8octeontx2-pf: ethtool expose qos statsdrivers/net/ethernet/marvell/octeontx2/nic/otx2_ethtool.c+20 -90 repliesApplied
8/8docs: octeontx2: Add Documentation for QOSDocumentation/networking/device_drivers/ethernet/marvell/octeontx2.rst+45 -00 repliesApplied

Reviews trailers per patch

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

PatchSimon HormanJacob Keller
1/8R-b R-b
2/8R-b R-b
3/8R-b R-b
4/8
5/8
6/8
7/8
8/8R-b

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

Read the v10 thread

Cover letter [net-next Patch v10 0/8] octeontx2-pf: HTB offload support

octeontx2 silicon and CN10K transmit interface consists of five transmit levels starting from MDQ, TL4 to TL1. Once packets are submitted to MDQ, hardware picks all active MDQs using strict priority, and MDQs having the same priority level are chosen using round robin. Each packet will traverse MDQ, TL4 to TL1 levels. Each level contains an array of queues to support scheduling and shaping.

As HTB supports classful queuing mechanism by supporting rate and ceil and allow the user to control the absolute bandwidth to particular classes of traffic the same can be achieved by configuring shapers and schedulers on different transmit levels.

This series of patches adds support for HTB offload,

Patch1: Allow strict priority parameter in HTB offload mode.

Patch2: Rename existing total tx queues for better readability

Patch3: defines APIs such that the driver can dynamically initialize/
deinitialize the send queues.

Patch4: Refactors transmit alloc/free calls as preparation for QOS
offload code.

Patch5: moves rate limiting logic to common header which will be used
by qos offload code.

Patch6: Adds actual HTB offload support.

Patch7: exposes qos send queue stats over ethtool.

Patch8: Add documentation about htb offload flow in driver

Hariprasad Kelam (5):
octeontx2-pf: Rename tot_tx_queues to non_qos_queues
octeontx2-pf: Refactor schedular queue alloc/free calls
octeontx2-pf: Prepare for QOS offload
octeontx2-pf: ethtool expose qos stats
docs: octeontx2: Add Documentation for QOS

Naveen Mamindlapalli (2):
sch_htb: Allow HTB priority parameter in offload mode
octeontx2-pf: Add support for HTB offload

Subbaraya Sundeep (1):
octeontx2-pf: qos send queues management
-----
v1 -> v2 :
ensure other drivers won't affect by allowing 'prio' a parameter in htb offload mode.

v2 -> v3 :
1. discard patch supporting devlink to configure TL1 round robin priority
2. replace NL_SET_ERR_MSG with NL_SET_ERR_MSG_MOD
3. use max3 instead of using max couple of times and use a better naming convention in send queue management code.

v3 -> v4:
1. fix sparse warnings.
2. release mutex lock in error conditions.

v4 -> v5:
1. fix pahole reported issues
2. add documentation for htb offload flow.

v5 -> v6:
1. fix synchronization issues w.r.t hlist accessing from ndo_select_queue with rcu lock.
2. initialize qos related resources in device init.

v6 -> v7:
1. fix erros reported by sparse and clang

v7 -> v8:
1. cover letter header is malformed in last version. correct the cover letter
v8 -> v9:
1. fix issues reported by smatch

v9 -> v10:
1. split the htb offload patch
2. define helper APIs for txschq config
3. update commit description and documentation.

 .../ethernet/marvell/octeontx2.rst            |   45 +
 .../ethernet/marvell/octeontx2/af/common.h    |    2 +-
 .../marvell/octeontx2/af/rvu_debugfs.c        |    5 +
 .../ethernet/marvell/octeontx2/af/rvu_nix.c   |   45 +
 .../ethernet/marvell/octeontx2/nic/Makefile   |    2 +-
 .../marvell/octeontx2/nic/otx2_common.c       |  121 +-
 .../marvell/octeontx2/nic/otx2_common.h       |   82 +-
 .../marvell/octeontx2/nic/otx2_ethtool.c      |   29 +-
 .../ethernet/marvell/octeontx2/nic/otx2_pf.c  |  114 +-
 .../ethernet/marvell/octeontx2/nic/otx2_reg.h |   13 +
 .../ethernet/marvell/octeontx2/nic/otx2_tc.c  |   29 +-
 .../marvell/octeontx2/nic/otx2_txrx.c         |   24 +-
 .../marvell/octeontx2/nic/otx2_txrx.h         |    3 +-
 .../ethernet/marvell/octeontx2/nic/otx2_vf.c  |   14 +-
 .../net/ethernet/marvell/octeontx2/nic/qos.c  | 1363 +++++++++++++++++
 .../net/ethernet/marvell/octeontx2/nic/qos.h  |   69 +
 .../ethernet/marvell/octeontx2/nic/qos_sq.c   |  296 ++++
 .../net/ethernet/mellanox/mlx5/core/en/qos.c  |    7 +-
 include/net/pkt_cls.h                         |    1 +
 net/sched/sch_htb.c                           |    7 +-
 20 files changed, 2144 insertions(+), 127 deletions(-)
 create mode 100644 drivers/net/ethernet/marvell/octeontx2/nic/qos.c
 create mode 100644 drivers/net/ethernet/marvell/octeontx2/nic/qos.h
 create mode 100644 drivers/net/ethernet/marvell/octeontx2/nic/qos_sq.c

--
2.17.1