From: "De Lara Guarch, Pablo" <pablo.de.lara.guarch@intel.com>
To: Yu Nemo Wenbin <yuwb_bjy@ctbri.com.cn>, "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] [PATCH v2] hash: move rte_hash_set_cmp_func() to ver DPDK_2.2.
Date: Thu, 3 Dec 2015 09:25:49 +0000 [thread overview]
Message-ID: <E115CCD9D858EF4F90C690B0DCB4D8973C8655FC@IRSMSX108.ger.corp.intel.com> (raw)
In-Reply-To: <1449120209-9990-1-git-send-email-yuwb_bjy@ctbri.com.cn>
Hi Nemo,
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Yu Nemo Wenbin
> Sent: Thursday, December 03, 2015 5:23 AM
> To: dev@dpdk.org
> Subject: [dpdk-dev] [PATCH v2] hash: move rte_hash_set_cmp_func() to
> ver DPDK_2.2.
>
> Also modified the comments of rte_hash_set_cmp_func().
>
> Signed-off-by: Yu Nemo Wenbin <yuwb_bjy@ctbri.com.cn>
> ---
> lib/librte_hash/rte_hash.h | 4 ++--
> lib/librte_hash/rte_hash_version.map | 8 +++++++-
> 2 files changed, 9 insertions(+), 3 deletions(-)
>
> diff --git a/lib/librte_hash/rte_hash.h b/lib/librte_hash/rte_hash.h
> index 8378a42..dfca5ef 100644
> --- a/lib/librte_hash/rte_hash.h
> +++ b/lib/librte_hash/rte_hash.h
> @@ -66,7 +66,7 @@ typedef uint32_t hash_sig_t;
> typedef uint32_t (*rte_hash_function)(const void *key, uint32_t key_len,
> uint32_t init_val);
>
> -/** Type of function used to compare the key. It works like the memcmp()
> */
> +/** Type of function used to compare the hash key. */
> typedef int (*rte_hash_cmp_eq_t)(const void *key1, const void *key2,
> size_t key_len);
>
> /**
> @@ -108,7 +108,7 @@ rte_hash_create(const struct rte_hash_parameters
> *params);
>
> /**
> * Set the rte_hash_set_cmp_func.
> - * Set the new hash compare function if the default one is not suitable
> enough.
> + * Set a new hash compare function other than the default one.
> *
> * @note Function pointer does not work with multi-process, so don't use
> it
> * in multi-process mode.
> diff --git a/lib/librte_hash/rte_hash_version.map
> b/lib/librte_hash/rte_hash_version.map
> index 3bc1e2c..1aa94f9 100644
> --- a/lib/librte_hash/rte_hash_version.map
> +++ b/lib/librte_hash/rte_hash_version.map
> @@ -30,6 +30,12 @@ DPDK_2.1 {
> rte_hash_lookup_data;
> rte_hash_lookup_with_hash_data;
> rte_hash_reset;
> - rte_hash_set_cmp_func;
>
> } DPDK_2.0;
> +
> +DPDK_2.2 {
> + global:
> +
> + rte_hash_set_cmp_func;
> +
> +} DPDK_2.1;
> --
> 1.9.1
I see you are basing off the v1 of this patch. You need to send all the changes in one go.
So, include the missing code in rte_cuckoo_hash.c, and include rte_hash_set_cmp_func
in rte_hash_version.map, but don't remove it from DPDK_2.1, as it does not exist now.
In other words, create a patch from the current head of mainline, send it as a v3,
include the changes you made from v1->v2 and v2->v3 and send it again (and don't forget to use --in-reply-to).
Plus, remove the "to ver DPDK_2.2" part from the tile of the patch.
Thanks!
Pablo
next prev parent reply other threads:[~2015-12-03 9:25 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-19 1:15 [dpdk-dev] [PATCH] hash: add rte_hash_set_cmp_func() function Yu Nemo Wenbin
2015-11-24 14:06 ` De Lara Guarch, Pablo
2015-12-03 5:23 ` [dpdk-dev] [PATCH v2] hash: move rte_hash_set_cmp_func() to ver DPDK_2.2 Yu Nemo Wenbin
2015-12-03 9:25 ` De Lara Guarch, Pablo [this message]
2015-12-04 3:11 ` [dpdk-dev] [PATCH v3 1/3] hash: add rte_hash_set_cmp_func() function Yu Nemo Wenbin
2015-12-04 3:11 ` [dpdk-dev] [PATCH v3 2/3] " Yu Nemo Wenbin
2015-12-04 3:11 ` [dpdk-dev] [PATCH v3 3/3] hash: put rte_hash_set_cmp_func() back to DPDK_2.1 Yu Nemo Wenbin
2015-12-04 8:54 ` [dpdk-dev] [PATCH v3 1/3] hash: add rte_hash_set_cmp_func() function De Lara Guarch, Pablo
2015-12-06 23:43 ` Thomas Monjalon
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=E115CCD9D858EF4F90C690B0DCB4D8973C8655FC@IRSMSX108.ger.corp.intel.com \
--to=pablo.de.lara.guarch@intel.com \
--cc=dev@dpdk.org \
--cc=yuwb_bjy@ctbri.com.cn \
/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).