DPDK patches and discussions
 help / color / mirror / Atom feed
From: Jianbo Liu <jianbo.liu@linaro.org>
To: "Sekhar, Ashwin" <Ashwin.Sekhar@cavium.com>
Cc: "byron.marohn@intel.com" <byron.marohn@intel.com>,
	 "pablo.de.lara.guarch@intel.com"
	<pablo.de.lara.guarch@intel.com>,
	 "Jacob, Jerin" <Jerin.JacobKollanukkaran@cavium.com>,
	"dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] [PATCH v2] efd: support lookup using neon intrinsics
Date: Tue, 2 May 2017 09:56:44 +0800	[thread overview]
Message-ID: <CAP4Qi3-bVYAW8Z67Aui_iHtQFP+0_XgMPmFJ_r+VJ35a_zWrmQ@mail.gmail.com> (raw)
In-Reply-To: <BY2PR07MB2421D484B28C00195E8BDE4E92130@BY2PR07MB2421.namprd07.prod.outlook.com>

On 28 April 2017 at 18:38, Sekhar, Ashwin <Ashwin.Sekhar@cavium.com> wrote:
> On Friday 28 April 2017 03:36 PM, Jianbo Liu wrote:
>> On 27 April 2017 at 20:44, Ashwin Sekhar T K
>> <ashwin.sekhar@caviumnetworks.com> wrote:
>>> * Added file lib/librte_efd/rte_efd_arm64.h to hold arm64
>>>   specific definitions
>>> * Verified the changes with efd_autotest unit test case
>>>
>>> Signed-off-by: Ashwin Sekhar T K <ashwin.sekhar@caviumnetworks.com>
>>> ---
>>> v2:
>>> * Slightly modified the content of the commit message body
>>> * Added prefix [dpdk-dev] to the email subject line
>>>
>>>  MAINTAINERS                    |  1 +
>>>  lib/librte_efd/rte_efd.c       | 22 ++++++++++++
>>>  lib/librte_efd/rte_efd_arm64.h | 76 ++++++++++++++++++++++++++++++++++++++++++
>>>  3 files changed, 99 insertions(+)
>>>  create mode 100644 lib/librte_efd/rte_efd_arm64.h
>>>
>>> diff --git a/MAINTAINERS b/MAINTAINERS
>>> index b6495d2..7d708ae 100644
>>> --- a/MAINTAINERS
>>> +++ b/MAINTAINERS
>>> @@ -147,6 +147,7 @@ F: lib/librte_eal/common/include/arch/arm/*_64.h
>>>  F: lib/librte_acl/acl_run_neon.*
>>>  F: lib/librte_lpm/rte_lpm_neon.h
>>>  F: lib/librte_hash/rte*_arm64.h
>>> +F: lib/librte_efd/rte*_arm64.h
>>>  F: drivers/net/ixgbe/ixgbe_rxtx_vec_neon.c
>>>  F: drivers/net/i40e/i40e_rxtx_vec_neon.c
>>>  F: drivers/net/virtio/virtio_rxtx_simple_neon.c
>>> diff --git a/lib/librte_efd/rte_efd.c b/lib/librte_efd/rte_efd.c
>>> index f601d62..4d9a088 100644
>>> --- a/lib/librte_efd/rte_efd.c
>>> +++ b/lib/librte_efd/rte_efd.c
>>> @@ -53,6 +53,8 @@
>>>  #include "rte_efd.h"
>>>  #if defined(RTE_ARCH_X86)
>>>  #include "rte_efd_x86.h"
>>> +#elif defined(RTE_ARCH_ARM64)
>>> +#include "rte_efd_arm64.h"
>>>  #endif
>>>
>>>  #define EFD_KEY(key_idx, table) (table->keys + ((key_idx) * table->key_len))
>>> @@ -103,6 +105,7 @@ allocated memory
>>>  enum efd_lookup_internal_function {
>>>         EFD_LOOKUP_SCALAR = 0,
>>>         EFD_LOOKUP_AVX2,
>>> +       EFD_LOOKUP_NEON,
>>
>> Should it be included in "if defined(RTE_ARCH_ARM64)"?
>>
> The enum can be wrapped under "if defined(RTE_ARCH_ARM64)" with no
> issues, as all its usages are also under "if defined(RTE_ARCH_ARM64)".
> I followed EFD_LOOKUP_AVX2 and defined EFD_LOOKUP_NEON on the same lines.
> Please advise on whether this change is to be made. Will follow your advice.

Yes, please do that.

  reply	other threads:[~2017-05-02  1:56 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-27 11:42 [dpdk-dev] [PATCH] " Ashwin Sekhar T K
2017-04-27 12:44 ` [dpdk-dev] [PATCH v2] " Ashwin Sekhar T K
2017-04-28 10:06   ` Jianbo Liu
2017-04-28 10:38     ` Sekhar, Ashwin
2017-05-02  1:56       ` Jianbo Liu [this message]
2017-07-03 13:29   ` Thomas Monjalon
2017-05-02  5:59 ` [dpdk-dev] [PATCH v3] " Ashwin Sekhar T K
2017-05-02  6:41   ` Jerin Jacob
2017-05-02  7:59     ` Jianbo Liu
2017-05-02  8:04       ` Sekhar, Ashwin
2017-06-29 20:58         ` 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=CAP4Qi3-bVYAW8Z67Aui_iHtQFP+0_XgMPmFJ_r+VJ35a_zWrmQ@mail.gmail.com \
    --to=jianbo.liu@linaro.org \
    --cc=Ashwin.Sekhar@cavium.com \
    --cc=Jerin.JacobKollanukkaran@cavium.com \
    --cc=byron.marohn@intel.com \
    --cc=dev@dpdk.org \
    --cc=pablo.de.lara.guarch@intel.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).