Skip to content

net: sched: allow user to select txqueue

[email protected] netdev 13 versions – Applied

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v11 Latest posting 2/22 patches 0 repliesApplied 2/2
  2. v11 posting 1/22 patches 1 replySuperseded
  3. v102 patches 7 repliesSuperseded
Earlier versions · 10
VersionPostedPatchesRepliesStatus
v92 patches3 repliesSuperseded
v82 patches21 repliesSuperseded
v7 posting 2/22 patches2 repliesSuperseded
v7 posting 1/22 patches4 repliesSuperseded
v62 patches0 repliesSuperseded
v52 patches15 repliesSuperseded
v42 patches1 replySuperseded
v32 patches12 repliesSuperseded
v22 patches1 replySuperseded
v12 patches6 repliesSuperseded

Patches in v11 posting 2/2 All 2 applied

#Subject and filesSizeRepliesApplied
1/2net: sched: use queue_mapping to pick tx queueinclude/linux/netdevice.h include/linux/rtnetlink.h net/core/dev.c +1 more+38 -30 repliesApplied
2/2net: sched: support hash selecting tx queueinclude/net/tc_act/tc_skbedit.h include/uapi/linux/tc_act/tc_skbedit.h net/sched/act_skbedit.c+50 -20 repliesApplied

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchJamal Hadi Salim
1/2A-b
2/2R-b

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

Read the v11 thread

Cover letter [net-next RESEND v11 0/2] net: sched: allow user to select txqueue

From: Tonghao Zhang <[email protected]>

Patch 1 allow user to select txqueue in clsact hook. Patch 2 support skbhash to select txqueue.

Tonghao Zhang (2):
net: sched: use queue_mapping to pick tx queue
net: sched: support hash selecting tx queue

 include/linux/netdevice.h              |  3 ++
 include/linux/rtnetlink.h              |  1 +
 include/net/tc_act/tc_skbedit.h        |  1 +
 include/uapi/linux/tc_act/tc_skbedit.h |  2 +
 net/core/dev.c                         | 31 ++++++++++++++-
 net/sched/act_skbedit.c                | 55 ++++++++++++++++++++++++--
 6 files changed, 88 insertions(+), 5 deletions(-)
Signature · 52 lines
v11:
* 1/2 remove likely
v10:
* 2/2 remove cpuid/classid hash
v9:
* 2/2 add more commit message.
v8:
* 1/2 remove the inline keyword.
v7:
* 1/2 fix build warn, move pick tx queue into egress_needed_key for
  simplifing codes.
v6:
* 1/2 use static key and compiled when CONFIG_NET_EGRESS configured.
v5:
* 1/2 merge netdev_xmit_reset_txqueue(void),
  netdev_xmit_skip_txqueue(void), to netdev_xmit_skip_txqueue(bool skip). 
v4:
* 1/2 introduce netdev_xmit_reset_txqueue() and invoked in
  __dev_queue_xmit(), so ximt.skip_txqueue will not affect
  selecting tx queue in next netdev, or next packets.
  more details, see commit log.
* 2/2 fix the coding style, rename:
  SKBEDIT_F_QUEUE_MAPPING_HASH -> SKBEDIT_F_TXQ_SKBHASH
  SKBEDIT_F_QUEUE_MAPPING_CLASSID -> SKBEDIT_F_TXQ_CLASSID
  SKBEDIT_F_QUEUE_MAPPING_CPUID -> SKBEDIT_F_TXQ_CPUID
* 2/2 refactor tcf_skbedit_hash, if type of hash is not specified, use
  the queue_mapping, because hash % mapping_mod == 0 in "case 0:"
* 2/2 merge the check and add extack
v3:
* 2/2 fix the warning, add cpuid hash type.
v2:
* 1/2 change skb->tc_skip_txqueue to per-cpu var, add more commit message.
* 2/2 optmize the codes.

Cc: Jamal Hadi Salim <[email protected]>
Cc: Cong Wang <[email protected]>
Cc: Jiri Pirko <[email protected]>
Cc: "David S. Miller" <[email protected]>
Cc: Jakub Kicinski <[email protected]>
Cc: Jonathan Lemon <[email protected]>
Cc: Eric Dumazet <[email protected]>
Cc: Alexander Lobakin <[email protected]>
Cc: Paolo Abeni <[email protected]>
Cc: Talal Ahmad <[email protected]>
Cc: Kevin Hao <[email protected]>
Cc: Ilias Apalodimas <[email protected]>
Cc: Kees Cook <[email protected]>
Cc: Kumar Kartikeya Dwivedi <[email protected]>
Cc: Antoine Tenart <[email protected]>
Cc: Wei Wang <[email protected]>
--
2.27.0