DPDK patches and discussions
 help / color / mirror / Atom feed
From: Jerin Jacob <jerinjacobk@gmail.com>
To: "Mattias Rönnblom" <hofors@lysator.liu.se>
Cc: "Jerin Jacob" <jerinj@marvell.com>, dpdk-dev <dev@dpdk.org>,
	"Mattias Rönnblom" <mattias.ronnblom@ericsson.com>,
	"dpdk stable" <stable@dpdk.org>,
	"Venky Venkatesh" <vvenkatesh@paloaltonetworks.com>
Subject: Re: [dpdk-dev] [PATCH v2] event/dsw: avoid reusing previously recorded events
Date: Mon, 4 May 2020 17:22:20 +0530	[thread overview]
Message-ID: <CALBAE1NyoJpf_S+aDBR_mMvBvq3o81jBt5PeWmBUtiqZ_GYiTg@mail.gmail.com> (raw)
In-Reply-To: <20200504093059.12458-1-hofors@lysator.liu.se>

On Mon, May 4, 2020 at 3:01 PM Mattias Rönnblom <hofors@lysator.liu.se> wrote:
>
> From: Mattias Rönnblom <mattias.ronnblom@ericsson.com>
>
> Avoid reusing recorded events when performing a migration, since this
> may make the migration selection logic pick an already-moved flow.
>
> Fixes: f6257b22e767 ("event/dsw: add load balancing")
> Cc: stable@dpdk.org
>
> Reported-by: Venky Venkatesh <vvenkatesh@paloaltonetworks.com>
> Signed-off-by: Mattias Rönnblom <mattias.ronnblom@ericsson.com>
> ---
> V2: rebase


Fixed following checkpatch warnings and applied to
dpdk-next-eventdev/master. Thanks.

WARNING:SUSPECT_CODE_INDENT: suspect code indent for conditional
statements (8, 12)
#26: FILE: drivers/event/dsw/dsw_event.c:824:
+       if (seen_events_len < DSW_MAX_EVENTS_RECORDED)
+           return;

WARNING:TABSTOP: Statements should start on a tabstop
#27: FILE: drivers/event/dsw/dsw_event.c:825:
+           return;


>  drivers/event/dsw/dsw_event.c | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/drivers/event/dsw/dsw_event.c b/drivers/event/dsw/dsw_event.c
> index 832390373..367cf8590 100644
> --- a/drivers/event/dsw/dsw_event.c
> +++ b/drivers/event/dsw/dsw_event.c
> @@ -821,6 +821,9 @@ dsw_port_consider_emigration(struct dsw_evdev *dsw,
>         if (dsw->num_ports == 1)
>                 return;
>
> +       if (seen_events_len < DSW_MAX_EVENTS_RECORDED)
> +           return;
> +
>         DSW_LOG_DP_PORT(DEBUG, source_port->id, "Considering emigration.\n");
>
>         /* Randomize interval to avoid having all threads considering
> --
> 2.20.1
>

      reply	other threads:[~2020-05-04 11:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-04  9:30 Mattias Rönnblom
2020-05-04 11:52 ` Jerin Jacob [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=CALBAE1NyoJpf_S+aDBR_mMvBvq3o81jBt5PeWmBUtiqZ_GYiTg@mail.gmail.com \
    --to=jerinjacobk@gmail.com \
    --cc=dev@dpdk.org \
    --cc=hofors@lysator.liu.se \
    --cc=jerinj@marvell.com \
    --cc=mattias.ronnblom@ericsson.com \
    --cc=stable@dpdk.org \
    --cc=vvenkatesh@paloaltonetworks.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).