DPDK patches and discussions
 help / color / mirror / Atom feed
From: Shyam Shrivastav <shrivastav.shyam@gmail.com>
To: hongbo liu <cnliuhb@gmail.com>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] Why rte_pipeline.c only support forwarding to same table in different entries?
Date: Thu, 7 Jun 2018 19:32:42 +0530	[thread overview]
Message-ID: <CAGSp03m7in6Pz5c8Oe8XOZspawuu45iw2zWcD=gb2wzUZCq8fg@mail.gmail.com> (raw)
In-Reply-To: <CAATCt2T1YUXGBq37pgWpvSzG=3nTY=nuuXMYrZ584NvEEfvG-A@mail.gmail.com>

Looking at code, another change might make this work. Make sure that
default entry action of each table points to next table except for last one
which normally should be drop

Please look at if (lookup_miss_mask != 0)  handling in rte_pipeline_run ()

.



On Thu, Jun 7, 2018 at 12:49 PM, hongbo liu <cnliuhb@gmail.com> wrote:

> Hi,
>
> I am frustrated when designing pipeline table.
>
> I am trying to have one ACL table 0 to forward different traffic to
> different table, but it failed.
>
> And I noticed that the following checks in rte_pipeline.c:
> /****************************************************************
> if ((entry->action == RTE_PIPELINE_ACTION_TABLE) &&
> table->table_next_id_valid &&
> (entry->table_id != table->table_next_id)) {
> RTE_LOG(ERR, PIPELINE,
> "%s: Tree-like topologies not allowed\n", __func__);
> return -EINVAL;
> }
> ****************************************************************/
>
> Is there any reason why adding this limitation?
>
> In openflow, the limitation is the forward table_id must be larger than
> current table_id, and the final
> table should not have forward table action.
>
> By the way, it still does not work after removing upper checks.
>
> Is it difficult to support forwarding to multiple tables in different
> entries?
>
> --
> Hobby
>

  reply	other threads:[~2018-06-07 14:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-07  7:19 hongbo liu
2018-06-07 14:02 ` Shyam Shrivastav [this message]
2018-06-12 11:04   ` Dumitrescu, Cristian

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='CAGSp03m7in6Pz5c8Oe8XOZspawuu45iw2zWcD=gb2wzUZCq8fg@mail.gmail.com' \
    --to=shrivastav.shyam@gmail.com \
    --cc=cnliuhb@gmail.com \
    --cc=dev@dpdk.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).