Skip to content

RFC net_sched: Move GSO segmentation to root qdisc

Cong Wang netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net_sched: Move GSO segmentation to root qdiscinclude/net/sch_generic.h net/core/dev.c net/sched/sch_api.c +4 more+80 -1950 replies
2/2net_sched: Propagate per-qdisc max_segment_size for GSO segmentationinclude/net/sch_generic.h net/core/dev.c net/sched/sch_api.c +2 more+47 -160 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC Patch net-next 0/2] net_sched: Move GSO segmentation to root qdisc

This patchset attempts to move the GSO segmentation in Qdisc layer from child qdisc up to root qdisc. It fixes the complex handling of GSO segmentation logic and unifies the code in a generic way. The end result is cleaner (see the patch stat) and hopefully keeps the original logic of handling GSO.

This is an architectural change, hence I am sending it as an RFC. Please check each patch description for more details. Also note that although this patchset alone could fix the UAF reported by Mingi, the original UAF can also be fixed by Lion's patch [1], so this patchset is just an improvement for handling GSO segmentation.

TODO: Add some selftests.

1. https://lore.kernel.org/netdev/[email protected]/

---
Cong Wang (2):
net_sched: Move GSO segmentation to root qdisc
net_sched: Propagate per-qdisc max_segment_size for GSO segmentation

 include/net/sch_generic.h |  4 +-
 net/core/dev.c            | 52 +++++++++++++++++++---
 net/sched/sch_api.c       | 14 ++++++
 net/sched/sch_cake.c      | 93 +++++++++++++--------------------------
 net/sched/sch_netem.c     | 32 +-------------
 net/sched/sch_taprio.c    | 76 +++++++-------------------------
 net/sched/sch_tbf.c       | 59 +++++--------------------
 7 files changed, 123 insertions(+), 207 deletions(-)
Signature · 1 line
2.34.1