All of lore.kernel.org
 help / color / mirror / Atom feed
From: John Fastabend <john.fastabend@gmail.com>
To: Daniel Borkmann <daniel@iogearbox.net>,
	Jamal Hadi Salim <jhs@mojatatu.com>
Cc: davem@davemloft.net, alexei.starovoitov@gmail.com,
	eric.dumazet@gmail.com, netdev@vger.kernel.org
Subject: Re: [PATCH net-next v2] net, sched: add clsact qdisc
Date: Tue, 12 Jan 2016 09:15:18 -0800	[thread overview]
Message-ID: <569534A6.9070505@gmail.com> (raw)
In-Reply-To: <569511B6.8010306@iogearbox.net>

[...]

> Just the leftover default setup for egress, nothing more.
> 
>>>     qdisc pfifo_fast 0: parent :1 bands 3 priomap  1 2 2 2 1 2 0 0 1
>>> 1 1 1 1 1 1 1
>>>     qdisc pfifo_fast 0: parent :2 bands 3 priomap  1 2 2 2 1 2 0 0 1
>>> 1 1 1 1 1 1 1
>>>     qdisc pfifo_fast 0: parent :3 bands 3 priomap  1 2 2 2 1 2 0 0 1
>>> 1 1 1 1 1 1 1
>>>     qdisc pfifo_fast 0: parent :4 bands 3 priomap  1 2 2 2 1 2 0 0 1
>>> 1 1 1 1 1 1 1
>>>     qdisc clsact ffff: parent ffff:fff1
>>
>> Is there any reason this is not just tc qdisc add dev foo ingress ?
>> I doubt things will break..
> 
> Actually I already tried to explain that in the commit message, since
> one can
> use any possible minor with ingress qdisc, I would like to have a hard
> guarantee
> that setups suddenly don't break and unexpected things happen even if
> likelihood
> is rather small (but not zero). The option would have been to add a
> 'mode' setting
> over netlink on initialization for ingress and deal with the details in
> each callback
> based on the mode (plus aliasing ingress qdisc to something generic,
> otherwise why
> adding ingress qdisc to add filters to egress? ;)). Eventually, it was
> more straight
> forward and cleaner, imho, to just have their own handlers where they
> both differ.
> 

FWIW I asked Daniel the same question on an earlier version and came
to the same conclusion it really is much cleaner to handle it the way
he did in this patch.

Thanks,
John

      reply	other threads:[~2016-01-12 17:15 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-07 21:29 [PATCH net-next v2] net, sched: add clsact qdisc Daniel Borkmann
2016-01-07 23:21 ` John Fastabend
2016-01-08  0:01   ` Eric Dumazet
2016-01-08  1:03     ` John Fastabend
2016-01-11  3:17 ` David Miller
2016-01-12 12:52 ` Jamal Hadi Salim
2016-01-12 14:46   ` Daniel Borkmann
2016-01-12 17:15     ` John Fastabend [this message]

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=569534A6.9070505@gmail.com \
    --to=john.fastabend@gmail.com \
    --cc=alexei.starovoitov@gmail.com \
    --cc=daniel@iogearbox.net \
    --cc=davem@davemloft.net \
    --cc=eric.dumazet@gmail.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.