From: David Miller <davem@davemloft.net>
To: jiri@resnulli.us
Cc: alexei.starovoitov@gmail.com, netdev@vger.kernel.org,
jhs@mojatatu.com, tgraf@suug.ch, jesse@nicira.com
Subject: Re: [patch net-next v3] tc: introduce OpenFlow classifier
Date: Sun, 12 Apr 2015 19:44:43 -0400 (EDT) [thread overview]
Message-ID: <20150412.194443.1571071793033525091.davem@davemloft.net> (raw)
In-Reply-To: <20150412075351.GA2112@nanopsycho.orion>
From: Jiri Pirko <jiri@resnulli.us>
Date: Sun, 12 Apr 2015 09:53:51 +0200
> Sat, Apr 11, 2015 at 06:12:25PM CEST, alexei.starovoitov@gmail.com wrote:
>>On Fri, Apr 10, 2015 at 02:45:17PM +0200, Jiri Pirko wrote:
>>> Okay. That was misunderstanding. I was thinking about using existing
>>> flow_dissect. There are couple things which I'm scared of:
>>> - there are eventually many fields to be added to dissection function and to
>>> the structure as well. Not sure how acceptable that would be for
>>> performance reasons when flow_dissect is used by different users...
>>
>>I share the same concern. I think flow_dissect is too performance
>>critical to reuse by expanding 'struct flow_keys'.
>>I think it would be better to generalize ovs's key_extract() into
>>common piece of code that TC classifier and ovs datapath can use.
>>It uses kernel internal 'struct sw_flow_key' which we can tweak to
>>accommodate more users. It's already gigantic at 392 bytes, so
>>split and a bit of diet would help too.
>
> Yep, those are few next topics on my agenda.
This argument kinda ignores the fact that full flow dissection is run
on _every_ single RX packet on basically all Intel chipsets.
Therefore, I cannot take seriously someone saying that it is too much
overhead for a classifier.
And if it is that expensive, fix it, because that helps everyone not
just your special thing.
next prev parent reply other threads:[~2015-04-12 23:44 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-09 12:58 [patch net-next v3] tc: introduce OpenFlow classifier Jiri Pirko
2015-04-09 13:00 ` [patch iproute2 v3] tc: add support for " Jiri Pirko
2015-04-09 21:34 ` [patch net-next v3] tc: introduce " David Miller
2015-04-10 9:12 ` Jiri Pirko
2015-04-10 9:30 ` Daniel Borkmann
2015-04-10 11:46 ` Jiri Pirko
2015-04-10 13:48 ` Jamal Hadi Salim
2015-04-10 10:03 ` Thomas Graf
2015-04-10 12:23 ` David Miller
2015-04-10 12:45 ` Jiri Pirko
2015-04-11 16:12 ` Alexei Starovoitov
2015-04-12 7:53 ` Jiri Pirko
2015-04-12 23:44 ` David Miller [this message]
2015-04-13 0:12 ` Alexei Starovoitov
2015-04-13 0:36 ` David Miller
2015-04-13 1:03 ` Alexei Starovoitov
2015-04-13 8:26 ` Thomas Graf
2015-04-13 14:34 ` Jiri Pirko
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=20150412.194443.1571071793033525091.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=alexei.starovoitov@gmail.com \
--cc=jesse@nicira.com \
--cc=jhs@mojatatu.com \
--cc=jiri@resnulli.us \
--cc=netdev@vger.kernel.org \
--cc=tgraf@suug.ch \
/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).