DPDK patches and discussions
 help / color / Atom feed
From: Jerin Jacob <jerinjacobk@gmail.com>
To: Andrzej Ostruszka <amo@semihalf.com>
Cc: dpdk-dev <dev@dpdk.org>
Subject: Re: [dpdk-dev] [PATCH v3] examples/l2fwd-event: add option to configure port pairs
Date: Sat, 4 Apr 2020 21:40:34 +0530
Message-ID: <CALBAE1POMQdFDdA9SDzbJwQuAYiYE28fVoK5UrW+rq8Uh-wRAw@mail.gmail.com> (raw)
In-Reply-To: <8becda5f-9d4b-f4b4-9147-fa22fcacf497@semihalf.com>

On Tue, Mar 31, 2020 at 10:37 PM Andrzej Ostruszka <amo@semihalf.com> wrote:
>
> On 3/31/20 2:53 PM, pbhagavatula@marvell.com wrote:
> > From: Pavan Nikhilesh <pbhagavatula@marvell.com>
> >
> > Current l2fwd-event application statically configures adjacent ports as
> > destination ports for forwarding the traffic.
> >
> > Add a config option to pass the forwarding port pair mapping which allows
> > the user to configure forwarding port mapping.
> >
> > If no config argument is specified, destination port map is not
> > changed and traffic gets forwarded with existing mapping.
> >
> > To align port/queue configuration of each lcore with destination port
> > map, port/queue configuration of each lcore gets modified when config
> > option is specificed.
> >
> > Ex: ./l2fwd-event -c 0xff -- -p 0x3f -q 2 --config="(0,3)(1,4)(2,5)"
> >
> > With above config option, traffic received from portid = 0 gets forwarded
> > to port = 3 and vice versa, similarly traffic gets forwarded on other port
> > pairs (1,4) and (2,5).
> >
> > Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
> > ---
> >  v3 Changes:
> >   - Use simple memcpy instead of snprintf. (Andrzej)
> >   - Skip redudant loop iterations. (Andrzej)
> >   - Use RTE_MAX_ETHPORTS instead of hardcoding to 255. (Andrzej)
> >
> >  v2 Changes:
> >   - Fix minor formatting error.
> >   - Change uint8_t to bool.
>
> Reviewed-by: Andrzej Ostruszka <aostruszka@marvell.com>

Applied to dpdk-next-eventdev/master. Thanks.

      reply index

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-24 12:34 [dpdk-dev] [PATCH] example/l2fwd-event: add option to configure forwarding info pbhagavatula
2020-03-24 12:34 ` [dpdk-dev] [PATCH] examples/l2fwd-event: add option to configure port pairs pbhagavatula
2020-03-25 10:40   ` Sunil Kumar Kori
2020-03-26  6:37     ` Pavan Nikhilesh Bhagavatula
2020-03-26  6:42   ` [dpdk-dev] [dpdk-dev v2] " pbhagavatula
2020-03-31 10:23     ` Andrzej Ostruszka
2020-03-31 12:17       ` Pavan Nikhilesh Bhagavatula
2020-03-31 12:53     ` [dpdk-dev] [PATCH v3] " pbhagavatula
2020-03-31 17:07       ` Andrzej Ostruszka
2020-04-04 16:10         ` Jerin Jacob [this message]

Reply instructions:

You may reply publically 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=CALBAE1POMQdFDdA9SDzbJwQuAYiYE28fVoK5UrW+rq8Uh-wRAw@mail.gmail.com \
    --to=jerinjacobk@gmail.com \
    --cc=amo@semihalf.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

DPDK patches and discussions

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/dev/0 dev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dev dev/ http://inbox.dpdk.org/dev \
		dev@dpdk.org
	public-inbox-index dev


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dev


AGPL code for this site: git clone https://public-inbox.org/ public-inbox