Skip to content

replace skb tc_verd member with 3 dedicated bit flags

Florian Westphal netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5net: sched: replace NCLS macro with tc_nocls bit flagdrivers/net/ifb.c drivers/staging/octeon/ethernet-tx.c include/linux/skbuff.h +3 more+12 -62 replies
2/5net: sched: use counter to break reclassify loopsDocumentation/networking/tc-actions-env-rules.txt include/net/sch_generic.h include/uapi/linux/pkt_cls.h +2 more+5 -321 reply
3/5net: sched: remove FROM INGRESS/EGRESSdrivers/net/ifb.c drivers/staging/octeon/ethernet-tx.c include/linux/skbuff.h +3 more+13 -121 reply
4/5net: sched: remove AT INGRESS/EGRESSdrivers/staging/octeon/ethernet-tx.c include/linux/skbuff.h include/uapi/linux/pkt_cls.h +3 more+10 -132 replies
5/5skbuff: remove tc_verd memberdrivers/net/ifb.c drivers/staging/octeon/ethernet-tx.c include/linux/skbuff.h +2 more+0 -101 reply

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDaniel BorkmannArnd BergmannThomas GleixnerMichael KerriskPaul E. McKenneyDave Jones
SeriesA-b A-b A-b A-b A-b
1/5A-b
2/5A-b
3/5A-b
4/5A-b
5/5A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 6 reviewers.

Read the v1 thread

Cover letter [PATCH -next 0/5] replace skb tc_verd member with 3 dedicated bit flags

This series removes the tc_verd member from sk_buff and uses 3 new flag bits instead. It is on top of
http://patchwork.ozlabs.org/patch/467186/
(tc: remove unused redirect ttl) from Alexei.

The patch set tries to not affect tc inner workings. I tested a few scenarios, namely:

- htb on egress
- netem attached to ifb with mirred redirect from ingress qdisc
- mirred to different device
- bogus packet reclassify loop

All of that works as expected (i.e. in last case most packets are dropped).

motivation is two-fold:
1) provide better documentation as to what tc_verd is used for and try to move some flag set/clear operations into sch_ingress

2) provide a way to 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).

Florian Westphal (5):
net: sched: replace NCLS macro with tc_nocls bit flag
net: sched: use counter to break reclassify loops
net: sched: remove FROM INGRESS/EGRESS
net: sched: remove AT INGRESS/EGRESS
skbuff: remove tc_verd member

Documentation/networking/tc-actions-env-rules.txt | 4 ----

 drivers/net/ifb.c                                 |   15 +++++----------
 drivers/staging/octeon/ethernet-tx.c              |    4 +++-
 include/linux/skbuff.h                            |   17 +++++++++++------
 include/net/sch_generic.h                         |   15 ---------------
 include/uapi/linux/pkt_cls.h                      |    4 +---
 net/core/dev.c                                    |   10 ++--------
 net/core/skbuff.c                                 |    3 ---
 net/sched/act_api.c                               |    4 ++--
 net/sched/act_mirred.c                            |    9 ++++-----
 net/sched/sch_api.c                               |   12 +++---------
 net/sched/sch_ingress.c                           |    2 ++
 net/sched/sch_netem.c                             |    2 +-
 13 files changed, 34 insertions(+), 67 deletions(-)