From: Florian Westphal <fw@strlen.de>
To: <netdev@vger.kernel.org>
Cc: jhs@mojatatu.com, alexei.starovoitov@gmail.com, daniel@iogearbox.net
Subject: [PATCH -next 0/3] tc state machinery cleanups
Date: Fri, 15 May 2015 10:50:47 +0200 [thread overview]
Message-ID: <1431679850-31896-1-git-send-email-fw@strlen.de> (raw)
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(-)
next reply other threads:[~2015-05-15 8:51 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-15 8:50 Florian Westphal [this message]
2015-05-15 8:50 ` [PATCH -next 1/3] net: sched: remove FROM INGRESS/EGRESS Florian Westphal
2015-05-15 8:50 ` [PATCH -next 2/3] net: sched: remove AT INGRESS/EGRESS Florian Westphal
2015-05-15 16:23 ` Alexei Starovoitov
2015-05-15 17:21 ` Florian Westphal
2015-05-15 20:09 ` Alexei Starovoitov
2015-05-15 22:22 ` Florian Westphal
2015-05-15 22:43 ` Jamal Hadi Salim
2015-05-15 8:50 ` [PATCH -next 3/3] net: core: use skb_tc_state to skip ingress classifiers Florian Westphal
2015-05-15 11:36 ` [PATCH -next 0/3] tc state machinery cleanups Jamal Hadi Salim
2015-05-15 11:59 ` Florian Westphal
2015-05-15 13:11 ` Daniel Borkmann
2015-05-18 3:34 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1431679850-31896-1-git-send-email-fw@strlen.de \
--to=fw@strlen.de \
--cc=alexei.starovoitov@gmail.com \
--cc=daniel@iogearbox.net \
--cc=jhs@mojatatu.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).