From: "De Lara Guarch, Pablo" <pablo.de.lara.guarch@intel.com>
To: "stable@dpdk.org" <stable@dpdk.org>
Subject: Re: [dpdk-stable] [PATCH] hash: fix incorrect eviction counter
Date: Thu, 21 Sep 2017 20:45:22 +0000 [thread overview]
Message-ID: <E115CCD9D858EF4F90C690B0DCB4D8976CC21908@IRSMSX108.ger.corp.intel.com> (raw)
In-Reply-To: <20170921053749.72749-1-pablo.de.lara.guarch@intel.com>
> -----Original Message-----
> From: De Lara Guarch, Pablo
> Sent: Thursday, September 21, 2017 6:38 AM
> To: De Lara Guarch, Pablo <pablo.de.lara.guarch@intel.com>
> Cc: stable@dpdk.org
> Subject: [PATCH] hash: fix incorrect eviction counter
>
> When adding a new entry in a hash table, there is a maximum number of
> evictions that can be performed. When the counter of these evictions
> reaches this maximum, the entry cannot be added, as it is considered that
> the algorithm has encountered an infinite loop.
>
> The problem with the current implementation, is that this counter was
> declared as a static variable.
> If there are multiple threads adding entries in the same table or in different
> tables, there should have different counters, one per core and per table.
>
> Therefore, an array of counter has been added to the hash table structure.
>
> Fixes: 243e93a5046f ("hash: fix unlimited cuckoo path")
> Cc: stable@dpdk.org
>
> Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Self-NACK. Did not send the patch to dev@dpdk.org, plus the commit message
had a typo.
next prev parent reply other threads:[~2017-09-21 20:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-21 5:37 Pablo de Lara
2017-09-21 20:45 ` De Lara Guarch, Pablo [this message]
2017-09-21 12:46 Pablo de Lara
2017-09-22 8:35 ` Bruce Richardson
2017-09-22 10:40 ` De Lara Guarch, Pablo
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=E115CCD9D858EF4F90C690B0DCB4D8976CC21908@IRSMSX108.ger.corp.intel.com \
--to=pablo.de.lara.guarch@intel.com \
--cc=stable@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).