Re: [dpdk-dev] [PATCH v2 07/17] net/i40e: add flow validate function

2016-12-27 Thread Xing, Beilei
> -Original Message- > From: Wu, Jingjing > Sent: Wednesday, December 28, 2016 10:52 AM > To: Xing, Beilei ; Zhang, Helin > > Cc: dev@dpdk.org > Subject: RE: [PATCH v2 07/17] net/i40e: add flow validate function > > > > > > +union i40e_filter_t { > > + struct rte_eth_ethertype_filter

Re: [dpdk-dev] [PATCH v2 03/17] net/i40e: store flow director filter

2016-12-27 Thread Tiwei Bie
On Wed, Dec 28, 2016 at 03:14:55PM +0800, Tiwei Bie wrote: > On Wed, Dec 28, 2016 at 03:10:39PM +0800, Xing, Beilei wrote: > > > > > > > -Original Message- > > > From: Bie, Tiwei > > > Sent: Wednesday, December 28, 2016 11:39 AM > > > To: Xing, Beilei > > > Cc: Wu, Jingjing ; Zhang, Heli

Re: [dpdk-dev] [PATCH v2 12/17] net/i40e: destroy ethertype filter

2016-12-27 Thread Xing, Beilei
> -Original Message- > From: Wu, Jingjing > Sent: Wednesday, December 28, 2016 11:30 AM > To: Xing, Beilei ; Zhang, Helin > > Cc: dev@dpdk.org > Subject: RE: [PATCH v2 12/17] net/i40e: destroy ethertype filter > > > > > const struct rte_flow_ops i40e_flow_ops = { > > .validate = i4

Re: [dpdk-dev] [PATCH v2 15/17] net/i40e: add flow flush function

2016-12-27 Thread Xing, Beilei
> -Original Message- > From: Bie, Tiwei > Sent: Wednesday, December 28, 2016 3:01 PM > To: Xing, Beilei > Cc: Wu, Jingjing ; Zhang, Helin > ; dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v2 15/17] net/i40e: add flow flush function > > On Wed, Dec 28, 2016 at 02:48:02PM +0800, Xing, Bei

Re: [dpdk-dev] [PATCH v2 03/17] net/i40e: store flow director filter

2016-12-27 Thread Tiwei Bie
On Wed, Dec 28, 2016 at 03:10:39PM +0800, Xing, Beilei wrote: > > > > -Original Message- > > From: Bie, Tiwei > > Sent: Wednesday, December 28, 2016 11:39 AM > > To: Xing, Beilei > > Cc: Wu, Jingjing ; Zhang, Helin > > ; dev@dpdk.org > > Subject: Re: [dpdk-dev] [PATCH v2 03/17] net/i40e:

Re: [dpdk-dev] [PATCH v2 03/17] net/i40e: store flow director filter

2016-12-27 Thread Xing, Beilei
> -Original Message- > From: Bie, Tiwei > Sent: Wednesday, December 28, 2016 11:39 AM > To: Xing, Beilei > Cc: Wu, Jingjing ; Zhang, Helin > ; dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v2 03/17] net/i40e: store flow director filter > > On Tue, Dec 27, 2016 at 02:26:10PM +0800, Beile

Re: [dpdk-dev] [PATCH v2 15/17] net/i40e: add flow flush function

2016-12-27 Thread Tiwei Bie
On Wed, Dec 28, 2016 at 02:48:02PM +0800, Xing, Beilei wrote: > > -Original Message- > > From: Bie, Tiwei > > Sent: Wednesday, December 28, 2016 1:36 PM > > To: Xing, Beilei > > Cc: Wu, Jingjing ; Zhang, Helin > > ; dev@dpdk.org > > Subject: Re: [dpdk-dev] [PATCH v2 15/17] net/i40e: add fl

Re: [dpdk-dev] [PATCH v2 12/17] net/i40e: destroy ethertype filter

2016-12-27 Thread Xing, Beilei
> -Original Message- > From: Bie, Tiwei > Sent: Wednesday, December 28, 2016 12:56 PM > To: Xing, Beilei > Cc: Wu, Jingjing ; Zhang, Helin > ; dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v2 12/17] net/i40e: destroy ethertype filter > > On Tue, Dec 27, 2016 at 02:26:19PM +0800, Beilei

Re: [dpdk-dev] [PATCH v2 15/17] net/i40e: add flow flush function

2016-12-27 Thread Xing, Beilei
> -Original Message- > From: Bie, Tiwei > Sent: Wednesday, December 28, 2016 1:36 PM > To: Xing, Beilei > Cc: Wu, Jingjing ; Zhang, Helin > ; dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v2 15/17] net/i40e: add flow flush function > > On Tue, Dec 27, 2016 at 02:26:22PM +0800, Beilei Xing

Re: [dpdk-dev] [PATCH v2 15/17] net/i40e: add flow flush function

2016-12-27 Thread Tiwei Bie
On Tue, Dec 27, 2016 at 02:26:22PM +0800, Beilei Xing wrote: > This patch adds i40e_flow_flush function to flush all > filters for users. And flow director flush function > is involved first. > > Signed-off-by: Beilei Xing > --- > drivers/net/i40e/i40e_ethdev.h | 3 +++ > drivers/net/i40e/i40e_

[dpdk-dev] Fw: Packet is not being sent

2016-12-27 Thread April Teodoro
From: April Teodoro Sent: Wednesday, December 28, 2016 1:36 PM To: dev@dpdk.org Subject: Packet is not being sent i, I am wondering what is causing the packet to be dropped. Please help me. The mempool was created and retrieved via lookup The port and queues

[dpdk-dev] Packet is not being sent

2016-12-27 Thread April Teodoro
i, I am wondering what is causing the packet to be dropped. Please help me. The mempool was created and retrieved via lookup The port and queues have been verified to be correct. However, according to stats, no packet is transmitted, although rte_eth_tx_burst returns 1. I also do not receive a

Re: [dpdk-dev] [PATCH v2 12/17] net/i40e: destroy ethertype filter

2016-12-27 Thread Tiwei Bie
On Tue, Dec 27, 2016 at 02:26:19PM +0800, Beilei Xing wrote: > This patch adds i40e_dev_destroy_ethertype_filter function > to destroy a ethertype filter for users. > > Signed-off-by: Beilei Xing > --- > drivers/net/i40e/i40e_ethdev.c | 10 ++--- > drivers/net/i40e/i40e_ethdev.h | 5 + >

Re: [dpdk-dev] [PATCH v2 07/17] net/i40e: add flow validate function

2016-12-27 Thread Tiwei Bie
On Tue, Dec 27, 2016 at 02:26:14PM +0800, Beilei Xing wrote: > This patch adds i40e_flow_validation function to check if > a flow is valid according to the flow pattern. > i40e_parse_ethertype_filter is added first, it also gets > the ethertype info. > i40e_flow.c is added to handle all generic fil

Re: [dpdk-dev] [PATCH 13/13] i40e: improve message grepability

2016-12-27 Thread Wu, Jingjing
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Michal Miroslaw > Sent: Tuesday, December 13, 2016 9:08 AM > To: dev@dpdk.org > Subject: [dpdk-dev] [PATCH 13/13] i40e: improve message grepability > > Signed-off-by: Michał Mirosław > --- > drivers/net/i40e/i4

Re: [dpdk-dev] [PATCH 12/13] i40e: return -errno when intr setup fails

2016-12-27 Thread Wu, Jingjing
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Michal Miroslaw > Sent: Tuesday, December 13, 2016 9:08 AM > To: dev@dpdk.org > Subject: [dpdk-dev] [PATCH 12/13] i40e: return -errno when intr setup fails > > Signed-off-by: Michał Mirosław > --- > drivers/net

Re: [dpdk-dev] [PATCH v2 03/17] net/i40e: store flow director filter

2016-12-27 Thread Tiwei Bie
On Tue, Dec 27, 2016 at 02:26:10PM +0800, Beilei Xing wrote: > Currently there's no flow director filter stored in SW. This > patch stores flow director filters in SW with cuckoo hash, > also adds protection if a flow director filter has been added. > > Signed-off-by: Beilei Xing > --- > drivers

Re: [dpdk-dev] [PATCH v2 02/17] net/i40e: store tunnel filter

2016-12-27 Thread Tiwei Bie
On Tue, Dec 27, 2016 at 02:26:09PM +0800, Beilei Xing wrote: > Currently there's no tunnel filter stored in SW. > This patch stores tunnel filter in SW with cuckoo > hash, also adds protection if a tunnel filter has > been added. > > Signed-off-by: Beilei Xing > --- > drivers/net/i40e/i40e_ethde

Re: [dpdk-dev] [PATCH v2 12/17] net/i40e: destroy ethertype filter

2016-12-27 Thread Wu, Jingjing
> > const struct rte_flow_ops i40e_flow_ops = { > .validate = i40e_flow_validate, > @@ -1492,11 +1495,16 @@ i40e_flow_destroy(__rte_unused struct > rte_eth_dev *dev, > struct rte_flow *flow, > struct rte_flow_error *error) > { > + struct i40e_pf *pf = I4

Re: [dpdk-dev] [PATCH v2 01/17] net/i40e: store ethertype filter

2016-12-27 Thread Tiwei Bie
On Tue, Dec 27, 2016 at 02:26:08PM +0800, Beilei Xing wrote: > Currently there's no ethertype filter stored in SW. > This patch stores ethertype filter with cuckoo hash > in SW, also adds protection if an ethertype filter > has been added. > > Signed-off-by: Beilei Xing > --- > drivers/net/i40e/

Re: [dpdk-dev] [PATCH v2 07/17] net/i40e: add flow validate function

2016-12-27 Thread Wu, Jingjing
> > +union i40e_filter_t { > + struct rte_eth_ethertype_filter ethertype_filter; > + struct rte_eth_fdir_filter fdir_filter; > + struct rte_eth_tunnel_filter_conf tunnel_filter; } cons_filter; > + > +typedef int (*parse_filter_t)(struct rte_eth_dev *dev, > +

Re: [dpdk-dev] [PATCH v2 04/17] net/i40e: restore ethertype filter

2016-12-27 Thread Wu, Jingjing
> -Original Message- > From: Xing, Beilei > Sent: Tuesday, December 27, 2016 2:26 PM > To: Wu, Jingjing ; Zhang, Helin > Cc: dev@dpdk.org > Subject: [PATCH v2 04/17] net/i40e: restore ethertype filter > > Add support of restoring ethertype filter in case filter dropped > accidentally,

Re: [dpdk-dev] [PATCH v2 01/17] net/i40e: store ethertype filter

2016-12-27 Thread Wu, Jingjing
> + > +/* Delete ethertype filter in SW list */ static int > +i40e_sw_ethertype_filter_del(struct i40e_pf *pf, > + struct i40e_ethertype_filter *filter) { > + struct i40e_ethertype_rule *ethertype_rule = &pf->ethertype; > + int ret = 0; > + > + ret = rte_hash_de

[dpdk-dev] [PATCH v2] crypto/aesni_gcm: migration from MB library to ISA-L

2016-12-27 Thread Michal Jastrzebski
From: Piotr Azarewicz Current Cryptodev AESNI-GCM PMD is implemented using AESNI-MB library.This patch reimplement Cryptodev AESni-GCM using ISA-L Crypto library: https://github.com/01org/isa-l_crypto. In new version 256-bit key support and AAD variable length is available. Verified current unit

Re: [dpdk-dev] [PATCH v3 0/6] Add MACsec offload support for ixgbe

2016-12-27 Thread Tiwei Bie
Hi Adrien, On Tue, Dec 27, 2016 at 03:37:46PM +0100, Adrien Mazarguil wrote: > Hi Tiwei, > > On Tue, Dec 27, 2016 at 09:33:31AM +0800, Tiwei Bie wrote: > > Hi Adrien, > > > > On Mon, Dec 26, 2016 at 04:15:37PM +0100, Adrien Mazarguil wrote: > > > Hi Tiwei, > > > > > > On Sun, Dec 25, 2016 at 10

[dpdk-dev] DPDK Acceleartion Enhancement - compression

2016-12-27 Thread Ant loves honey
Is this the correct forum to ask question about adding code for DPDK Acceleration Enhancement?  Or this is strictly for code review? If so, please direct me to the correct forum. I have already read these 2 documents: - http://dpdk.org/doc/guides/ cryptodevs/qat.html - http://dpdk.org/d

Re: [dpdk-dev] [PATCH v3 0/6] Add MACsec offload support for ixgbe

2016-12-27 Thread Adrien Mazarguil
Hi Tiwei, On Tue, Dec 27, 2016 at 09:33:31AM +0800, Tiwei Bie wrote: > Hi Adrien, > > On Mon, Dec 26, 2016 at 04:15:37PM +0100, Adrien Mazarguil wrote: > > Hi Tiwei, > > > > On Sun, Dec 25, 2016 at 10:57:54PM +0800, Tiwei Bie wrote: > > > This patch set adds the MACsec offload support for ixgbe.

[dpdk-dev] [PATCH v3] ethtool: dispaly bus info and firmware version

2016-12-27 Thread Qiming Yang
This patch enhances the ethtool example to support to show bus information and firmware version, in the same way that the Linux kernel ethtool does. Signed-off-by: Qiming Yang --- v3 changes: * split this patch from the patch set of rte_eth_dev_fw_info_get use the new version function. --- --

Re: [dpdk-dev] [PATCH v2 07/17] net/i40e: add flow validate function

2016-12-27 Thread Adrien Mazarguil
Hi Beilei, A few comments below. On Tue, Dec 27, 2016 at 02:26:14PM +0800, Beilei Xing wrote: > This patch adds i40e_flow_validation function to check if > a flow is valid according to the flow pattern. > i40e_parse_ethertype_filter is added first, it also gets > the ethertype info. > i40e_flow.c

Re: [dpdk-dev] [PATCH v2 15/17] net/i40e: add flow flush function

2016-12-27 Thread Adrien Mazarguil
Hi Beilei, On Tue, Dec 27, 2016 at 02:26:22PM +0800, Beilei Xing wrote: > This patch adds i40e_flow_flush function to flush all > filters for users. And flow director flush function > is involved first. > > Signed-off-by: Beilei Xing > --- > drivers/net/i40e/i40e_ethdev.h | 3 +++ > drivers/ne

[dpdk-dev] [PATCH v3 4/4] net/i40e: add firmware version get

2016-12-27 Thread Qiming Yang
This patch add a new function i40e_fw_version_get. Signed-off-by: Qiming Yang --- v3 changes: * use i40e_fw_version_get(struct rte_eth_dev *dev, u32 *fw_major, u32 *fw_minor, __rte_unused u32 *fw_patch, u32 *etrack_id) instead of i40e_fw_version_get(struct rte_eth_dev *dev, char *fw_ver

[dpdk-dev] [PATCH v3 3/4] net/ixgbe: add firmware version get

2016-12-27 Thread Qiming Yang
This patch add a new function ixgbe_fw_version_get. Signed-off-by: Qiming Yang --- v3 changes: * use ixgbe_fw_version_get(struct rte_eth_dev *dev, __rte_unused u32 *fw_major, __rte_unused u32 *fw_minor, __rte_unused u32 *fw_patch, u32 *etrack_id) instead of ixgbe_fw_version_get(struct

[dpdk-dev] [PATCH v3 1/4] ethdev: add firmware information get

2016-12-27 Thread Qiming Yang
This patch adds a new API 'rte_eth_dev_fw_info_get' for fetching firmware related information by a given device. Signed-off-by: Qiming Yang Acked-by: Remy Horton --- v2 changes: * modified some comment statements. v3 changes: * change API, use rte_eth_dev_fw_info_get(uint8_t port_id, uint32_t

[dpdk-dev] [PATCH v3 2/4] net/e1000: add firmware version get

2016-12-27 Thread Qiming Yang
This patch adds a new function eth_igb_fw_version_get. Signed-off-by: Qiming Yang --- v3 changes: * use eth_igb_fw_version_get(struct rte_eth_dev *dev, u32 *fw_major, u32 *fw_minor, u32 *fw_minor, u32 *fw_patch, u32 *etrack_id) instead of eth_igb_fw_version_get(struct rte_eth_dev *dev, cha

[dpdk-dev] [PATCH v3 0/4] new API 'rte_eth_dev_fw_info_get'

2016-12-27 Thread Qiming Yang
These four patches added a new function ``rte_eth_dev_fwver_get()`` to fetch firmware related information by a given device. Information include major firmware version, minor firmware version, patch number and etrack id. Qiming Yang (4): ethdev: add firmware information get net/e1000: add firm

Re: [dpdk-dev] [PATCH] net/mlx5: fix multi segment packet send

2016-12-27 Thread Adrien Mazarguil
Hi Shahaf, On Mon, Dec 26, 2016 at 05:28:36PM +0200, Shahaf Shuler wrote: > Dseg pointer is not initialised when the first segment is inlined > causing a segmentation fault in such situation. > > Fixes: 2a66cf378954 ("net/mlx5: support inline send") > > CC: sta...@dpdk.org > Signed-off-by: Shaha

[dpdk-dev] [PATCH 2/2] app/testpmd: remove explicit ixgbe link request

2016-12-27 Thread Jerin Jacob
Removed explicit ixgbe driver linkage request from app/testpmd makefile to mk/rte.app.mk to 1)Maintain the correct link ordering(from higher level libraries to lower level libraries) 2)In shared lib configuration, any application can use ixgbe exposed pmd specific APIs not just testpmd. Signed-off

[dpdk-dev] [PATCH 1/2] net/ixgbe: remove unused global variable

2016-12-27 Thread Jerin Jacob
Removed unused "reg_info" global variable from ixgbe driver. cat build/app/testpmd.map | grep "Allocating common symbols" -A 15 Allocating common symbols Common symbol sizefile reg_info0x18build/lib/librte_pmd_ixgbe.a(ixgbe_ethdev.o) Signed-off-by: Jerin Jacob --- drivers/net/

[dpdk-dev] [PATCH v2 4/4] lib/librte_vhost: improve vhost perf using rte_memset

2016-12-27 Thread Zhiyong Yang
Using rte_memset instead of copy_virtio_net_hdr can bring 3%~4% performance improvements on IA platform from virtio/vhost non-mergeable loopback testing. Two key points have been considered: 1. One variable initialization could be saved, which involves memory store. 2. copy_virtio_net_hdr involves

[dpdk-dev] [PATCH v2 2/4] app/test: add functional autotest for rte_memset

2016-12-27 Thread Zhiyong Yang
The file implements the functional autotest for rte_memset, which validates the new function rte_memset whether to work in a right way. The implementation of test_memcpy.c is used as a reference. Usage: step 1: run ./x86_64-native-linuxapp-gcc/app/test step 2: run command memset_autotest at the ru

[dpdk-dev] [PATCH v2 1/4] eal/common: introduce rte_memset on IA platform

2016-12-27 Thread Zhiyong Yang
Performance drop has been caused in some cases when DPDK code calls glibc function memset. please reference to discussions about memset in http://dpdk.org/ml/archives/dev/2016-October/048628.html It is necessary to introduce more high efficient function to fix it. One important thing about rte_mems

[dpdk-dev] [PATCH v2 3/4] app/test: add performance autotest for rte_memset

2016-12-27 Thread Zhiyong Yang
The file implements the perf autotest for rte_memset. The perf data can be gotten compared between rte_memset and memset when you run it. We can see the perf of rte_memset obviously is better than glibc memset especially for small N bytes. The first column shows the N size for memset & rte_memset.

[dpdk-dev] [PATCH v2 0/4] eal/common: introduce rte_memset and related test

2016-12-27 Thread Zhiyong Yang
DPDK code has met performance drop badly in some case when calling glibc function memset. Reference to discussions about memset in http://dpdk.org/ml/archives/dev/2016-October/048628.html It is necessary to introduce more high efficient function to fix it. One important thing about rte_memset is t

[dpdk-dev] [PATCH v2 29/29] net/vmxnet3: use eal I/O device memory read/write API

2016-12-27 Thread Jerin Jacob
From: Santosh Shukla Replace the raw I/O device memory read/write access with eal abstraction for I/O device memory read/write access to fix portability issues across different architectures. CC: Yong Wang Signed-off-by: Santosh Shukla Signed-off-by: Jerin Jacob --- drivers/net/vmxnet3/vmxne

[dpdk-dev] [PATCH v2 28/29] net/virtio: use eal I/O device memory read/write API

2016-12-27 Thread Jerin Jacob
From: Santosh Shukla Replace the raw I/O device memory read/write access with eal abstraction for I/O device memory read/write access to fix portability issues across different architectures. CC: Huawei Xie CC: Yuanhan Liu Signed-off-by: Santosh Shukla Signed-off-by: Jerin Jacob Acked-by: Yu

[dpdk-dev] [PATCH v2 26/29] net/qede: use eal I/O device memory read/write API

2016-12-27 Thread Jerin Jacob
From: Santosh Shukla Replace the raw I/O device memory read/write access with eal abstraction for I/O device memory read/write access to fix portability issues across different architectures. CC: Harish Patil CC: Rasesh Mody Signed-off-by: Santosh Shukla Signed-off-by: Jerin Jacob --- drive

[dpdk-dev] [PATCH v2 27/29] net/thunderx: use eal I/O device memory read/write API

2016-12-27 Thread Jerin Jacob
Replace the raw I/O device memory read/write access with eal abstraction for I/O device memory read/write access to fix portability issues across different architectures. Signed-off-by: Jerin Jacob --- drivers/net/thunderx/base/nicvf_plat.h | 36 -- 1 file changed

[dpdk-dev] [PATCH v2 25/29] net/nfp: use eal I/O device memory read/write API

2016-12-27 Thread Jerin Jacob
From: Santosh Shukla Replace the raw I/O device memory read/write access with eal abstraction for I/O device memory read/write access to fix portability issues across different architectures. CC: Alejandro Lucero Signed-off-by: Santosh Shukla Signed-off-by: Jerin Jacob --- drivers/net/nfp/nf

[dpdk-dev] [PATCH v2 23/29] net/i40e: use eal I/O device memory read/write API

2016-12-27 Thread Jerin Jacob
From: Santosh Shukla Replace the raw I/O device memory read/write access with eal abstraction for I/O device memory read/write access to fix portability issues across different architectures. CC: Helin Zhang CC: Jingjing Wu Signed-off-by: Santosh Shukla Signed-off-by: Satha Rao Signed-off-by

[dpdk-dev] [PATCH v2 24/29] net/ixgbe: use eal I/O device memory read/write API

2016-12-27 Thread Jerin Jacob
From: Santosh Shukla Replace the raw I/O device memory read/write access with eal abstraction for I/O device memory read/write access to fix portability issues across different architectures. CC: Helin Zhang CC: Konstantin Ananyev Signed-off-by: Santosh Shukla Signed-off-by: Jerin Jacob ---

[dpdk-dev] [PATCH v2 22/29] net/fm10k: use eal I/O device memory read/write API

2016-12-27 Thread Jerin Jacob
From: Santosh Shukla Replace the raw I/O device memory read/write access with eal abstraction for I/O device memory read/write access to fix portability issues across different architectures. CC: Jing Chen Signed-off-by: Santosh Shukla Signed-off-by: Jerin Jacob --- drivers/net/fm10k/base/fm

[dpdk-dev] [PATCH v2 20/29] net/ena: use eal I/O device memory read/write API

2016-12-27 Thread Jerin Jacob
From: Santosh Shukla Replace the raw I/O device memory read/write access with eal abstraction for I/O device memory read/write access to fix portability issues across different architectures. CC: Jan Medala CC: Jakub Palider Signed-off-by: Santosh Shukla Signed-off-by: Jerin Jacob Acked-by:

[dpdk-dev] [PATCH v2 21/29] net/enic: use eal I/O device memory read/write API

2016-12-27 Thread Jerin Jacob
From: Santosh Shukla Replace the raw I/O device memory read/write access with eal abstraction for I/O device memory read/write access to fix portability issues across different architectures. CC: John Daley CC: Nelson Escobar Signed-off-by: Santosh Shukla Signed-off-by: Jerin Jacob --- driv

[dpdk-dev] [PATCH v2 18/29] net/cxgbe: use eal I/O device memory read/write API

2016-12-27 Thread Jerin Jacob
From: Santosh Shukla Replace the raw I/O device memory read/write access with eal abstraction for I/O device memory read/write access to fix portability issues across different architectures. CC: Rahul Lakkireddy Signed-off-by: Santosh Shukla Signed-off-by: Jerin Jacob --- drivers/net/cxgbe/

[dpdk-dev] [PATCH v2 19/29] net/e1000: use eal I/O device memory read/write API

2016-12-27 Thread Jerin Jacob
From: Santosh Shukla Replace the raw I/O device memory read/write access with eal abstraction for I/O device memory read/write access to fix portability issues across different architectures. CC: Wenzhuo Lu Signed-off-by: Santosh Shukla Signed-off-by: Jerin Jacob --- drivers/net/e1000/base/e

[dpdk-dev] [PATCH v2 17/29] net/bnx2x: use eal I/O device memory read/write API

2016-12-27 Thread Jerin Jacob
From: Santosh Shukla Replace the raw I/O device memory read/write access with eal abstraction for I/O device memory read/write access to fix portability issues across different architectures. CC: Harish Patil CC: Rasesh Mody Signed-off-by: Santosh Shukla Signed-off-by: Jerin Jacob --- drive

[dpdk-dev] [PATCH v2 16/29] net/bnxt: use eal I/O device memory read/write API

2016-12-27 Thread Jerin Jacob
From: Santosh Shukla Replace the raw I/O device memory read/write access with eal abstraction for I/O device memory read/write access to fix portability issues across different architectures. CC: Stephen Hurd CC: Ajit Khaparde Signed-off-by: Santosh Shukla Signed-off-by: Jerin Jacob --- dri

[dpdk-dev] [PATCH v2 14/29] eal/arm64: change barrier definitions to macros

2016-12-27 Thread Jerin Jacob
Change rte_?wb definitions to macros in order to keep consistent with other barrier definitions in the file. Suggested-by: Jianbo Liu Signed-off-by: Jerin Jacob --- .../common/include/arch/arm/rte_atomic_64.h| 36 ++ 1 file changed, 3 insertions(+), 33 deletions(-)

[dpdk-dev] [PATCH v2 15/29] crypto/qat: use eal I/O device memory read/write API

2016-12-27 Thread Jerin Jacob
From: Santosh Shukla Replace the raw I/O device memory read/write access with eal abstraction for I/O device memory read/write access to fix portability issues across different architectures. CC: John Griffin CC: Fiona Trahe CC: Deepak Kumar Jain Signed-off-by: Santosh Shukla Signed-off-by:

[dpdk-dev] [PATCH v2 13/29] eal/arm64: override I/O device read/write access for arm64

2016-12-27 Thread Jerin Jacob
Override the generic I/O device memory read/write access and implement it using armv8 instructions for arm64. Signed-off-by: Jerin Jacob --- lib/librte_eal/common/include/arch/arm/rte_io.h| 4 + lib/librte_eal/common/include/arch/arm/rte_io_64.h | 159 + 2 files changed

[dpdk-dev] [PATCH v2 09/29] eal/arm64: define I/O device memory barriers for arm64

2016-12-27 Thread Jerin Jacob
CC: Jianbo Liu Signed-off-by: Jerin Jacob --- lib/librte_eal/common/include/arch/arm/rte_atomic_64.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/lib/librte_eal/common/include/arch/arm/rte_atomic_64.h b/lib/librte_eal/common/include/arch/arm/rte_atomic_64.h index 78ebea2..ef0efc7 1

[dpdk-dev] [PATCH v2 12/29] eal: let all architectures use generic I/O implementation

2016-12-27 Thread Jerin Jacob
Signed-off-by: Jerin Jacob --- lib/librte_eal/common/include/arch/arm/rte_io.h| 47 ++ lib/librte_eal/common/include/arch/ppc_64/rte_io.h | 47 ++ lib/librte_eal/common/include/arch/tile/rte_io.h | 47 ++ lib/librte_eal/common/incl

[dpdk-dev] [PATCH v2 11/29] eal: generic implementation for I/O device read/write access

2016-12-27 Thread Jerin Jacob
This patch implements the generic version of rte_read[b/w/l/q]_[relaxed] and rte_write[b/w/l/q]_[relaxed] using rte_io_wmb() and rte_io_rmb() Signed-off-by: Jerin Jacob --- lib/librte_eal/common/include/generic/rte_io.h | 54 ++ 1 file changed, 54 insertions(+) diff --gi

[dpdk-dev] [PATCH v2 10/29] eal: introduce I/O device memory read/write operations

2016-12-27 Thread Jerin Jacob
This commit introduces 8-bit, 16-bit, 32bit, 64bit I/O device memory read/write operations along with the relaxed versions. The weakly-ordered machine like ARM needs additional I/O barrier for device memory read/write access over PCI bus. By introducing the eal abstraction for I/O device memory re

[dpdk-dev] [PATCH v2 06/29] eal/armv7: define I/O device memory barriers for ARMv7

2016-12-27 Thread Jerin Jacob
The patch does not provide any functional change for ARMv7. I/O barriers are mapped to existing smp barriers. CC: Jan Viktorin CC: Jianbo Liu Signed-off-by: Jerin Jacob --- lib/librte_eal/common/include/arch/arm/rte_atomic_32.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/lib/libr

[dpdk-dev] [PATCH v2 08/29] eal/arm64: define smp barrier definition for arm64

2016-12-27 Thread Jerin Jacob
dmb instruction based barrier is used for smp version of memory barrier. Signed-off-by: Jerin Jacob --- lib/librte_eal/common/include/arch/arm/rte_atomic_64.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/librte_eal/common/include/arch/arm/rte_atomic_64.h b/lib/l

[dpdk-dev] [PATCH v2 07/29] eal/arm64: fix memory barrier definition for arm64

2016-12-27 Thread Jerin Jacob
dsb instruction based barrier is used for non smp version of memory barrier. Fixes: d708f01b7102 ("eal/arm: add atomic operations for ARMv8") CC: Jianbo Liu CC: sta...@dpdk.org Signed-off-by: Jerin Jacob --- lib/librte_eal/common/include/arch/arm/rte_atomic_64.h | 9 + 1 file changed,

[dpdk-dev] [PATCH v2 04/29] eal/ppc64: define I/O device memory barriers for ppc64

2016-12-27 Thread Jerin Jacob
The patch does not provide any functional change for ppc_64. I/O barriers are mapped to existing smp barriers. CC: Chao Zhu Signed-off-by: Jerin Jacob --- lib/librte_eal/common/include/arch/ppc_64/rte_atomic.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/lib/librte_eal/common/inclu

[dpdk-dev] [PATCH v2 03/29] eal/tile: define I/O device memory barriers for tile

2016-12-27 Thread Jerin Jacob
The patch does not provide any functional change for tile. I/O barriers are mapped to existing smp barriers. CC: Zhigang Lu Signed-off-by: Jerin Jacob --- lib/librte_eal/common/include/arch/tile/rte_atomic.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/lib/librte_eal/common/include

[dpdk-dev] [PATCH v2 05/29] eal/arm: separate smp barrier definition for ARMv7 and ARMv8

2016-12-27 Thread Jerin Jacob
Separate the smp barrier definition for arm and arm64 for fine control on smp barrier definition for each architecture. Signed-off-by: Jerin Jacob --- lib/librte_eal/common/include/arch/arm/rte_atomic.h| 6 -- lib/librte_eal/common/include/arch/arm/rte_atomic_32.h | 6 ++ lib/librte_

[dpdk-dev] [PATCH v2 01/29] eal: introduce I/O device memory barriers

2016-12-27 Thread Jerin Jacob
This commit introduce rte_io_mb(), rte_io_wmb() and rte_io_rmb(), in order to enable memory barriers between I/O device and CPU. Signed-off-by: Jerin Jacob --- lib/librte_eal/common/include/generic/rte_atomic.h | 27 ++ 1 file changed, 27 insertions(+) diff --git a/lib/librt

[dpdk-dev] [PATCH v2 02/29] eal/x86: define I/O device memory barriers for IA

2016-12-27 Thread Jerin Jacob
The patch does not provide any functional change for IA. I/O barriers are mapped to existing smp barriers. CC: Bruce Richardson CC: Konstantin Ananyev Signed-off-by: Jerin Jacob --- lib/librte_eal/common/include/arch/x86/rte_atomic.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/li

[dpdk-dev] [PATCH v2 00/29] introduce I/O device memory read/write operations

2016-12-27 Thread Jerin Jacob
v1..v2: 1) Changed rte_[read/write]b/w/l/q_[relaxed] to rte_[read/write]8/16/32/64_[relaxed](Yuanhan) 2) Changed rte_?mb to macros for arm64(Jianbo) 3) rte_wmb() followed by rte_write* changed to rte_wmb() followed by relaxed version(rte_write_relaxed) in _fast_ path to avoid an extra memory ba

Re: [dpdk-dev] [PATCH v4] app/testpmd: supported offload capabilities query

2016-12-27 Thread Xing, Beilei
> -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Qiming Yang > Sent: Friday, December 23, 2016 5:32 PM > To: dev@dpdk.org > Cc: Wu, Jingjing ; Yang, Qiming > > Subject: [dpdk-dev] [PATCH v4] app/testpmd: supported offload capabilities > query > > Add two new com

Re: [dpdk-dev] [PATCH v4] app/testpmd: supported offload capabilities query

2016-12-27 Thread Yang, Qiming
Hi, Beilei Nothing is missing. This capability have no switch in DPDK now. So it don't have 'on' or 'off'. -Original Message- From: Xing, Beilei Sent: Tuesday, December 27, 2016 4:18 PM To: Yang, Qiming ; dev@dpdk.org Cc: Wu, Jingjing ; Yang, Qiming Subject: RE: [dpdk-dev] [PATCH v4] ap

Re: [dpdk-dev] [PATCH v4] app/testpmd: supported offload capabilities query

2016-12-27 Thread Xing, Beilei
Hi Qiming, > -Original Message- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Qiming Yang > Sent: Friday, December 23, 2016 5:32 PM > To: dev@dpdk.org > Cc: Wu, Jingjing ; Yang, Qiming > > Subject: [dpdk-dev] [PATCH v4] app/testpmd: supported offload capabilities > query > > Add