Skip to content

tc state machinery cleanups

Florian Westphal netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3net: sched: remove FROM INGRESS/EGRESSdrivers/net/ifb.c drivers/staging/octeon/ethernet-tx.c include/linux/skbuff.h +4 more+27 -150 replies
2/3net: sched: remove AT INGRESS/EGRESSinclude/linux/skbuff.h include/net/pkt_sched.h include/uapi/linux/pkt_cls.h +2 more+20 -125 replies
3/3net: core: use skb_tc_state to skip ingress classifiersnet/core/dev.c+4 -40 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH -next 0/3] tc state machinery cleanups

This series prepares removal of tc_verd member from sk_buff.

It simplifies tc state machinery to what is required to keep current mirred/ifb combinations working.

I tested a few scenarios, namely:

1 - htb based shaping on egress
2 - netem attached to ifb with mirred redirect from ingress qdisc 3 - mirred to different egress device
4 - mirred to ifb egress device with qdiscs set up on ifb
to provide illusion of 'single' transmit interface for traffic shaping

After this series tc_verd is only used by ifb to skip actions on egress.

Part #2 of this series will remove tc_verd completely.

motivation is two-fold:
1) make states and state transitions more obvious
2) provide a way to later reduce skb size by 8 bytes (s/u16 mac_len/u8 mac_len/ would result in
two 2 byte and one 4 byte hole, i.e. 8 byte reduction with minor reshuffling).

 drivers/net/ifb.c                    |   18 +++++++++---------
 drivers/staging/octeon/ethernet-tx.c |    1 +
 include/linux/skbuff.h               |    6 ++++--
 include/net/pkt_sched.h              |   18 ++++++++++++++++++
 include/uapi/linux/pkt_cls.h         |    6 +++---
 net/core/dev.c                       |   14 ++++++--------
 net/sched/act_mirred.c               |   17 +++++++++--------
 net/sched/sch_netem.c                |    2 +-
 8 files changed, 51 insertions(+), 31 deletions(-)