[dpdk-dev] [PATCH 3/3] librte_reorder: New sample app for reorder library

2015-01-07 Thread Reshma Pattan
From: Reshma Pattan *Sample application consists of RX, Worker and TX threads. *RX thread marks the seqn field of mbufs upon receiving mbufs from driver. Marked mbufs will be enqueued in multi consumer ring. *Worker threads will dequeue

[dpdk-dev] [PATCH 2/3] librte_reorder: New unit test cases added

2015-01-07 Thread Reshma Pattan
From: Reshma Pattan Signed-off-by: Reshma Pattan --- app/test/Makefile | 2 + app/test/test_reorder.c | 452 mk/rte.app.mk | 4 + 3 files changed, 458 insertions(+) create mode 100644

[dpdk-dev] [PATCH 1/3] librte_reorder: New reorder library

2015-01-07 Thread Reshma Pattan
From: Reshma Pattan 1)New library to provide reordering of out of ordered mbufs based on sequence number of mbuf. Library uses reorder buffer structure which in tern uses two circular buffers called ready and order buffers.

[dpdk-dev] [PATCH] librte_reorder: New reorder library with unit tests and app

2015-01-07 Thread Pattan, Reshma
Self Nacked. Sending multiple sub patches instead of this big patch. > -Original Message- > From: Pattan, Reshma > Sent: Wednesday, January 7, 2015 3:28 PM > To: dev at dpdk.org > Cc: Pattan, Reshma > Subject: [PATCH] librte_reorder: New reorder library with unit tests and app > > From:

[dpdk-dev] [PATCH] librte_reorder: New reorder library with unit tests and app

2015-01-07 Thread Reshma Pattan
From: Reshma Pattan 1)New library to provide reordering of out of ordered mbufs based on sequence number of mbuf. Library uses reorder buffer structure which in tern uses two circular buffers called ready and order buffers.

[dpdk-dev] [PATCH 2/2] devargs: remove limit on parameters length

2015-01-07 Thread Stephen Hemminger
On Wed, 7 Jan 2015 14:03:29 +0100 David Marchand wrote: > + buf = strdup(devargs_str); > + if (buf == NULL) { > + RTE_LOG(ERR, EAL, "cannot allocate temp memory for devargs\n"); > + goto fail; > + } > + If string is only used in same function you might

[dpdk-dev] [PATCH v5 6/6] testpmd: Set Rx VMDq RSS mode

2015-01-07 Thread Ouyang Changchun
Set VMDq RSS mode if it has VF(VF number is more than 1) and has RSS information. Signed-off-by: Changchun Ouyang changes in v5 - Assign txmode.mq_mode with ETH_MQ_TX_NONE explicitly; - Remove one line wrong comment. --- app/test-pmd/testpmd.c | 15 ++- 1 file changed, 14

[dpdk-dev] [PATCH v5 5/6] ixgbe: Config VF RSS

2015-01-07 Thread Ouyang Changchun
It needs config RSS and IXGBE_MRQC and IXGBE_VFPSRTYPE to enable VF RSS. The psrtype will determine how many queues the received packets will distribute to, and the value of psrtype should depends on both facet: max VF rxq number which has been negotiated with PF, and the number of rxq specified

[dpdk-dev] [PATCH v5 4/6] ether: Check VMDq RSS mode

2015-01-07 Thread Ouyang Changchun
Check mq mode for VMDq RSS, handle it correctly instead of returning an error; Also remove the limitation of per pool queue number has max value of 1, because the per pool queue number could be 2 or 4 if it is VMDq RSS mode; The number of rxq specified in config will determine the mq mode for

[dpdk-dev] [PATCH v5 3/6] ixgbe: Get VF queue number

2015-01-07 Thread Ouyang Changchun
Get the available Rx and Tx queue number when receiving IXGBE_VF_GET_QUEUES message from VF. Signed-off-by: Changchun Ouyang changes in v5 - Add some 'FIX ME' comments for IXGBE_VF_TRANS_VLAN. --- lib/librte_pmd_ixgbe/ixgbe_pf.c | 40 +++- 1 file

[dpdk-dev] [PATCH v5 2/6] ixgbe: Negotiate VF API version

2015-01-07 Thread Ouyang Changchun
Negotiate API version with VF when receiving the IXGBE_VF_API_NEGOTIATE message. Signed-off-by: Changchun Ouyang --- lib/librte_pmd_ixgbe/ixgbe_ethdev.h | 1 + lib/librte_pmd_ixgbe/ixgbe_pf.c | 25 + 2 files changed, 26 insertions(+) diff --git

[dpdk-dev] [PATCH v5 1/6] ixgbe: Code cleanup

2015-01-07 Thread Ouyang Changchun
Put global register configuring out of loop for queue; also fix typo and indent; Signed-off-by: Changchun Ouyang --- lib/librte_pmd_ixgbe/ixgbe_rxtx.c | 35 ++- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/lib/librte_pmd_ixgbe/ixgbe_rxtx.c

[dpdk-dev] [PATCH v5 0/6] Enable VF RSS for Niantic

2015-01-07 Thread Ouyang Changchun
This patch enables VF RSS for Niantic, which allow each VF having at most 4 queues. The actual queue number per VF depends on the total number of pool, which is determined by the max number of VF at PF initialization stage and the number of queue specified in config: 1) If the max number of VF is

[dpdk-dev] [PATCH 2/2] devargs: remove limit on parameters length

2015-01-07 Thread David Marchand
As far as I know, there is no reason why we should have a limit on the length of parameters that can be given for a device. Remove this limit by using dynamic allocations. Signed-off-by: David Marchand --- lib/librte_eal/common/eal_common_devargs.c | 26 +-

[dpdk-dev] [PATCH 1/2] devargs: indent and cleanup

2015-01-07 Thread David Marchand
Prepare for next commit. Fix some indent issues, refactor error code. Signed-off-by: David Marchand --- lib/librte_eal/common/eal_common_devargs.c | 27 ++- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/lib/librte_eal/common/eal_common_devargs.c

[dpdk-dev] [PATCH v3 0/3] enhance TX checksum command and csum forwarding engine

2015-01-07 Thread Qiu, Michael
On 12/10/2014 9:04 AM, Jijiang Liu wrote: > In the current codes, the "tx_checksum set (ip|udp|tcp|sctp|vxlan) (hw|sw) > (port-id)" command is not easy to understand and extend, so the patch set > enhances the tx_checksum command and reworks csum forwarding engine due to > the change of

[dpdk-dev] [PATCH 1/3] librte_reorder: New reorder library

2015-01-07 Thread Neil Horman
On Wed, Jan 07, 2015 at 04:39:11PM +, Reshma Pattan wrote: > From: Reshma Pattan > > 1)New library to provide reordering of out of ordered > mbufs based on sequence number of mbuf. Library uses reorder > buffer structure > which in tern uses two circular

[dpdk-dev] [PATCH RFC v2 00/12] lib/librte_vhost: vhost-user support

2015-01-07 Thread Qiu, Michael
On 12/18/2014 1:43 AM, Xie, Huawei wrote: > >> -Original Message- >> From: Tetsuya Mukawa [mailto:mukawa at igel.co.jp] >> Sent: Sunday, December 14, 2014 10:26 PM >> To: Xie, Huawei; dev at dpdk.org >> Cc: haifeng.lin at intel.com >> Subject: Re: [PATCH RFC v2 00/12] lib/librte_vhost:

[dpdk-dev] [PATCH v3 0/3] enhance TX checksum command and csum forwarding engine

2015-01-07 Thread Ananyev, Konstantin
> -Original Message- > From: Liu, Jijiang > Sent: Wednesday, January 07, 2015 11:39 AM > To: Ananyev, Konstantin; 'Olivier MATZ' > Cc: dev at dpdk.org > Subject: RE: [dpdk-dev] [PATCH v3 0/3] enhance TX checksum command and csum > forwarding engine > > Hi Konstantin, > > >

[dpdk-dev] [PATCH v3 0/3] enhance TX checksum command and csum forwarding engine

2015-01-07 Thread Liu, Jijiang
Hi Konstantin, > -Original Message- > From: Ananyev, Konstantin > Sent: Wednesday, January 7, 2015 5:59 PM > To: Liu, Jijiang; 'Olivier MATZ' > Cc: dev at dpdk.org > Subject: RE: [dpdk-dev] [PATCH v3 0/3] enhance TX checksum command and > csum forwarding engine > > Hi Frank, > > >

[dpdk-dev] [PATCH v3 0/3] enhance TX checksum command and csum forwarding engine

2015-01-07 Thread Ananyev, Konstantin
Hi Frank, > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Liu, Jijiang > Sent: Wednesday, January 07, 2015 2:04 AM > To: 'Olivier MATZ' > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v3 0/3] enhance TX checksum command and csum > forwarding engine >

[dpdk-dev] [PATCH RFC v2 03/12] lib/librte_vhost: move event_copy logic from virtio-net.c to vhost-net-cdev.c

2015-01-07 Thread Xie, Huawei
> + file = *(const struct vhost_vring_file *)in_buf; > + LOG_DEBUG(VHOST_CONFIG, > + "idx:%d fd:%d\n", file.index, file.fd); > + fd = eventfd_copy(file.fd, ctx.pid); > + if (fd < 0) { > +

[dpdk-dev] [PATCH v2] bond: vlan flags misinterpreted in xmit_slave_hash function

2015-01-07 Thread Jiajia, SunX
Tested-by: Jiajia, SunX - Tested Commit: 6fb3161060fc894295a27f9304c56ef34492799d - OS: Fedora20 3.11.10-301.fc20.x86_64 - GCC: gcc version 4.8.3 - CPU: Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz - NIC: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection [8086:10fb] - Target

[dpdk-dev] [PATCH v4 4/6] ether: Check VMDq RSS mode

2015-01-07 Thread Ouyang, Changchun
> -Original Message- > From: Vlad Zolotarov [mailto:vladz at cloudius-systems.com] > Sent: Wednesday, January 7, 2015 3:56 AM > To: Ouyang, Changchun; dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v4 4/6] ether: Check VMDq RSS mode > > > On 01/06/15 03:56, Ouyang, Changchun wrote: >

[dpdk-dev] [PATCH v3 0/3] enhance TX checksum command and csum forwarding engine

2015-01-07 Thread Liu, Jijiang
Hi Olivier, > -Original Message- > From: Olivier MATZ [mailto:olivier.matz at 6wind.com] > Sent: Saturday, December 13, 2014 12:33 AM > To: Liu, Jijiang > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v3 0/3] enhance TX checksum command and > csum forwarding engine > > Hello, > >

[dpdk-dev] [PATCH v4 6/6] testpmd: Set Rx VMDq RSS mode

2015-01-07 Thread Ouyang, Changchun
> -Original Message- > From: Vlad Zolotarov [mailto:vladz at cloudius-systems.com] > Sent: Tuesday, January 6, 2015 8:53 PM > To: Ouyang, Changchun; dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v4 6/6] testpmd: Set Rx VMDq RSS mode > > > On 01/06/15 04:01, Ouyang, Changchun wrote:

[dpdk-dev] [PATCH v4 3/6] ixgbe: Get VF queue number

2015-01-07 Thread Ouyang, Changchun
> -Original Message- > From: Vlad Zolotarov [mailto:vladz at cloudius-systems.com] > Sent: Tuesday, January 6, 2015 7:27 PM > To: Ouyang, Changchun; dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v4 3/6] ixgbe: Get VF queue number > > > On 01/06/15 03:54, Ouyang, Changchun wrote: > >