From: Jakub Kicinski <jakub.kicinski@netronome.com>
To: Or Gerlitz <gerlitz.or@gmail.com>
Cc: John Hurley <john.hurley@netronome.com>,
Linux Netdev List <netdev@vger.kernel.org>,
Jiri Pirko <jiri@resnulli.us>,
"Samudrala, Sridhar" <sridhar.samudrala@intel.com>,
oss-drivers@netronome.com, Rabie Loulou <rabiel@mellanox.com>
Subject: Re: [RFC net-next 0/4] net: sched: support replay of filter offload when binding to block
Date: Mon, 28 May 2018 13:02:02 -0700 [thread overview]
Message-ID: <20180528130202.16981241@cakuba> (raw)
In-Reply-To: <CAJ3xEMjfSc=yg+o+Pv4AQw0P-1C4pDjKa=ctCbeS2hWWMR+RPw@mail.gmail.com>
On Mon, 28 May 2018 13:48:28 +0300, Or Gerlitz wrote:
> On Fri, May 25, 2018 at 5:25 AM, Jakub Kicinski wrote:
> > This series from John adds the ability to replay filter offload requests
> > when new offload callback is being registered on a TC block. This is most
> > likely to take place for shared blocks today, when a block which already
> > has rules is bound to another interface. Prior to this patch set if any
> > of the rules were offloaded the block bind would fail.
>
> Can you elaborate a little further here? is this something that you are planning
> to use for the uplink LAG use-case? AFAIU if we apply share-block to nfp as
> things are prior to this patch, it would work, so there's a case where
> it doesn't and this is now handled with the series?
Just looking at things as they stand today, no bond/forward looking
plans - nfp "supports" shared blocks by registering multiple callbacks
to the block. There are two problems:
(a) one can't install a second callback if some rules are already
offloaded because of:
/* At this point, playback of previous block cb calls is not supported,
* so forbid to register to block which already has some offloaded
* filters present.
*/
if (tcf_block_offload_in_use(block))
return ERR_PTR(-EOPNOTSUPP);
in __tcf_block_cb_register(), so block sharing has to be set up
before any rules are added.
(b) when block is unshared filters are not removed today and driver
would have to sweep its rule table, as John notes. It's not a big
deal but this series fixes it nicely in the core, too.
Looking forward there are two things we can use shared blocks for: we
can try to teach user space to share ingress blocks on all legs of bonds
instead of trying to propagate the rules from the bond down in the
kernel, which is more tricky to get right. We will need reliable
replay for that, because we want new links to be able to join and leave
the bond when rules are already present.
Second use case, which is more far fetched, is trying to discover and
register callbacks for blocks of tunnel devices directly, and avoid the
egdev infrastructure...
We should discuss the above further, but regardless, I think this
patchset is quite a nice addition on it's own. Would you agree?
next prev parent reply other threads:[~2018-05-28 20:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-25 2:25 [RFC net-next 0/4] net: sched: support replay of filter offload when binding to block Jakub Kicinski
2018-05-25 2:25 ` [RFC net-next 1/4] net: sched: pass extack pointer to block binds and cb registration Jakub Kicinski
2018-05-25 2:25 ` [RFC net-next 2/4] net: sched: add tcf_proto_op to offload a rule Jakub Kicinski
2018-05-25 2:25 ` [RFC net-next 3/4] net: sched: cls_flower: implement offload tcf_proto_op Jakub Kicinski
2018-05-25 2:25 ` [RFC net-next 4/4] net: sched: cls_matchall: " Jakub Kicinski
2018-05-28 10:48 ` [RFC net-next 0/4] net: sched: support replay of filter offload when binding to block Or Gerlitz
2018-05-28 20:02 ` Jakub Kicinski [this message]
2018-05-30 15:59 ` Or Gerlitz
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=20180528130202.16981241@cakuba \
--to=jakub.kicinski@netronome.com \
--cc=gerlitz.or@gmail.com \
--cc=jiri@resnulli.us \
--cc=john.hurley@netronome.com \
--cc=netdev@vger.kernel.org \
--cc=oss-drivers@netronome.com \
--cc=rabiel@mellanox.com \
--cc=sridhar.samudrala@intel.com \
/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).