[dpdk-dev] [PATCH v4 2/8] lib/librte_ether: defind RX/TX lock mode

2016-06-13 Thread Ananyev, Konstantin
Hi Wenzhuo, > > Hi Konstantin, > > > > -Original Message- > > From: Ananyev, Konstantin > > Sent: Wednesday, June 8, 2016 5:20 PM > > To: Lu, Wenzhuo; Tao, Zhe; dev at dpdk.org > > Cc: Richardson, Bruce; Chen, Jing D; Liang, Cunming; Wu, Jingjing; Zhang, > > Helin > > Subject: RE:

[dpdk-dev] [PATCH v2 2/2] igb: VF supports mailbox interruption for PF link up/down

2016-06-13 Thread Wu, Jingjing
> -Original Message- > From: Lu, Wenzhuo > Sent: Wednesday, June 01, 2016 9:53 AM > To: dev at dpdk.org > Cc: Wu, Jingjing; Lu, Wenzhuo > Subject: [PATCH v2 2/2] igb: VF supports mailbox interruption for PF link > up/down > > In this scenario, kernel PF + DPDK VF, when PF finds the link

[dpdk-dev] [PATCH v4 2/8] lib/librte_ether: defind RX/TX lock mode

2016-06-13 Thread Lu, Wenzhuo
Hi Konstantin, > -Original Message- > From: Ananyev, Konstantin > Sent: Monday, June 13, 2016 7:17 AM > To: Lu, Wenzhuo; Tao, Zhe; dev at dpdk.org > Cc: Richardson, Bruce; Chen, Jing D; Liang, Cunming; Wu, Jingjing; Zhang, > Helin > Subject: RE: [PATCH v4 2/8] lib/librte_ether: defind

[dpdk-dev] [PATCH] i40e: fix link management

2016-06-13 Thread Peng, Yuan
Tested-by: Peng Yuan - Test Commit: 4cc20da049e0614eee99aeb097e648dbfa9fc655 - OS/Kernel: Fedora 23/4.2.3 - GCC: gcc version 5.3.1 20151207 (Red Hat 5.3.1-2) (GCC) - CPU: Intel(R) Xeon(R) CPU E5-2699 v3 @ 2.30GHz - Total 2 cases, 2 passed, 0 failed. Case 1 After "set link-down port 0", the

[dpdk-dev] [PATCH v2] i40e: fix olflags for vector RX

2016-06-13 Thread Zhe Tao
Problem: The flag for RSS and flow director is not set correctly in the vector RX function, so the upper layer APP which base on the related flags will not work correctly. Fix this problem by change the shuffle table. the original shuffle table is not correct. Fixes: 9ed94 (i40e: add vector Rx)

[dpdk-dev] [PATCH v8 0/6] virtio support for container

2016-06-13 Thread Jianfeng Tan
v8: - Change to use max_queue_pairs instead of queue_pairs to initialize and deinitialize queues. - Remove vhost-kernel support. v7: - CONFIG_RTE_VIRTIO_VDEV -> CONFIG_RTE_VIRTIO_USER; and corresondingly, RTE_VIRTIO_VDEV -> RTE_VIRTIO_USER. - uint64_t -> uintptr_t, so that it can be

[dpdk-dev] [PATCH v8 1/6] virtio: hide phys addr check inside pci ops

2016-06-13 Thread Jianfeng Tan
This patch is to move phys addr check from virtio_dev_queue_setup to pci ops. To makt that happen, make sure virtio_ops.setup_queue return the result if we pass through the check. Signed-off-by: Jianfeng Tan Signed-off-by: Huawei Xie Acked-by: Yuanhan Liu ---

[dpdk-dev] [PATCH v8 2/6] virtio: enable use virtual address to fill desc

2016-06-13 Thread Jianfeng Tan
This patch is related to how to calculate relative address for vhost backend. The principle is that: based on one or multiple shared memory regions, vhost maintains a reference system with the frontend start address, backend start address, and length for each segment, so that each frontend

[dpdk-dev] [PATCH v8 3/6] virtio-user: add vhost user adapter layer

2016-06-13 Thread Jianfeng Tan
This patch is to provide vhost adapter layer implementations. Instead of relying on a hypervisor to translate between device emulation and vhost backend, here we directly talk with vhost backend through the vhost file. Here three main APIs are provided to upper layer (device emulation): -

[dpdk-dev] [PATCH v8 4/6] virtio-user: add device emulation layer APIs

2016-06-13 Thread Jianfeng Tan
Two device emulation layer APIs are added for virtio driver to call: - virtio_user_start_device() - virtio_user_stop_device() - virtio_user_dev_init() - virtio_user_dev_uninit() These APIs will get called by virtio driver, and they call vhost adapter layer APIs to implement the

[dpdk-dev] [PATCH v8 5/6] virtio-user: add new virtual pci driver for virtio

2016-06-13 Thread Jianfeng Tan
This patch implements another new instance of struct virtio_pci_ops to drive the virtio-user virtual device. Instead of rd/wr ioport or PCI configuration space, this virtual pci driver will rd/wr the virtual device struct virtio_user_hw, and when necessary, invokes APIs provided by device

[dpdk-dev] [PATCH v8 6/6] virtio-user: add a new vdev named virtio-user

2016-06-13 Thread Jianfeng Tan
Add a new virtual device named vhost-user, which can be used just like eth_ring, eth_null, etc. To reuse the code of original virtio, we do some adjustment in virtio_ethdev.c, such as remove key _static_ of eth_virtio_dev_init() so that it can be reused in virtual device; and we add some check to

[dpdk-dev] [PATCH v2 0/4] add multi queue support for virtio-user

2016-06-13 Thread Jianfeng Tan
v2: - Move the ctrl queue handler and multi queue logic into device emulation. - Rebase on newest code. This patch set depends on below patch sets: - http://dpdk.org/ml/archives/dev/2016-June/040979.html - http://dpdk.org/ml/archives/dev/2016-June/040954.html Add multi queue support for

[dpdk-dev] [PATCH v2 1/4] virtio-user: use virtual address in cq

2016-06-13 Thread Jianfeng Tan
Change to use virtio_net_hdr_mem instead of physical addr of memzone when sending contrl queue commands. The virtio_net_hdr_mem has been initialized to use virtual address under the case of virtio-user. Signed-off-by: Jianfeng Tan --- drivers/net/virtio/virtio_ethdev.c | 6 +++--- 1 file

[dpdk-dev] [PATCH v2 2/4] virtio-user: add mq in vhost user adapter

2016-06-13 Thread Jianfeng Tan
This patch mainly adds method in vhost user adapter to communicate enable/disable queues messages with vhost user backend. Signed-off-by: Jianfeng Tan --- drivers/net/virtio/virtio_user/vhost.h | 5 + drivers/net/virtio/virtio_user/vhost_user.c | 21 + 2 files

[dpdk-dev] [PATCH v2 3/4] virtio-user: add ctrl-q and mq in device emulation

2016-06-13 Thread Jianfeng Tan
The main purpose of this patch is to enable multi-queue. But multi-queue requires ctrl-queue so that driver can send how many queues will be enabled through ctrl-queue messages. So we partially implement ctrl-queue to handle control command with class of VIRTIO_NET_CTRL_MQ and with cmd of

[dpdk-dev] [PATCH v2 4/4] virtio-user: handle ctrl-q in driver

2016-06-13 Thread Jianfeng Tan
In virtio-user driver, when notify ctrl-queue, invoke API of virtio-user device emulation to handle ctrl-q command. Besides, multi-queue requires ctrl-queue and ctrl-queue will be enabled automatically when multi-queue is specified. Signed-off-by: Jianfeng Tan ---

[dpdk-dev] [PATCH v9 2/3] i40e: add floating VEB support in i40e

2016-06-13 Thread Zhe Tao
This patch add the support for floating VEB in i40e. All the VFs VSIs can decide whether to connect to the legacy VEB/VEPA or the floating VEB. When connect to the floating VEB a new floating VEB is created. Now all the VFs need to connect to floating VEB or legacy VEB, cannot connect to both of

[dpdk-dev] [PATCH v9 1/3] i40e: support floating VEB config

2016-06-13 Thread Zhe Tao
Add the new floating related argument option in the devarg. Using this parameter, all the samples can decide whether to use legacy VEB/VEPA or floating VEB. To enable this feature, the user should pass a devargs parameter to the EAL like "-w 84:00.0,enable_floatingVEB=1", and the application will

[dpdk-dev] [PATCH v9 0/3] i40e: add floating VEB support for i40e

2016-06-13 Thread Zhe Tao
This patch-set add the support for floating VEB in i40e. All the VFs VSIs can decide whether to connect to the legacy VEB/VEPA or the floating VEB. When connect to the floating VEB a new floating VEB is created. Now all the VFs need to connect to floating VEB or legacy VEB, cannot connect to both

[dpdk-dev] [PATCH v9 3/3] i40e: add floating VEB extension support

2016-06-13 Thread Zhe Tao
To enable this feature, the user should pass a devargs parameter to the EAL like "-w 84:00.0,enable_floating=1", and the application will make sure the PMD will use the floating VEB feature for all the VFs created by this PF device. Also you can specifiy which VF need to connect to this floating

[dpdk-dev] Question regarding mempool changes impact to XEN PMD

2016-06-13 Thread Christian Ehrhardt
Hi David, it seems to be the first time I compiled with CONFIG_RTE_LIBRTE_PMD_XENVIRT=y sinec the bigger mempool changes around "587d684d doc: update release notes about mempool allocation". I've seen related patch to mempool / xen in that regard "c042ba20 mempool: rework support of Xen dom0"

[dpdk-dev] run ip_fragmentation with cores in different socket will cause core dump

2016-06-13 Thread Ding, HengX
The following command will cause ip_fragmentation app fail: examples/ip_fragmentation/build/ip_fragmentation -c 0x40002 -n 4 -- -p 0x3 -q 2 while setting core mask to 0x2 or 0x4 will not cause this issue. error message is shown below: EAL: Not managed by a supported kernel driver, skipped

[dpdk-dev] [PATCH v2] i40e: fix olflags for vector RX

2016-06-13 Thread Azarewicz, PiotrX T
> Problem: > The flag for RSS and flow director is not set correctly in the vector RX > function, so the upper layer APP which base on the related flags will not work > correctly. > > Fix this problem by change the shuffle table. the original shuffle table is > not > correct. > > Fixes: 9ed94

[dpdk-dev] [PATCH v10 0/3] i40e: add floating VEB support for i40e

2016-06-13 Thread Zhe Tao
This patch-set add the support for floating VEB in i40e. All the VFs VSIs can decide whether to connect to the legacy VEB/VEPA or the floating VEB. When connect to the floating VEB a new floating VEB is created. Now all the VFs need to connect to floating VEB or legacy VEB, cannot connect to both

[dpdk-dev] [PATCH v10 1/3] i40e: support floating VEB config

2016-06-13 Thread Zhe Tao
Add the new floating related argument option in the devarg. Using this parameter, all the samples can decide whether to use legacy VEB/VEPA or floating VEB. To enable this feature, the user should pass a devargs parameter to the EAL like "-w 84:00.0,enable_floatingVEB=1", and the application will

[dpdk-dev] [PATCH v10 2/3] i40e: add floating VEB support in i40e

2016-06-13 Thread Zhe Tao
This patch add the support for floating VEB in i40e. All the VFs VSIs can decide whether to connect to the legacy VEB/VEPA or the floating VEB. When connect to the floating VEB a new floating VEB is created. Now all the VFs need to connect to floating VEB or legacy VEB, cannot connect to both of

[dpdk-dev] [PATCH v10 3/3] i40e: add floating VEB extension support

2016-06-13 Thread Zhe Tao
To enable this feature, the user should pass a devargs parameter to the EAL like "-w 84:00.0,enable_floatingVEB=1", and the application will make sure the PMD will use the floating VEB feature for all the VFs created by this PF device. Also you can specifiy which VF need to connect to this

[dpdk-dev] Question regarding mempool changes impact to XEN PMD

2016-06-13 Thread Olivier Matz
Hi Christian, On 06/13/2016 09:34 AM, Christian Ehrhardt wrote: > Hi David, I guess this mail is for me, not for David :) > it seems to be the first time I compiled with > CONFIG_RTE_LIBRTE_PMD_XENVIRT=y sinec the bigger mempool changes around > "587d684d doc: update release notes about mempool

[dpdk-dev] [PATCH v4 00/10] Include resources in tests

2016-06-13 Thread Jan Viktorin
Hello, the fourth version with cosmetic changes according to the short IRC discussion. Note, we are adding the libarchive dependency by this patch set. --- v1: * included 5 patches improving the PCI tests * fixed using of non-existing RTE_INIT macro v2: * Makefile macro resource renamed to

[dpdk-dev] [PATCH v4 01/10] app/test: introduce resources for tests

2016-06-13 Thread Jan Viktorin
Certain internal mechanisms of DPDK access different file system structures (e.g. /sys/bus/pci/devices). It is difficult to test those cases automatically by a unit test when such path is not hard-coded and there is no simple way how to distribute fake ones with the current testing environment.

[dpdk-dev] [PATCH v4 02/10] mk: define objcopy-specific target and arch

2016-06-13 Thread Jan Viktorin
The program objcopy uses non-standard conventions to name the target and arch. Define the values for supported architecturesi (tile and ppc_64 are missing). Signed-off-by: Jan Viktorin --- v4: * fixed commit message (removed FIXME) --- mk/arch/arm/rte.vars.mk | 5 +

[dpdk-dev] [PATCH v4 03/10] app/test: support resources externally linked

2016-06-13 Thread Jan Viktorin
To include resources from other source that the C source code we can take advantage of the objcopy behaviour, i.e. packing of an arbitrary file as an object file that is linked to the target program. A linked object file is always accessible as a pair extern const char beg_; extern const char

[dpdk-dev] [PATCH v4 04/10] app/test: add functions to create files from resources

2016-06-13 Thread Jan Viktorin
A resource can be written into the target filesystem by calling resource_fwrite or resource_fwrite_file. Such file can be created before a test is started and removed after the test finishes. Signed-off-by: Jan Viktorin --- app/test/resource.c | 35 +++

[dpdk-dev] [PATCH v4 05/10] app/test: support resources archived by tar

2016-06-13 Thread Jan Viktorin
When a more complex resource (a file hierarchy) is needed, packing every single file as a single resource would be very ineffective. For that purpose, it is possible to pack the files into a tar archive, extract it before test from the resource and finally clean up all the created files. This

[dpdk-dev] [PATCH v4 06/10] app/test: use linked list to store PCI drivers

2016-06-13 Thread Jan Viktorin
The test unregisters all drivers before start. The drivers were stored into a fixed-sized array. This is inflexible. This patch change this to utilize a linked list for the same purpose. Signed-off-by: Jan Viktorin --- v3: * fixed commit message * used "backup" to describe the

[dpdk-dev] [PATCH v4 07/10] app/test: extract test_pci_setup and test_pci_cleanup

2016-06-13 Thread Jan Viktorin
Signed-off-by: Jan Viktorin --- app/test/test_pci.c | 47 ++- 1 file changed, 34 insertions(+), 13 deletions(-) diff --git a/app/test/test_pci.c b/app/test/test_pci.c index 8b7c8bb..50078a0 100644 --- a/app/test/test_pci.c +++ b/app/test/test_pci.c @@

[dpdk-dev] [PATCH v4 08/10] app/test: convert current pci_test into a single test case

2016-06-13 Thread Jan Viktorin
The current test_pci is just a single test case that tests the blacklisting of devices. Rename it to test_pci_blacklist and call it from the test_pci. The setup and cleanup are moved out of the test_pci_blacklist entirely to cover all other tests. Signed-off-by: Jan Viktorin --- v4 * the

[dpdk-dev] [PATCH v4 09/10] eal/pci: allow to override sysfs

2016-06-13 Thread Jan Viktorin
The SYSFS_PCI_DEVICES is a constant that makes the PCI testing difficult as it points to an absolute path. We remove using this constant and introducing a function pci_get_sysfs_path that gives the same value. However, the user can pass a SYSFS_PCI_DEVICES env variable to override the path. It is

[dpdk-dev] [PATCH v4 10/10] app/test: do not dump PCI devices in blacklist test

2016-06-13 Thread Jan Viktorin
Dumping of devices in a unittest is useless. Instead, test whether the test has been set up well - i.e. there are no devices. Signed-off-by: Jan Viktorin --- app/test/test_pci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/test/test_pci.c b/app/test/test_pci.c index

[dpdk-dev] [PATCH] xenvirt: fix compilation after mempool changes

2016-06-13 Thread Olivier Matz
The field elt_va_start has been removed from the mempool structure, and it was not replaced in xenvirt. Fix this by getting the mempool objects address by using the address of the first memory chunk list. Note that it won't work with mempool composed of several chunks, but it was already the

[dpdk-dev] [PATCH 1/1] ip_pipeline: fix null pointer dereference

2016-06-13 Thread Marcin Kerlin
Return value of function app_pipeline_type_find is not checking before dereference. Fix this problem by adding checking condition. Coverity issue: 127196 Fixes: b4aee0fb9c6d ("examples/ip_pipeline: reconfigure thread binding dynamically") Signed-off-by: Marcin Kerlin ---

[dpdk-dev] [PATCH v4 00/10] Include resources in tests

2016-06-13 Thread Jan Viktorin
Oh, I forgot to rebase on the very last HEAD, there is a trivial merge conflict with commit a3f34a98b7217f4ff2a8636096984f566a4e7cab Author: Thomas Monjalon Date: Thu Jun 9 15:49:48 2016 +0200 log: deprecate history dump Should I repost it? Regards Jan On Mon, 13 Jun 2016 10:12:20

[dpdk-dev] Question regarding mempool changes impact to XEN PMD

2016-06-13 Thread Christian Ehrhardt
On Mon, Jun 13, 2016 at 10:14 AM, Olivier Matz wrote: > Hi Christian, > > On 06/13/2016 09:34 AM, Christian Ehrhardt wrote: > > Hi David, > > I guess this mail is for me, not for David :) > Absolutely yes, sorry to both of you to - probably read too much patch headers this morning :-) > > it

[dpdk-dev] run ip_fragmentation with cores in different socket will cause core dump

2016-06-13 Thread Olivier Matz
Hi, On 06/13/2016 09:41 AM, Ding, HengX wrote: > The following command will cause ip_fragmentation app fail: > examples/ip_fragmentation/build/ip_fragmentation -c 0x40002 -n 4 -- -p 0x3 -q > 2 > while setting core mask to 0x2 or 0x4 will not cause this issue. > > error message is shown

[dpdk-dev] [PATCH v8 0/8] add packet capture framework

2016-06-13 Thread Pattan, Reshma
Hi, > -Original Message- > From: Neil Horman [mailto:nhorman at tuxdriver.com] > Sent: Saturday, June 11, 2016 12:23 AM > To: Pattan, Reshma > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v8 0/8] add packet capture framework > > On Fri, Jun 10, 2016 at 05:18:46PM +0100, Reshma

[dpdk-dev] [PATCH] xenvirt: fix compilation after mempool changes

2016-06-13 Thread Christian Ehrhardt
Hi Oliver, thanks for the fast response! It fixes the compilation issue and I totally agree to your argument of the multi-chunk issues being out of scope for this as they never worked. Unfortunately I lack an environment to actually test this in real-life if we need any more follow up than this.

[dpdk-dev] [PATCH] virito: fix reuse index in nested loop

2016-06-13 Thread Yuanhan Liu
On Sun, Jun 12, 2016 at 10:05:45AM +, Jianfeng Tan wrote: > This patches fixes problem of reusing index of outmost loop in nested > loops. This bug will lead to failure when starting a multi queue > virtio device: rx queues (except from the first one) cannot be started, > expecially their

[dpdk-dev] [PATCH v3 6/6] mk: prevent overlinking in applications

2016-06-13 Thread Ferruh Yigit
On 6/11/2016 7:34 AM, Thomas Monjalon wrote: > Hi Ferruh, > > 2016-06-10 19:32, Ferruh Yigit: >> --- a/mk/rte.app.mk >> +++ b/mk/rte.app.mk >> @@ -50,6 +50,14 @@ ifeq ($(NO_LDSCRIPT),) >> LDSCRIPT = $(RTE_LDSCRIPT) >> endif >> >> +ifeq ($(CONFIG_RTE_BUILD_SHARED_LIB),y) >> +# Workaround to

[dpdk-dev] [PATCH] xenvirt: fix compilation after mempool changes

2016-06-13 Thread Christian Ehrhardt
Hmm, Hi again Oliver. I was too fast saying yes. I don't know what is different now but I clearly tested it wrong the first time. Now I get: CC rte_xen_lib.o /mnt/nvme/dpdk-16-07-pre-linking/drivers/net/xenvirt/rte_xen_lib.c: In function ?grant_gntalloc_mbuf_pool?:

[dpdk-dev] [PATCH] virito: fix reuse index in nested loop

2016-06-13 Thread Tan, Jianfeng
> -Original Message- > From: Yuanhan Liu [mailto:yuanhan.liu at linux.intel.com] > Sent: Monday, June 13, 2016 4:58 PM > To: Tan, Jianfeng > Cc: dev at dpdk.org; Xie, Huawei > Subject: Re: [PATCH] virito: fix reuse index in nested loop > > On Sun, Jun 12, 2016 at 10:05:45AM +,

[dpdk-dev] [PATCH] xenvirt: fix compilation after mempool changes

2016-06-13 Thread Olivier Matz
On 06/13/2016 11:10 AM, Christian Ehrhardt wrote: > Hmm, > Hi again Oliver. > > I was too fast saying yes. > I don't know what is different now but I clearly tested it wrong the > first time. > Now I get: > > CC rte_xen_lib.o >

[dpdk-dev] [PATCH v3 3/4] bonding: take queue spinlock in rx/tx burst functions

2016-06-13 Thread Bruce Richardson
On Sun, Jun 12, 2016 at 06:11:28PM +0100, Bernard Iremonger wrote: > Use rte_spinlock_trylock() in the rx/tx burst functions to > take the queue spinlock. > > Signed-off-by: Bernard Iremonger > Acked-by: Konstantin Ananyev > --- Why does this particular PMD need spinlocks when doing RX and TX,

[dpdk-dev] [PATCH] virtio: fix allocating virtnet_rx not mem aligned

2016-06-13 Thread Yuanhan Liu
On Sun, Jun 12, 2016 at 02:29:42PM +, Jianfeng Tan wrote: > Compile DPDK with clang, below line in virtio_rxtx.c could be > optimized with four "VMOVAPS ymm, m256". > memset(>fake_mbuf, 0, sizeof(rxvq->fake_mbuf)); > > This instruction requires memory address is 32-byte aligned. > Or, it

[dpdk-dev] [PATCH v3 6/6] mk: prevent overlinking in applications

2016-06-13 Thread Christian Ehrhardt
Hi, great work on cleaning that up already. I applied v3 of the series and see already much better results. But I found some more that should be part of this. I don't know how generally available a similar solution is, but usually in our build dpkg-shlibdeps checks for under/overlinking issues. I

[dpdk-dev] [PATCH] virito: fix reuse index in nested loop

2016-06-13 Thread Yuanhan Liu
On Mon, Jun 13, 2016 at 09:11:57AM +, Tan, Jianfeng wrote: > > > > -Original Message- > > From: Yuanhan Liu [mailto:yuanhan.liu at linux.intel.com] > > Sent: Monday, June 13, 2016 4:58 PM > > To: Tan, Jianfeng > > Cc: dev at dpdk.org; Xie, Huawei > > Subject: Re: [PATCH] virito: fix

[dpdk-dev] [PATCH v3 3/6] mk: sort libraries when linking, move pmd libs to higher level

2016-06-13 Thread Thomas Monjalon
2016-06-10 19:32, Ferruh Yigit: > As stated in the comment: > Order is important: from higher level to lower level > > This is an attempt to make the layering order better respected. > > Limit scope of --whole-archive to pmd libraries Compared to the link order in the v2, you did two

[dpdk-dev] [PATCH] examples: fix duplicated lpm6 name

2016-06-13 Thread Olivier Matz
When starting the ip_fragmentation or ip_reassembly example on several sockets, it fails. The name of the lpm6 table is the same on every socket, resulting in a table creation failure (-EEXIST). The failure appeared after: commit f82f705b635d ("lpm: fix allocation of an existing object") Indeed,

[dpdk-dev] [PATCH] mk: fix missing DEPDIRS to avoid libarary underlinking

2016-06-13 Thread Christian Ehrhardt
After several cleanups libraries are now linked against the libs the refer as DEPDIR which is great. But that now made it visible that some DEPDIRS where still missing. This patch is adding the missing depdirs to avoid any library referring to symbols they are not linked against (found with

[dpdk-dev] [PATCH] virtio: fix allocating virtnet_rx not mem aligned

2016-06-13 Thread Yuanhan Liu
On Mon, Jun 13, 2016 at 05:21:01PM +0800, Yuanhan Liu wrote: > On Sun, Jun 12, 2016 at 02:29:42PM +, Jianfeng Tan wrote: > > Compile DPDK with clang, below line in virtio_rxtx.c could be > > optimized with four "VMOVAPS ymm, m256". > > memset(>fake_mbuf, 0, sizeof(rxvq->fake_mbuf)); > > > >

[dpdk-dev] [PATCH] examples/vhost: fix corrupted vdev tailq list

2016-06-13 Thread Yuanhan Liu
On Tue, Jun 07, 2016 at 11:32:56AM +0800, Yuanhan Liu wrote: > There are two tailq lists, one for logging all vhost devices, another > one for logging vhost devices distributed on a specific core. However, > there is just one tailq entry, named "next", to chain the two list, > which is wrong and

[dpdk-dev] [PATCH v3 08/20] vhost: introduce new API to export numa node

2016-06-13 Thread Yuanhan Liu
On Thu, Jun 09, 2016 at 12:45:00PM +0800, Yuanhan Liu wrote: > On Wed, Jun 08, 2016 at 02:51:33PM -0700, Rich Lane wrote: > > On Mon, Jun 6, 2016 at 8:51 PM, Yuanhan Liu > > wrote: > > > > @@ -248,14 +248,9 @@ new_device(struct virtio_net *dev) > > ? ? ? ? internal =

[dpdk-dev] [PATCH] i40e: Unchecked return value

2016-06-13 Thread Bruce Richardson
On Mon, May 23, 2016 at 02:25:15PM +0200, Slawomir Mrozowicz wrote: > Calling i40e_switch_tx_queue without checking return value. > Fixed by add warning log information if return failed. > > Fixes: 71d35259ff67 ("i40e: tear down flow director") > Coverity ID 13208 > > Signed-off-by: Slawomir

[dpdk-dev] [PATCH v3 3/6] mk: sort libraries when linking, move pmd libs to higher level

2016-06-13 Thread Ferruh Yigit
On 6/13/2016 10:29 AM, Thomas Monjalon wrote: > 2016-06-10 19:32, Ferruh Yigit: >> As stated in the comment: >> Order is important: from higher level to lower level >> >> This is an attempt to make the layering order better respected. >> >> Limit scope of --whole-archive to pmd libraries > >

[dpdk-dev] [PATCH] virtio: fix allocating virtnet_rx not mem aligned

2016-06-13 Thread Tan, Jianfeng
> -Original Message- > From: Yuanhan Liu [mailto:yuanhan.liu at linux.intel.com] > Sent: Monday, June 13, 2016 5:52 PM > To: Tan, Jianfeng > Cc: dev at dpdk.org; Xie, Huawei > Subject: Re: [dpdk-dev] [PATCH] virtio: fix allocating virtnet_rx not mem > aligned > > On Mon, Jun 13, 2016 at

[dpdk-dev] [PATCH] mk: fix missing DEPDIRS to avoid libarary underlinking

2016-06-13 Thread Thomas Monjalon
2016-06-13 11:48, Christian Ehrhardt: > --- a/drivers/net/af_packet/Makefile > +++ b/drivers/net/af_packet/Makefile > @@ -54,5 +54,6 @@ SRCS-$(CONFIG_RTE_LIBRTE_PMD_AF_PACKET) += > rte_eth_af_packet.c > DEPDIRS-$(CONFIG_RTE_LIBRTE_PMD_AF_PACKET) += lib/librte_mbuf >

[dpdk-dev] [PATCH] i40e: fix unchecked return value

2016-06-13 Thread Bruce Richardson
On Tue, May 24, 2016 at 09:25:34AM +0200, Daniel Mrzyglod wrote: > Calling i40e_switch_rx_queue without checking return value. > Fixed by add warning log information if return failed. > > Fixes: 71d35259ff67 ("i40e: tear down flow director") > Coverity ID 13198 > > Signed-off-by: Daniel Mrzyglod

[dpdk-dev] [PATCH v2 4/4] virtio-user: handle ctrl-q in driver

2016-06-13 Thread Yuanhan Liu
On Mon, Jun 13, 2016 at 06:43:43AM +, Jianfeng Tan wrote: > In virtio-user driver, when notify ctrl-queue, invoke API of > virtio-user device emulation to handle ctrl-q command. > > Besides, multi-queue requires ctrl-queue and ctrl-queue will be > enabled automatically when multi-queue is

[dpdk-dev] [PATCH] virtio: fix allocating virtnet_rx not mem aligned

2016-06-13 Thread Tan, Jianfeng
On 6/13/2016 5:21 PM, Yuanhan Liu wrote: > On Sun, Jun 12, 2016 at 02:29:42PM +, Jianfeng Tan wrote: >> Compile DPDK with clang, below line in virtio_rxtx.c could be >> optimized with four "VMOVAPS ymm, m256". >>memset(>fake_mbuf, 0, sizeof(rxvq->fake_mbuf)); >> >> This instruction

[dpdk-dev] [PATCH v2 1/4] virtio-user: use virtual address in cq

2016-06-13 Thread Yuanhan Liu
On Mon, Jun 13, 2016 at 06:43:40AM +, Jianfeng Tan wrote: > Change to use virtio_net_hdr_mem instead of physical addr of memzone > when sending contrl queue commands. The virtio_net_hdr_mem has been > initialized to use virtual address under the case of virtio-user. I'd suggest to squash this

[dpdk-dev] [PATCH v2 0/2] bond mode 4 external sm api

2016-06-13 Thread Bruce Richardson
On Fri, May 27, 2016 at 12:44:04PM -0700, Eric Kinzie wrote: Ping for review. Maintainer, any comments? > This patchset introduces the ability to use an external 802.3ad state > machine for mode 4 bonding. Functions to alter the mux state and to > allow LACPDUs to be sent and received from

[dpdk-dev] [PATCH v2 4/4] virtio-user: handle ctrl-q in driver

2016-06-13 Thread Tan, Jianfeng
> -Original Message- > From: Yuanhan Liu [mailto:yuanhan.liu at linux.intel.com] > Sent: Monday, June 13, 2016 6:14 PM > To: Tan, Jianfeng > Cc: dev at dpdk.org; rich.lane at bigswitch.com; mst at redhat.com; > nakajima.yoshihiro at lab.ntt.co.jp; p.fedin at samsung.com; >

[dpdk-dev] [PATCH] mk: fix missing DEPDIRS to avoid libarary underlinking

2016-06-13 Thread Christian Ehrhardt
On Mon, Jun 13, 2016 at 12:08 PM, Thomas Monjalon wrote: > 2016-06-13 11:48, Christian Ehrhardt: > > --- a/drivers/net/af_packet/Makefile > > +++ b/drivers/net/af_packet/Makefile > > @@ -54,5 +54,6 @@ SRCS-$(CONFIG_RTE_LIBRTE_PMD_AF_PACKET) += > rte_eth_af_packet.c > >

[dpdk-dev] [PATCH v3 3/6] mk: sort libraries when linking, move pmd libs to higher level

2016-06-13 Thread Thomas Monjalon
2016-06-13 11:04, Ferruh Yigit: > On 6/13/2016 10:29 AM, Thomas Monjalon wrote: > > 2016-06-10 19:32, Ferruh Yigit: > >> As stated in the comment: > >> Order is important: from higher level to lower level > >> > >> This is an attempt to make the layering order better respected. > >> > >> Limit

[dpdk-dev] [PATCH] virtio: fix allocating virtnet_rx not mem aligned

2016-06-13 Thread Yuanhan Liu
On Mon, Jun 13, 2016 at 10:06:22AM +, Tan, Jianfeng wrote: > > > > -Original Message- > > From: Yuanhan Liu [mailto:yuanhan.liu at linux.intel.com] > > Sent: Monday, June 13, 2016 5:52 PM > > To: Tan, Jianfeng > > Cc: dev at dpdk.org; Xie, Huawei > > Subject: Re: [dpdk-dev] [PATCH]

[dpdk-dev] [PATCH] port: add kni interface support

2016-06-13 Thread Dumitrescu, Cristian
Hi Ethan, In the process of testing your patch, I actually had to do the rebase on the latest code and fix all the comments that I previously sent as part of my reply. I also did a few other cosmetic changes and fixes required by the latest code (see below), therefore I think it makes sense to

[dpdk-dev] [PATCH] mem: skip memory locking on failure

2016-06-13 Thread Olivier Matz
Since recently [1], it is not possible to run the dpdk with user (non-root) privileges and the --no-huge option. This is because the eal layer tries to lock the memory. Using locked memory is mandatory for physical devices because they reference physical addresses. But a user may want to start

[dpdk-dev] [PATCH v3] app/test: reduced duration of red_autotest

2016-06-13 Thread Tomasz Kantecki
'red_autotest' changed to run only functional tests without test #4 which was taking ~53 seconds. 'red_autotest' takes ~2[s] now. 'red_perf' has been added to run performance tests only). 'red_all' has been added to run all functional tests (including #4) and perfromance tests. This reflects

[dpdk-dev] [PATCH v3 00/35] mempool: rework memory allocation

2016-06-13 Thread Olivier Matz
Hi, On 05/23/2016 09:43 AM, Olivier Matz wrote: > Hi Panu, Thomas, > > On 05/20/2016 11:09 AM, Thomas Monjalon wrote: >> 2016-05-20 11:42, Panu Matilainen: >>> Just noticed this series "breaks" --no-huge as a regular user, commit >>> 593a084afc2b to be exact: >>> >>> mmap(NULL, 4194304,

[dpdk-dev] [PATCH v3 3/6] mk: sort libraries when linking, move pmd libs to higher level

2016-06-13 Thread Ferruh Yigit
On 6/13/2016 11:21 AM, Thomas Monjalon wrote: > 2016-06-13 11:04, Ferruh Yigit: >> On 6/13/2016 10:29 AM, Thomas Monjalon wrote: >>> 2016-06-10 19:32, Ferruh Yigit: As stated in the comment: Order is important: from higher level to lower level This is an attempt to make the

[dpdk-dev] [PATCH v5 1/5] bnx2x: fixed stats get

2016-06-13 Thread Ferruh Yigit
On 6/10/2016 11:08 AM, Ferruh Yigit wrote: > On 6/8/2016 5:15 PM, Bruce Richardson wrote: >> On Wed, May 11, 2016 at 05:06:21PM -0700, Rasesh Mody wrote: >>> Fix stats_get() routine to display drop counters under imissed counter. >>> >>> Fixes: 540a211084a7 ("bnx2x: driver core") >>> >>>

[dpdk-dev] [PATCH] bnx2x: fix ICC compilation error

2016-06-13 Thread Ferruh Yigit
Signed-off-by: Ferruh Yigit --- drivers/net/bnx2x/Makefile | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/bnx2x/Makefile b/drivers/net/bnx2x/Makefile index 6f1f385..c2ddd8d 100644 --- a/drivers/net/bnx2x/Makefile +++ b/drivers/net/bnx2x/Makefile @@ -14,6 +14,10 @@ EXPORT_MAP

[dpdk-dev] [PATCH v4 2/8] lib/librte_ether: defind RX/TX lock mode

2016-06-13 Thread Ananyev, Konstantin
Hi Wenzhuo, > > > > > > > > > > > > > > > > > > > > > > 3. I thought the plan was to introduce a locking in all > > > > > > appropriate control path functions (dev_start/dev_stop etc.) > > > > > > Without that locking version of RX/TX seems a bit useless. > > > > > > Yes, I understand that you

[dpdk-dev] [PATCH] port: add kni interface support

2016-06-13 Thread Ethan
Hi Cristian, I've got your comments. Thank you for review the code from a DPDK newbie. :-) I plan to submit a new patch to fix all during this week hopefully. There are four places I'd like to discuss further: 1. Dedicated lcore for kni kernel thread First of all, it is a bug to add kni kernel

[dpdk-dev] [PATCH] i40e: fix vlan filter in promiscuous mode

2016-06-13 Thread Bruce Richardson
On Fri, May 27, 2016 at 04:05:45PM +0800, Jingjing Wu wrote: > Vlan filter didn't work if promiscuous mode is enabled. That is > because i40e driver uses MAC VLAN table for the l2 filtering and > internal switch. And the vlan table is disabled by default, till > the first time to add rule in vlan

[dpdk-dev] [PATCH v2 0/2] mk: fix more library underlinking

2016-06-13 Thread Christian Ehrhardt
After several cleanups libraries are now linked against the libs they refer as DEPDIR which is great. But that now also made it visible that some references where still missing. The following two patches try to fix that: [PATCH v2 1/2] mk: fix missing vhost dependency to pthread to avoid [PATCH

[dpdk-dev] [PATCH v2 1/2] mk: fix missing vhost dependency to pthread to avoid libarary underlinking

2016-06-13 Thread Christian Ehrhardt
Add the missing external dependency to pthread to avoid referring to symbols the library is not linked against. Signed-off-by: Christian Ehrhardt --- drivers/net/vhost/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/vhost/Makefile b/drivers/net/vhost/Makefile index

[dpdk-dev] [PATCH v2 2/2] mk: fix missing DEPDIRS to avoid libarary underlinking

2016-06-13 Thread Christian Ehrhardt
This patch adds missing DEPDIRS to avoid any library referring to symbols they are not linked against. Signed-off-by: Christian Ehrhardt --- drivers/crypto/null/Makefile | 2 ++ drivers/net/af_packet/Makefile | 1 + drivers/net/bonding/Makefile | 2 ++ drivers/net/fm10k/Makefile | 1 +

[dpdk-dev] [PATCH v2] pcap: fix segfault in pcap pmd

2016-06-13 Thread Bruce Richardson
On Fri, May 27, 2016 at 01:06:20PM +0100, Reshma Pattan wrote: > Testpmd application will crash in fclose() upon quit after running > the below command. > > "sudo gdb --args ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xf0 -n 4 > --vdev

[dpdk-dev] unchecked return value in enic driver

2016-06-13 Thread Kerlin, MarcinX
Hi John and Nelson, I have a question regarding Coverity defects: File: /drivers/net/enic/enic_ethdev.c Line: 379 CID 13197: Unchecked return value (CHECKED_RETURN)1.?check_return:?Calling?rte_atomic64_cmpset?without checking return value (as is done elsewhere 15 out of 17 times) Can I mark

[dpdk-dev] [PATCH 1/1] ip_pipeline: fix null pointer dereference

2016-06-13 Thread Dumitrescu, Cristian
> -Original Message- > From: Kerlin, MarcinX > Sent: Monday, June 13, 2016 10:36 AM > To: dev at dpdk.org > Cc: Azarewicz, PiotrX T ; Dumitrescu, > Cristian > ; Kerlin, MarcinX > > Subject: [PATCH 1/1] ip_pipeline: fix null pointer dereference > > Return value of function

[dpdk-dev] [PATCH v2] xenvirt: fix compilation after mempool changes

2016-06-13 Thread Olivier Matz
The field elt_va_start has been removed from the mempool structure, and it was not replaced in xenvirt. Fix this by getting the mempool objects address by using the address of the first memory chunk list. Note that it won't work with mempool composed of several chunks, but it was already the

[dpdk-dev] [PATCH] mbuf: remove unused Rx error flags

2016-06-13 Thread Olivier Matz
Hi, On 05/23/2016 09:56 AM, Olivier Matz wrote: > Following the discussions from: > http://dpdk.org/ml/archives/dev/2015-July/021721.html > http://dpdk.org/ml/archives/dev/2016-April/038143.html > > The value of these flags is 0, making them useless. Today, no example > application checks them

[dpdk-dev] [PATCH v2] mbuf: new flag when Vlan is stripped

2016-06-13 Thread Olivier Matz
Hi, On 05/27/2016 04:33 PM, Olivier Matz wrote: > The behavior of PKT_RX_VLAN_PKT was not very well defined, resulting in > PMDs not advertising the same flags in similar conditions. > > Following discussion in [1], introduce 2 new flags PKT_RX_VLAN_STRIPPED > and PKT_RX_QINQ_STRIPPED that are

[dpdk-dev] Duplicate config symbols

2016-06-13 Thread Christian Ehrhardt
Hi, I wondered multiple times now when changing a config symbol that some of them are in the .config file multiple times. I totally feel like I'm overlooking something, but still it might be worth to ask. In particular: awk -F "=" '/=/ {print $1}' debian/build/static-root/.config | sort | uniq -c

[dpdk-dev] [PATCH v2] xenvirt: fix compilation after mempool changes

2016-06-13 Thread Christian Ehrhardt
Yeah, working now - thanks for the fast update! Kind Regards, Christian Christian Ehrhardt Software Engineer, Ubuntu Server Canonical Ltd On Mon, Jun 13, 2016 at 1:24 PM, Olivier Matz wrote: > The field elt_va_start has been removed from the mempool structure, > and it was not replaced in

[dpdk-dev] queue to VF assigment in SR-IOV

2016-06-13 Thread Mauricio Vásquez
Hello Alexander, On Tue, Jun 7, 2016 at 11:31 PM, Alexander Duyck wrote: > On Tue, Jun 7, 2016 at 1:49 PM, Mauricio V?squez > wrote: > > Dear All, > > > > I implemented a program that uses flow director to forward packets to a > > specific virtual function, however I faced the problem that I

[dpdk-dev] [PATCH v9 1/3] mempool: support external mempool operations

2016-06-13 Thread Olivier Matz
Hi David, Some comments below. On 06/10/2016 05:16 PM, David Hunt wrote: > Until now, the objects stored in a mempool were internally stored in a > ring. This patch introduces the possibility to register external handlers > replacing the ring. > > The default behavior remains unchanged, but

[dpdk-dev] [PATCH v2 1/2] mempool: allow for user-owned mempool caches

2016-06-13 Thread Olivier Matz
Hi Lazaros, On 05/11/2016 11:56 AM, Olivier MATZ wrote: > Hi Lazaros, > > Sorry for the late review. Please find some comments, > in addition to what Konstantin already said. > Will you have the time to send a v3 before the end of the integration deadline at the end of the week? I think it

[dpdk-dev] [PATCH v3 3/4] bonding: take queue spinlock in rx/tx burst functions

2016-06-13 Thread Iremonger, Bernard
Hi Bruce, > Subject: Re: [dpdk-dev] [PATCH v3 3/4] bonding: take queue spinlock in rx/tx > burst functions > > On Sun, Jun 12, 2016 at 06:11:28PM +0100, Bernard Iremonger wrote: > > Use rte_spinlock_trylock() in the rx/tx burst functions to take the > > queue spinlock. > > > > Signed-off-by:

  1   2   3   >