[dpdk-dev] [PATCH] vhost-user: enable virtio 1.0

2015-11-09 Thread Michael S. Tsirkin
On Fri, Oct 30, 2015 at 06:48:09PM +0100, Thomas Monjalon wrote: > 2015-10-18 10:04, Michael S. Tsirkin: > > On Fri, Oct 16, 2015 at 02:52:30PM +0100, Bruce Richardson wrote: > > > On Thu, Oct 15, 2015 at 04:18:59PM +0300, Michael S. Tsirkin wrote: > > > > On Thu, Oct 15, 2015 at 02:08:39PM +0300,

[dpdk-dev] [PATCH] vhost: eventfd_link's minor number shall be specified

2015-11-09 Thread Yuanhan Liu
On Mon, Nov 09, 2015 at 10:19:54AM +, Chi, Xiaobo (Nokia - CN/Hangzhou) wrote: > Hi, > > And following is a test by me, we can see that if I firstly insert my > kmod_test.ko, then insert eventfd_link.ko, error will happen with hint " > Device or resource busy". This is because the default

[dpdk-dev] [PATCH v5 10/10] l2fwd-crypto: crypto

2015-11-09 Thread Declan Doherty
This patch creates a new sample applicaiton based off the l2fwd application which performs specified crypto operations on IP packet payloads which are forwarding. Acked-by: Sergio Gonzalez Monroy Signed-off-by: Declan Doherty --- MAINTAINERS|1 +

[dpdk-dev] [PATCH v5 09/10] app/test: add cryptodev unit and performance tests

2015-11-09 Thread Declan Doherty
unit tests are run by using cryptodev_qat_autotest or cryptodev_aesni_autotest from the test apps interactive console. performance tests are run by using the cryptodev_qat_perftest or cryptodev_aesni_mb_perftest command from the test apps interactive console. If you which to run the tests on a

[dpdk-dev] [PATCH v5 08/10] aesni_mb_pmd: Initial implementation of multi buffer based crypto device

2015-11-09 Thread Declan Doherty
This patch provides the initial implementation of the AES-NI multi-buffer based crypto poll mode driver using DPDK's new cryptodev framework. This PMD is dependent on Intel's multibuffer library, see the whitepaper "Fast Multi-buffer IPsec Implementations on Intel? Architecture Processors", see

[dpdk-dev] [PATCH v5 07/10] qat_crypto_pmd: Addition of a new QAT DPDK PMD.

2015-11-09 Thread Declan Doherty
This patch adds a PMD for the Intel Quick Assist Technology DH895xxC hardware accelerator. This patch depends on a QAT PF driver for device initialization. See the file docs/guides/cryptodevs/qat.rst for configuration details This patch supports a limited subset of QAT device functionality,

[dpdk-dev] [PATCH v5 06/10] mbuf_offload: library to support attaching offloads to a mbuf

2015-11-09 Thread Declan Doherty
This library add support for adding a chain of offload operations to a mbuf. It contains the definition of the rte_mbuf_offload structure as well as helper functions for attaching offloads to mbufs and a mempool management functions. This initial implementation supports attaching multiple

[dpdk-dev] [PATCH v5 05/10] cryptodev: Initial DPDK Crypto APIs and device framework release

2015-11-09 Thread Declan Doherty
This patch contains the initial proposed APIs and device framework for integrating crypto packet processing into DPDK. features include: - Crypto device configuration / management APIs - Definitions of supported cipher algorithms and operations. - Definitions of supported hash/authentication

[dpdk-dev] [PATCH v5 04/10] mbuf: add new marcos to get the physical address of data

2015-11-09 Thread Declan Doherty
Acked-by: Sergio Gonzalez Monroy Signed-off-by: Declan Doherty --- lib/librte_mbuf/rte_mbuf.h | 23 +++ 1 file changed, 23 insertions(+) diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h index 4a93189..e203c55 100644 --- a/lib/librte_mbuf/rte_mbuf.h +++

[dpdk-dev] [PATCH v5 03/10] eal: add __rte_packed /__rte_aligned macros

2015-11-09 Thread Declan Doherty
Adding a new marco for specifing __aligned__ attribute, and updating the current __rte_cache_aligned macro to use it. Also adding a new macro to specify the __packed__ attribute Acked-by: Sergio Gonzalez Monroy Signed-off-by: Declan Doherty --- lib/librte_eal/common/include/rte_memory.h | 12

[dpdk-dev] [PATCH v5 02/10] ethdev: make error checking macros public

2015-11-09 Thread Declan Doherty
Move the function pointer and port id checking macros to rte_ethdev and rte_dev header files, so that they can be used in the static inline functions there. Also replace the RTE_LOG call within RTE_PMD_DEBUG_TRACE so this macro can be built with the -pedantic flag Signed-off-by: Declan Doherty

[dpdk-dev] [PATCH v5 01/10] ethdev: rename macros to have RTE_ prefix

2015-11-09 Thread Declan Doherty
The macros to check that the function pointers and port ids are valid for an ethdev are potentially useful to have in a common headers for use with all PMDs. However, since they would then become externally visible, we apply the RTE_ & RTE_ETH_ prefix to them as approtiate. Signed-off-by: Declan

[dpdk-dev] [PATCH v5 00/10] Crypto API and device framework

2015-11-09 Thread Declan Doherty
his series of patches defines a set of application burst oriented APIs for asynchronous symmetric cryptographic functions within DPDK. It also contains a poll mode driver cryptographic device framework for the implementation of crypto devices within DPDK. In the patch set we also have included 2

[dpdk-dev] [PATCHv6 2/2] ixgbe: fix TX hang when RS distance exceeds HW limit

2015-11-09 Thread Konstantin Ananyev
One of the ways to reproduce the issue: testpmd -- -i --txqflags=0 testpmd> set fwd txonly testpmd> set txpkts 64,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4 testpmd> set txsplit rand testpmd> start After some time TX on ixgbe queue will hang, and all packet transmission on

[dpdk-dev] [PATCHv6 1/2] testpmd: add ability to split outgoing packets

2015-11-09 Thread Konstantin Ananyev
For CSUM forwarding mode add ability to copy & split outgoing packet into the new mbuf that consists of multiple segments. For TXONLY and CSUM forwarding modes add ability to make number of segments in the outgoing packet to vary on a per packet basis. Number of segments and size of each segment

[dpdk-dev] [PATCHv6 0/2] ixgbe: fix TX hang when RS distance exceeds HW limit

2015-11-09 Thread Konstantin Ananyev
First patch contains changes in testpmd that allow to reproduce the issue. Second patch is the actual fix. Konstantin Ananyev (2): testpmd: add ability to split outgoing packets ixgbe: fix TX hang when RS distance exceeds HW limit app/test-pmd/cmdline.c | 57 +-

[dpdk-dev] DPDK ArmV7 autotests

2015-11-09 Thread Jan Viktorin
Here is the log. You an see, that many tests fail just because of the missing hugetlb support. This is strange as I modified the autotest_runner.py to inject "--no-huge --no-pci" options when it detects armv7 architecture. Moreover, the mempool performance test does not say OK. It is marked as

[dpdk-dev] [PATCH] vhost: make destroy callback on VHOST_USER_RESET_OWNER

2015-11-09 Thread Rich Lane
QEMU sends this message first when shutting down. There was previously no way for the dataplane to know that the virtio_net instance had become unusable and it would segfault when trying to do RX/TX. Signed-off-by: Rich Lane --- lib/librte_vhost/virtio-net.c | 3 +++ 1 file changed, 3

[dpdk-dev] DPDK ArmV7 autotests

2015-11-09 Thread Jan Viktorin
Hello David, I am working on some auto test in QEMU. My last result for ARMv7 is following bellow. What is strange, I could see that the read/write lock autotest failed (wrong order) before. I have no idea what does it mean "no prompt". I suppose that such test could not be run for some

[dpdk-dev] [PATCH 2/2] doc: announce ABI change for RETA configuration

2015-11-09 Thread Nelio Laranjeiro
Signed-off-by: Nelio Laranjeiro --- doc/guides/rel_notes/deprecation.rst | 5 + 1 file changed, 5 insertions(+) diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst index c75b4b4..8554c53 100644 --- a/doc/guides/rel_notes/deprecation.rst +++

[dpdk-dev] [PATCH 1/2] doc: announce ABI change for cmdline buffer size

2015-11-09 Thread Nelio Laranjeiro
Current buffer size are not enough for a few testpmd commands. Signed-off-by: Nelio Laranjeiro --- doc/guides/rel_notes/deprecation.rst | 5 + 1 file changed, 5 insertions(+) diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst index 730c3b7..c75b4b4

[dpdk-dev] DPDK ArmV7 autotests

2015-11-09 Thread Hunt, David
On 09/11/2015 17:12, Jan Viktorin wrote: > Hello David, > > I am working on some auto test in QEMU. My last result for ARMv7 is > following bellow. What is strange, I could see that the read/write lock > autotest failed (wrong order) before. > > I have no idea what does it mean "no prompt". I

[dpdk-dev] [PATCH] cmdline: increase commandline buffer size to 512

2015-11-09 Thread NĂ©lio Laranjeiro
On Mon, Nov 09, 2015 at 11:45:04AM +, Mcnamara, John wrote: > > > > -Original Message- > > From: N?lio Laranjeiro [mailto:nelio.laranjeiro at 6wind.com] > > Sent: Thursday, November 5, 2015 4:51 PM > > To: Mcnamara, John; Olivier Matz; Thomas Monjalon > > Cc: dev at dpdk.org > >

[dpdk-dev] [PATCH v3 8/8] examples/vhost:support TX offload in vhost sample

2015-11-09 Thread Yuanhan Liu
On Mon, Nov 09, 2015 at 08:17:24AM +, Liu, Jijiang wrote: > > > > -Original Message- > > From: Yuanhan Liu [mailto:yuanhan.liu at linux.intel.com] > > Sent: Monday, November 09, 2015 12:17 PM > > To: Liu, Jijiang > > Cc: dev at dpdk.org > > Subject: Re: [dpdk-dev] [PATCH v3 8/8]

[dpdk-dev] [PATCH v2 11/11] bnx2x: Add BNX2X PMD versioning

2015-11-09 Thread Rasesh Mody
Add BNX2X PMD version, print it as part of adapter info. Adjusted print adapter info output formatting. This patch versions BNX2X PMD at 1.0.0. Signed-off-by: Rasesh Mody --- drivers/net/bnx2x/bnx2x.c | 101 + 1 file changed, 65 insertions(+), 36

[dpdk-dev] [PATCH v2 10/11] config: Enable BNX2X driver build by default

2015-11-09 Thread Rasesh Mody
From: Harish Patil Signed-off-by: Harish Patil Signed-off-by: Rasesh Mody --- config/common_bsdapp |4 ++-- config/common_linuxapp |4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/common_bsdapp b/config/common_bsdapp index

[dpdk-dev] [PATCH v2 09/11] maintainers: Add maintainers for BNX2X PMD

2015-11-09 Thread Rasesh Mody
Add maintainers for BNX2X PMD. Add file path to BNX2X PMD guide. Signed-off-by: Rasesh Mody --- MAINTAINERS |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index c8be5d2..537586b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -281,8 +281,12

[dpdk-dev] [PATCH v2 08/11] bnx2x: Handle zlib compatibility error

2015-11-09 Thread Rasesh Mody
Following error will be reported: PMD: ecore_gunzip(): Newer version of zlib required, 1.2.5.2 or higher EAL: Error - exiting with code: 1 Cause: rte_eth_dev_start:err=-1, port=0 Signed-off-by: Rasesh Mody --- doc/guides/nics/bnx2x.rst |4 drivers/net/bnx2x/bnx2x.c

[dpdk-dev] [PATCH v2 06/11] bnx2x: FreeBSD enablement

2015-11-09 Thread Rasesh Mody
Compile tested. Signed-off-by: Rasesh Mody --- doc/guides/nics/bnx2x.rst| 16 drivers/net/bnx2x/bnx2x.c|9 + drivers/net/bnx2x/bnx2x.h| 23 +++ drivers/net/bnx2x/ecore_sp.h |6 ++ 4 files changed, 54 insertions(+) diff

[dpdk-dev] [PATCH v2 05/11] bnx2x: Add LICENSE.bnx2x_pmd and update source files

2015-11-09 Thread Rasesh Mody
Signed-off-by: Rasesh Mody --- drivers/net/bnx2x/LICENSE.bnx2x_pmd | 28 drivers/net/bnx2x/bnx2x.c | 29 - drivers/net/bnx2x/bnx2x.h | 29 - drivers/net/bnx2x/bnx2x_ethdev.c|4

[dpdk-dev] [PATCH v2 04/11] doc: Add BNX2X PMD documentation

2015-11-09 Thread Rasesh Mody
From: Harish Patil Signed-off-by: Harish Patil --- doc/guides/nics/bnx2x.rst | 324 + 1 file changed, 324 insertions(+) create mode 100644 doc/guides/nics/bnx2x.rst diff --git a/doc/guides/nics/bnx2x.rst

[dpdk-dev] [PATCH v2 03/11] bnx2x: Add periodic debug option

2015-11-09 Thread Rasesh Mody
From: Harish Patil The periodic debug option is used to collect periodic events like statistics, register access etc and won't interfere with user-level messages. Signed-off-by: Harish Patil Signed-off-by: Rasesh Mody --- config/common_bsdapp |1 +

[dpdk-dev] [PATCH v2 02/11] bnx2x: Fix x86_64-native-linuxapp-clang build error

2015-11-09 Thread Rasesh Mody
From: Harish Patil Fix for the following clang build error: drivers/net/bnx2x/elink.c:10384:41: error: shifting a negative signed value is undefined [-Werror,-Wshift-negative-value] vars->eee_status &= ~SHMEM_EEE_1G_ADV <<

[dpdk-dev] [PATCH v2 01/11] bnx2x: Update VF to support newer PF drivers

2015-11-09 Thread Rasesh Mody
From: Harish Patil SR-IOV is supported using bnx2x poll mode driver running as VF driver and native linux driver running as PF (in host/hypervisor). There is no issue while running with the PF driver which is at the base version as that of PMD. However, there is a

[dpdk-dev] [PATCH v2 00/11] bnx2x: Enhancement, fixes, licensing and doumentation

2015-11-09 Thread Rasesh Mody
Hi Thomas, This patch set consists of enhancements, fixes, licensing and documentation changes for the QLogic bnx2x Poll Mode Driver. The patches addresses the review feedback and have been generated and tested against latest dpdk tree. This patch set enables the BNX2X PMD and versions

[dpdk-dev] [PATCH v3 2/2] vhost: Add VHOST PMD

2015-11-09 Thread Tetsuya Mukawa
Hi Liu, Thank you so much for your reviewing. I will fix them, then submit again in this week. Thanks, Tetsuya On 2015/11/09 15:21, Yuanhan Liu wrote: > Hi Tetsuya, > > Here I just got some minor nits after a very rough glimpse. > > On Mon, Nov 09, 2015 at 02:17:01PM +0900, Tetsuya Mukawa

[dpdk-dev] [PATCH] ixgbe: fix crc-strip enable changing rx bytes

2015-11-09 Thread Harry van Haaren
Fix a consistency issue in ixgbe, that when CRC stripping is enabled, the CRC bytes are not added to the rx total byte count. When CRC strip is disabled, these bytes are counted. This patch reads the CRC strip register, and when enabled adds 4 bytes to the total bytes recieved counter for each

[dpdk-dev] [PATCH v3 2/4] ethdev: move error checking macros to header

2015-11-09 Thread Adrien Mazarguil
On Mon, Nov 09, 2015 at 02:39:05PM +0100, Adrien Mazarguil wrote: > On Fri, Nov 06, 2015 at 05:22:27PM +, Bruce Richardson wrote: > > On Fri, Nov 06, 2015 at 05:10:07PM +, Bruce Richardson wrote: > > > On Thu, Nov 05, 2015 at 04:09:18PM +0100, Adrien Mazarguil wrote: > > > > > > > > I

[dpdk-dev] [PATCH v3 2/4] ethdev: move error checking macros to header

2015-11-09 Thread Adrien Mazarguil
On Fri, Nov 06, 2015 at 05:22:27PM +, Bruce Richardson wrote: > On Fri, Nov 06, 2015 at 05:10:07PM +, Bruce Richardson wrote: > > On Thu, Nov 05, 2015 at 04:09:18PM +0100, Adrien Mazarguil wrote: > > > > > > I won't argue against this as it's obviously more complex than the > > >

[dpdk-dev] [PATCH] kni: fix compile issue on different kernel versions

2015-11-09 Thread Helin Zhang
It fixes the compile issue on kernel version 2.6.32 or old ones. Error logs: lib/librte_eal/linuxapp/kni/kni_misc.c:121: error: unknown field id specified in initializer lib/librte_eal/linuxapp/kni/kni_misc.c:121: error: excess elements in struct initializer

[dpdk-dev] [PATCH 3/3] vhost: Add VHOST PMD

2015-11-09 Thread Stephen Hemminger
On Tue, 27 Oct 2015 15:12:55 +0900 Tetsuya Mukawa wrote: > The patch introduces a new PMD. This PMD is implemented as thin wrapper > of librte_vhost. It means librte_vhost is also needed to compile the PMD. > The vhost messages will be handled only when a port is started. So start > a port

[dpdk-dev] [PATCH v3 2/2] vhost: Add VHOST PMD

2015-11-09 Thread Stephen Hemminger
On Mon, 9 Nov 2015 14:17:01 +0900 Tetsuya Mukawa wrote: > + rte_atomic32_set(>while_queuing, 1); > + > + if (unlikely(rte_atomic32_read(>allow_queuing) == 0)) > + goto out; You special 2 variable custom locking here is buggy. If you hit second atomic test, you will leave

[dpdk-dev] [PATCH v3 2/2] vhost: Add VHOST PMD

2015-11-09 Thread Yuanhan Liu
Hi Tetsuya, Here I just got some minor nits after a very rough glimpse. On Mon, Nov 09, 2015 at 02:17:01PM +0900, Tetsuya Mukawa wrote: ... > +static uint16_t > +eth_vhost_rx(void *q, struct rte_mbuf **bufs, uint16_t nb_bufs) > +{ > + struct vhost_queue *r = q; > + uint16_t nb_rx = 0; >

[dpdk-dev] [PATCH v3 2/2] vhost: Add VHOST PMD

2015-11-09 Thread Tetsuya Mukawa
The patch introduces a new PMD. This PMD is implemented as thin wrapper of librte_vhost. It means librte_vhost is also needed to compile the PMD. The vhost messages will be handled only when a port is started. So start a port first, then invoke QEMU. The PMD has 2 parameters. - iface: The

[dpdk-dev] [PATCH v3 1/2] vhost: Add callback and private data for vhost PMD

2015-11-09 Thread Tetsuya Mukawa
These variables are needed to be able to manage one of virtio devices using both vhost library APIs and vhost PMD. For example, if vhost PMD uses current callback handler and private data provided by vhost library, A DPDK application that links vhost library cannot use some of vhost library APIs.

[dpdk-dev] [PATCH v3 0/2] Add VHOST PMD

2015-11-09 Thread Tetsuya Mukawa
The patch introduces a new PMD. This PMD is implemented as thin wrapper of librte_vhost. * Known issue. We may see issues while handling RESET_OWNER message. These handlings are done in vhost library, so not a part of vhost PMD. So far, we are waiting for QEMU fixing. PATCH v3 changes: - Rebase

[dpdk-dev] [RFC 4/5] virtio/container: adjust memory initialization process

2015-11-09 Thread Tan, Jianfeng
> .. > > > > +int > > > > +rte_memseg_info_get(int index, int *pfd, uint64_t *psize, void > > > > +**paddr) { > > > > + struct rte_mem_config *mcfg; > > > > + mcfg = rte_eal_get_configuration()->mem_config; > > > > + > > > > + *pfd = mcfg->memseg[index].fd; > > > > +

[dpdk-dev] [PATCHv5 1/2] testpmd: add ability to split outgoing packets

2015-11-09 Thread De Lara Guarch, Pablo
> -Original Message- > From: Ananyev, Konstantin > Sent: Monday, November 09, 2015 1:45 PM > To: De Lara Guarch, Pablo; dev at dpdk.org > Subject: RE: [dpdk-dev] [PATCHv5 1/2] testpmd: add ability to split outgoing > packets > > > > > -Original Message- > > From: De Lara

[dpdk-dev] [PATCH v3 2/4] ethdev: move error checking macros to header

2015-11-09 Thread Richardson, Bruce
> -Original Message- > From: Adrien Mazarguil [mailto:adrien.mazarguil at 6wind.com] > Sent: Monday, November 9, 2015 1:39 PM > To: Richardson, Bruce > Cc: Stephen Hemminger ; Thomas Monjalon > ; dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v3 2/4] ethdev: move error checking macros

[dpdk-dev] [PATCHv5 1/2] testpmd: add ability to split outgoing packets

2015-11-09 Thread Ananyev, Konstantin
> -Original Message- > From: De Lara Guarch, Pablo > Sent: Monday, November 09, 2015 1:39 PM > To: Ananyev, Konstantin; dev at dpdk.org > Subject: RE: [dpdk-dev] [PATCHv5 1/2] testpmd: add ability to split outgoing > packets > > Hi Konstantin, > > > -Original Message- > >

[dpdk-dev] [PATCH v3 0/2] Add VHOST PMD

2015-11-09 Thread Yuanhan Liu
On Mon, Nov 09, 2015 at 02:16:59PM +0900, Tetsuya Mukawa wrote: > The patch introduces a new PMD. This PMD is implemented as thin wrapper > of librte_vhost. > > * Known issue. > We may see issues while handling RESET_OWNER message. > These handlings are done in vhost library, so not a part of

[dpdk-dev] [RFC 5/5] vhost/container: change mode of vhost listening socket

2015-11-09 Thread Yuanhan Liu
On Mon, Nov 09, 2015 at 05:15:23AM +, Tan, Jianfeng wrote: ... > > > > > > + ret = chmod(un.sun_path, 0666); > > > + if (ret == 0) > > > + RTE_LOG(INFO, VHOST_CONFIG, "chmod 0666, ok\n"); > > > > That doesn't seem right to me. Doing that kind of change in a libraray > > doesn't > >

[dpdk-dev] [RFC 4/5] virtio/container: adjust memory initialization process

2015-11-09 Thread Ananyev, Konstantin
> > > -Original Message- > > From: Ananyev, Konstantin > > Sent: Saturday, November 7, 2015 12:22 AM > > To: Tan, Jianfeng; dev at dpdk.org > > Cc: nakajima.yoshihiro at lab.ntt.co.jp; zhbzg at huawei.com; mst at > > redhat.com; > > gaoxiaoqiu at huawei.com; oscar.zhangbo at

[dpdk-dev] [PATCH v3 1/2] vhost: Add callback and private data for vhost PMD

2015-11-09 Thread Aaron Conole
Greetings, Tetsuya Mukawa writes: > These variables are needed to be able to manage one of virtio devices > using both vhost library APIs and vhost PMD. > For example, if vhost PMD uses current callback handler and private data > provided by vhost library, A DPDK application that links vhost

[dpdk-dev] [PATCH] vhost: eventfd_link's minor number shall be specified

2015-11-09 Thread Yuanhan Liu
On Fri, Nov 06, 2015 at 02:04:37PM +0800, Xiaobo Chi wrote: > eventfd_link_misc's minor number shall be MISC_DYNAMIC_MINOR to let Linux > kernel dynamically assign one while loading. For such (fix) patch, I'd like to see what exact issue your patch fixes. And if it fixes an issue, you'd better

[dpdk-dev] [PATCH v3 8/8] examples/vhost:support TX offload in vhost sample

2015-11-09 Thread Yuanhan Liu
On Wed, Nov 04, 2015 at 06:54:16PM +0800, Jijiang Liu wrote: > Change the vhost sample to support and test TX offload. > > Signed-off-by: Jijiang Liu > --- > examples/vhost/main.c | 128 > ++--- > 1 files changed, 111 insertions(+), 17 deletions(-)

[dpdk-dev] [PATCH v3 7/8] lib/librte_vhost:dequeue vhost TX offload

2015-11-09 Thread Yuanhan Liu
On Wed, Nov 04, 2015 at 06:54:15PM +0800, Jijiang Liu wrote: > Dequeue vhost TX offload in vhost lib. This is not enough; you need do corresponding setups at RX side, otherwise the packet will be droped in the target VM at TCP layer in VM2VM case, for checksum validation is failed.

[dpdk-dev] [RFC 5/5] vhost/container: change mode of vhost listening socket

2015-11-09 Thread Yuanhan Liu
On Fri, Nov 06, 2015 at 02:31:16AM +0800, Jianfeng Tan wrote: > Change vhost listening socket mode so that users in groups and > others can connect to vhost listening socket. > > Signed-off-by: Huawei Xie > Signed-off-by: Jianfeng Tan > --- > lib/librte_vhost/vhost_user/vhost-net-user.c | 5

[dpdk-dev] [PATCH] cmdline: increase commandline buffer size to 512

2015-11-09 Thread Mcnamara, John
> -Original Message- > From: N?lio Laranjeiro [mailto:nelio.laranjeiro at 6wind.com] > Sent: Thursday, November 5, 2015 4:51 PM > To: Mcnamara, John; Olivier Matz; Thomas Monjalon > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH] cmdline: increase commandline buffer size > to 512 >

[dpdk-dev] [PATCH v2 2/2] app/testpmd: fix ICC compile issue

2015-11-09 Thread Helin Zhang
It fixes compile issue on ICC 13.0.0. Error logs: app/test-pmd/cmdline.c(8160): error #188: enumerated type mixed with another type entry.input.flow.tunnel_flow.tunnel_type = str2fdir_tunneltype(res->tunnel_type); Signed-off-by: Helin Zhang --- app/test-pmd/cmdline.c | 4 ++-- 1

[dpdk-dev] [PATCH v2 1/2] i40e: fix ICC compile issue

2015-11-09 Thread Helin Zhang
It fixes compile issue on ICC 13.0.0. Error logs: i40e_ethdev.c(7943): error #188: enumerated type mixed with another type PMD_INIT_LOG(ERR, Signed-off-by: Helin Zhang --- drivers/net/i40e/i40e_ethdev.c | 34 +++--- 1 file changed, 19 insertions(+), 15

[dpdk-dev] [PATCH v2 0/2] fix compile issues on ICC

2015-11-09 Thread Helin Zhang
It fixes compile issues for i40e, and testpmd on ICC 13.0.0. v2 changes: Corrected the variable/function type, to replace casting. Helin Zhang (2): i40e: fix ICC compile issue app/testpmd: fix ICC compile issue app/test-pmd/cmdline.c | 4 ++-- drivers/net/i40e/i40e_ethdev.c | 34

[dpdk-dev] [PATCH] app/testpmd: add 'show (rxq|txq)' command description into UG and cmdline help

2015-11-09 Thread De Lara Guarch, Pablo
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Konstantin > Ananyev > Sent: Monday, November 02, 2015 1:49 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH] app/testpmd: add 'show (rxq|txq)' command > description into UG and cmdline help > >

[dpdk-dev] [PATCH v3] i40e: fix resetting of stats

2015-11-09 Thread Harry van Haaren
This patch fixes a bug where only some of the statistics were being reset when calling rte_eth_stats_reset() or rte_eth_xstats_reset(). As both the stats reset and xstats reset do the same, refactor away the duplicated function. This patch marks the VSI to update its offset, causing the stats be

[dpdk-dev] [PATCH] vhost: eventfd_link's minor number shall be specified

2015-11-09 Thread Chi, Xiaobo (Nokia - CN/Hangzhou)
Hi, And following is a test by me, we can see that if I firstly insert my kmod_test.ko, then insert eventfd_link.ko, error will happen with hint " Device or resource busy". This is because the default minor device number, 0, has been occupied by my kmod_test.ko . root at distro:~/test$ lsmod

[dpdk-dev] [PATCH v3] i40e: fix resetting of stats

2015-11-09 Thread Harry van Haaren
This patch fixes a bug where only some of the statistics were being reset when calling rte_eth_stats_reset() or rte_eth_xstats_reset(). As both the stats reset and xstats reset do the same, refactor away the duplicated function. This patch marks the VSI to update its offset, causing the stats be

[dpdk-dev] [PATCH] vhost: eventfd_link's minor number shall be specified

2015-11-09 Thread Chi, Xiaobo (Nokia - CN/Hangzhou)
Hi, For miscdevices, the major device_no is same, so the minor device_no should be set to ditinguish different misc devices; if not set the minor, it may fail while insmod due to the default minor value, 0, has been used by other miscdevice. MISC_DYNAMIC_MINOR means to let Linux kernel

[dpdk-dev] [PATCH v3] i40e: fix the issue of not freeing memzone

2015-11-09 Thread Helin Zhang
This fixes the issue of not freeing memzone in a call to free the memory for adminq DMA. Fixes: 4861cde46116 ("i40e: new poll mode driver") Signed-off-by: Helin Zhang --- doc/guides/rel_notes/release_2_2.rst | 5 + drivers/net/i40e/base/i40e_osdep.h | 2 +-

[dpdk-dev] [PATCHv5 2/2] ixgbe: fix TX hang when RS distance exceeds HW limit

2015-11-09 Thread Konstantin Ananyev
One of the ways to reproduce the issue: testpmd -- -i --txqflags=0 testpmd> set fwd txonly testpmd> set txpkts 64,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4 testpmd> set txsplit rand testpmd> start After some time TX on ixgbe queue will hang, and all packet transmission on

[dpdk-dev] [PATCHv5 1/2] testpmd: add ability to split outgoing packets

2015-11-09 Thread Konstantin Ananyev
For CSUM forwarding mode add ability to copy & split outgoing packet into the new mbuf that consists of multiple segments. For TXONLY and CSUM forwarding modes add ability to make number of segments in the outgoing packet to vary on a per packet basis. Number of segments and size of each segment

[dpdk-dev] [PATCHv5 0/2] ixgbe: fix TX hang when RS distance exceeds HW limit

2015-11-09 Thread Konstantin Ananyev
First patch contains changes in testpmd that allows to reproduce the issue. Second patch is the actual fix. Konstantin Ananyev (2): testpmd: add ability to split outgoing packets ixgbe: fix TX hang when RS distance exceeds HW limit app/test-pmd/cmdline.c | 57

[dpdk-dev] [PATCH] ixgbe: fix crc-strip enable changing rx bytes

2015-11-09 Thread Stephen Hemminger
On Mon, 9 Nov 2015 14:55:04 + Harry van Haaren wrote: > Fix a consistency issue in ixgbe, that when CRC stripping is enabled, > the CRC bytes are not added to the rx total byte count. When CRC strip > is disabled, these bytes are counted. > > This patch reads the CRC strip register, and

[dpdk-dev] [PATCH v3 8/8] examples/vhost:support TX offload in vhost sample

2015-11-09 Thread Liu, Jijiang
> > > > -/* IPv4 Header */ > > -struct ipv4_hdr { > > - uint8_t version_ihl; /**< version and header length */ > > - uint8_t type_of_service; /**< type of service */ > > - uint16_t total_length; /**< length of packet */ > > - uint16_t packet_id; /**<

[dpdk-dev] [PATCH] kni: fix compile issue on different kernel versions

2015-11-09 Thread Cao, Waterman
Hi Haifeng, Can you verify helin's patch and acknowledge it if it works fine? Thanks Waterman -Original Message- From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Helin Zhang Sent: Monday, November 9, 2015 2:26 PM To: dev at dpdk.org Subject: [dpdk-dev] [PATCH] kni: fix compile

[dpdk-dev] [RFC 5/5] vhost/container: change mode of vhost listening socket

2015-11-09 Thread Tan, Jianfeng
> -Original Message- > From: Yuanhan Liu [mailto:yuanhan.liu at linux.intel.com] > Sent: Monday, November 9, 2015 1:41 PM > To: Tan, Jianfeng > Cc: dev at dpdk.org; nakajima.yoshihiro at lab.ntt.co.jp; zhbzg at huawei.com; > mst at redhat.com; gaoxiaoqiu at huawei.com; oscar.zhangbo at

[dpdk-dev] [PATCH v3 7/8] lib/librte_vhost:dequeue vhost TX offload

2015-11-09 Thread Liu, Jijiang
> -Original Message- > From: Yuanhan Liu [mailto:yuanhan.liu at linux.intel.com] > Sent: Monday, November 9, 2015 12:01 PM > To: Liu, Jijiang > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v3 7/8] lib/librte_vhost:dequeue vhost TX > offload > > On Wed, Nov 04, 2015 at 06:54:15PM

[dpdk-dev] [RFC 5/5] vhost/container: change mode of vhost listening socket

2015-11-09 Thread Tan, Jianfeng
> -Original Message- > From: Yuanhan Liu [mailto:yuanhan.liu at linux.intel.com] > Sent: Monday, November 9, 2015 11:55 AM > To: Tan, Jianfeng > Cc: dev at dpdk.org; nakajima.yoshihiro at lab.ntt.co.jp; zhbzg at huawei.com; > mst at redhat.com; gaoxiaoqiu at huawei.com; oscar.zhangbo at

[dpdk-dev] DPDK2.1 VF and NIC X552 PF - ixgbe SRIOV works?

2015-11-09 Thread Lu, Wenzhuo
Hi Zhongliang, You use the PF kernel driver 4.2.0, right? I?m surprised. Because the newest ixgbe kernel driver I see is 4.1.5. And it doesn?t support 15a8 officially. From: Zhongliang Shu [mailto:zsh...@yahoo.com] Sent: Saturday, November 7, 2015 2:03 PM To: Lu, Wenzhuo; dev at dpdk.org

[dpdk-dev] [PATCH v2] i40e: fix the issue of not freeing memzone

2015-11-09 Thread Zhang, Helin
> -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Friday, November 6, 2015 6:20 PM > To: Zhang, Helin > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v2] i40e: fix the issue of not freeing memzone > > 2015-11-06 15:57, Helin Zhang: > >