[dpdk-dev] vswitches performance comparison

2015-07-22 Thread Jun Xiao
After CloudNetEngine vswitch technical preview is launched, we received quite a few queries on vswitches performance comparison, but we cannot simply give a test result on our platform because performance varies on different H/Ws and different workloads, and that's why we encourage you to try the

[dpdk-dev] [ovs-discuss] vswitches performance comparison

2015-07-22 Thread Jun Xiao
I'd like to hope that's my methodology problem, but I just follow the installation guide without any customization. Hi Mark, do you have any performance data share with us? Maybe we are using different type of workloads, like I mentioned I am using typical data center workload, I guess you are

[dpdk-dev] [ovs-discuss] vswitches performance comparison

2015-07-22 Thread Jun Xiao
> On Jul 22, 2015, at 2:36 AM, Gray, Mark D wrote: > > >> >> I'd like to hope that's my methodology problem, but I just follow the >> installation guide without any customization. >> >> Hi Mark, do you have any performance data share with us? Maybe we are >> using different type of workloads

[dpdk-dev] [PATCH] ixgbe: fix check for split packets

2015-07-22 Thread Lu, Wenzhuo
Hi Bruce, > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Bruce Richardson > Sent: Tuesday, July 21, 2015 11:25 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH] ixgbe: fix check for split packets > > The check for split packets to be reassembled in the

[dpdk-dev] [PATCH] testpmd: fix wrong variable type in ieee1588fwd for 32 bits

2015-07-22 Thread Pablo de Lara
In ieee1588fwd.c, timestamp.tv_sec is a size_t variable, which is a long int, but it was being printed with PRIu64, causing an issue on 32 bits. Signed-off-by: Pablo de Lara --- app/test-pmd/ieee1588fwd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/test-pmd/ieee15

[dpdk-dev] [PATCH] testpmd: fix wrong variable type in ieee1588fwd for 32 bits

2015-07-22 Thread Lu, Wenzhuo
Hi Pablo, > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Pablo de Lara > Sent: Wednesday, July 22, 2015 2:39 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH] testpmd: fix wrong variable type in ieee1588fwd > for > 32 bits > > In ieee1588fwd.c, timest

[dpdk-dev] [PATCH v6] Add toeplitz hash algorithm used by RSS

2015-07-22 Thread Tony Lu
Hi, Vladimir When compiling thash for no-X86 arches, it fails with the following errors. I wonder if it is possible to make the thash library arch-independent? == Build app/test CC test_thash.o In file included from /u/zlu.bjg/git/dpdk.org/app/test/test_thash.c:40: /u/zlu.bjg/git/dpdk.org/tile-

[dpdk-dev] [PATCH] testpmd: fix wrong variable type in ieee1588fwd for 32 bits

2015-07-22 Thread De Lara Guarch, Pablo
Hi, > -Original Message- > From: Lu, Wenzhuo > Sent: Wednesday, July 22, 2015 8:26 AM > To: De Lara Guarch, Pablo; dev at dpdk.org > Subject: RE: [dpdk-dev] [PATCH] testpmd: fix wrong variable type in > ieee1588fwd for 32 bits > > Hi Pablo, > > > -Original Message- > > From: dev

[dpdk-dev] [ovs-discuss] vswitches performance comparison

2015-07-22 Thread Gray, Mark D
> >> > >> I'd like to hope that's my methodology problem, but I just follow the > >> installation guide without any customization. > >> > >> Hi Mark, do you have any performance data share with us? Maybe we are > >> using different type of workloads, like I mentioned I am using > >> typical data ce

[dpdk-dev] [PATCH v2] testpmd: fix wrong variable type in ieee1588fwd for 32 bits

2015-07-22 Thread Pablo de Lara
In ieee1588fwd.c, timestamp.tv_sec is a time_t variable, which is a long int, but it was being printed with PRIu64, causing an issue on 32 bits. Signed-off-by: Pablo de Lara --- Changes in v2: - Corrected wrong commit message app/test-pmd/ieee1588fwd.c | 4 ++-- 1 file changed, 2 insertions(+)

[dpdk-dev] vswitches performance comparison

2015-07-22 Thread Gray, Mark D
> "Jun Xiao" wrote: > > > After CloudNetEngine vswitch technical preview is launched, we > > received quite a few queries on vswitches performance comparison, but > > we cannot simply give a test result on our platform because > > performance varies on different H/Ws and different workloads, and

[dpdk-dev] [PATCH v2] testpmd: fix wrong variable type in ieee1588fwd for 32 bits

2015-07-22 Thread Lu, Wenzhuo
Hi, > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Pablo de Lara > Sent: Wednesday, July 22, 2015 4:07 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v2] testpmd: fix wrong variable type in ieee1588fwd > for 32 bits > > In ieee1588fwd.c, timestamp.tv

[dpdk-dev] [PATCH v2] malloc: fix combined lib build

2015-07-22 Thread Thomas Monjalon
> Malloc was moved to the EAL and dummy malloc library was left > to not break apps that had a librte_malloc.so dependency. > Note that the dummy library will be removed in the next release. > > When building a combined library, all objects are copied to the same > directory before creating the li

[dpdk-dev] [PATCH] ixgbe: fix check for split packets

2015-07-22 Thread Bruce Richardson
On Wed, Jul 22, 2015 at 01:44:14AM +0100, Lu, Wenzhuo wrote: > Hi Bruce, > > > -Original Message- > > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Bruce Richardson > > Sent: Tuesday, July 21, 2015 11:25 PM > > To: dev at dpdk.org > > Subject: [dpdk-dev] [PATCH] ixgbe: fix check

[dpdk-dev] [PATCH v2 1/2] virtio: fix queue size and number of descriptors

2015-07-22 Thread Thomas Monjalon
2015-07-20 11:40, Stephen Hemminger: > The number of descriptors can be either zero to use the whole > available ring, or some value smaller. This is used to limit > the number of mbufs allocated for the receive ring. If more > descriptors are requested than available the size is silently > truncat

[dpdk-dev] [PATCH v2 0/2] virtio: fixes for 2.1-rc1

2015-07-22 Thread Thomas Monjalon
> This integrates my change and earlier change by Ouyang Changchun > into one fix. And second patch is minor stuff found while reviewing. > > Stephen Hemminger (2): > virtio: fix queue size and number of descriptors > virtio: small cleanups Applied, thanks Please take care of patch numbering

[dpdk-dev] [PATCH] e1000: enable jumbo frame support for Intel 82583V

2015-07-22 Thread Klaus Degner
This patch enables jumbo frame support for the 82583V. It has been tested ( rx and tx ) with real HW. Signed-off-by: Klaus Degner --- drivers/net/e1000/em_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/e1000/em_ethdev.c b/drivers/net/e1000/em_ethdev.c in

[dpdk-dev] [PATCH] hash: move field hash_func_init_val in rte_hash struct

2015-07-22 Thread Thomas Monjalon
> In order to keep the ABI consistent with the old hash library, > hash_func_init_val field has been moved, so it remains > at the same offset as previously, since hash_func and > hash_func_init_val are fields accesed by the public function > rte_hash_hash and must keep the same offset as older ver

[dpdk-dev] [PATCH v2] ixgbe: fix check for split packets

2015-07-22 Thread Bruce Richardson
The check for split packets to be reassembled in the vector ixgbe PMD was incorrectly only checking the first 16 elements of the array instead of all 32. This is fixed by changing the uint32_t values to be uint64_t instead. Fixes: cf4b4708a88a ("ixgbe: improve slow-path perf with vector scattered

[dpdk-dev] [PATCH v2] ixgbe: fix check for split packets

2015-07-22 Thread Zoltan Kiss
Hi, And what happens if someone changes RTE_IXGBE_VPMD_RX_BURST to something else than 32? I guess this bug were introduced when someone raised it from 16 to 32 I think you are better off with a for loop which uses this value. Or at least make a comment around RTE_IXGBE_VPMD_RX_BURST that if yo

[dpdk-dev] [PATCH] ixgbe: fix compilation issue when IXGBE_RX_ALLOW_BULK_ALLOC is disabled

2015-07-22 Thread Pablo de Lara
ixgbe_recv_pkts_lro uses field rx_free_trigger in structure ixgbe_rx_queue, but that field is only defined if IXGBE_RX_ALLOW_BULK_ALLOC is enabled, so even though that field is not used when it is disabled, compiler complains about it. Therefore, the lines of code that use that field have been ifde

[dpdk-dev] [PATCH] ixgbe: fix compilation issue when IXGBE_RX_ALLOW_BULK_ALLOC is disabled

2015-07-22 Thread Thomas Monjalon
2015-07-22 10:50, Pablo de Lara: > ixgbe_recv_pkts_lro uses field rx_free_trigger > in structure ixgbe_rx_queue, but that field is only defined > if IXGBE_RX_ALLOW_BULK_ALLOC is enabled, so even though > that field is not used when it is disabled, > compiler complains about it. Why this option is

[dpdk-dev] [PATCH] ixgbe: fix compilation issue when IXGBE_RX_ALLOW_BULK_ALLOC is disabled

2015-07-22 Thread Thomas Monjalon
2015-07-22 10:50, Pablo de Lara: > ixgbe_recv_pkts_lro uses field rx_free_trigger > in structure ixgbe_rx_queue, but that field is only defined > if IXGBE_RX_ALLOW_BULK_ALLOC is enabled, so even though > that field is not used when it is disabled, > compiler complains about it. > Therefore, the lin

[dpdk-dev] [PATCH v2] ixgbe: fix check for split packets

2015-07-22 Thread Bruce Richardson
On Wed, Jul 22, 2015 at 10:47:34AM +0100, Zoltan Kiss wrote: > Hi, > > And what happens if someone changes RTE_IXGBE_VPMD_RX_BURST to something > else than 32? I guess this bug were introduced when someone raised it from > 16 to 32 Actually, no, this bug is purely due to me getting my maths wrong

[dpdk-dev] [PATCH v2] testpmd: fix wrong variable type in ieee1588fwd for 32 bits

2015-07-22 Thread Thomas Monjalon
> > In ieee1588fwd.c, timestamp.tv_sec is a time_t variable, which is a long > > int, but > > it was being printed with PRIu64, causing an issue on 32 bits. > > > > Signed-off-by: Pablo de Lara > Acked-by: Wenzhuo Lu Applied, thanks

[dpdk-dev] [RFC] examples: remove l3fwd-vf example

2015-07-22 Thread Thomas Monjalon
2015-07-14 14:50, Zhang, Helin: > From: Wu, Jingjing > > Because VF multi-queues can be supported, l3fwd can run on vf. > > Suggest to remove the l3fwd-vf example. > Totally agree with this! > But we need the confirmation from validation guys of that l3fwd works > quite well on VF with all NICs (e.

[dpdk-dev] libhugetlbfs

2015-07-22 Thread Thomas Monjalon
Sergio, As the maintainer of memory allocation, would you consider using libhugetlbfs in DPDK for Linux? It may simplify a part of our memory allocator and avoid some potential bugs which would be already fixed in the dedicated lib.

[dpdk-dev] [PATCH v2] fm10k: add missing newline to debug log

2015-07-22 Thread Thomas Monjalon
> > If FM10K_DEBUG_DRIVER is enabled, then the log messages about > > function entry are missing newline causing extremely long lines. > > > > Signed-off-by: Stephen Hemminger > > Acked-by : Jing Chen Applied, thanks

[dpdk-dev] [PATCH] fm10k: remove useless code

2015-07-22 Thread Thomas Monjalon
> > The return in fm10k_dev_handle_fault has useless conditional > > since it always returns 0 here. > > > > Signed-off-by: Stephen Hemminger > > Acked-by: Jing Chen Applied, thanks

[dpdk-dev] [PATCH] fm10K: fix interrupt fault handling

2015-07-22 Thread Thomas Monjalon
> > The fm10k driver was reading the interrupt cause register but then > > using the interrupt mask register defines to look at the bits. > > The result is that if a fault happens, the driver would never clear > > the fault and would get into an infinite cycle of interrupts. > > > > Note: I don't

[dpdk-dev] [PATCH v3 0/3] cxgbe: Fix compilation and enable FreeBSD support for CXGBE PMD

2015-07-22 Thread Thomas Monjalon
2015-07-21 10:40, Bruce Richardson: > On Mon, Jul 20, 2015 at 11:01:34PM +0530, Rahul Lakkireddy wrote: > > This series of patches fix compilation and enable CXGBE poll mode driver for > > FreeBSD. The first patch fixes a limitation of nic_uio that only binds to > > devices present in rte_pci_dev_

[dpdk-dev] [PATCH v2] ixgbe: fix check for split packets

2015-07-22 Thread Zoltan Kiss
On 22/07/15 10:59, Bruce Richardson wrote: > On Wed, Jul 22, 2015 at 10:47:34AM +0100, Zoltan Kiss wrote: >> Hi, >> >> And what happens if someone changes RTE_IXGBE_VPMD_RX_BURST to something >> else than 32? I guess this bug were introduced when someone raised it from >> 16 to 32 > > Actually, n

[dpdk-dev] [PATCH v2] ixgbe: fix check for split packets

2015-07-22 Thread Zoltan Kiss
On 22/07/15 14:19, Zoltan Kiss wrote: > Btw. vPMD was a bit misleading abbreviation for me, it took me a while > until I realized 'v' stands for 'vector', not 'virtualization' as in > most cases nowadays. > Though that's mostly my fault to not to check the documentation :)

[dpdk-dev] [PATCH v2] ixgbe: fix check for split packets

2015-07-22 Thread Richardson, Bruce
> -Original Message- > From: Zoltan Kiss [mailto:zoltan.kiss at linaro.org] > Sent: Wednesday, July 22, 2015 2:20 PM > To: Richardson, Bruce > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v2] ixgbe: fix check for split packets > > > > On 22/07/15 10:59, Bruce Richardson wrote:

[dpdk-dev] [PATCH v2] ixgbe: fix check for split packets

2015-07-22 Thread Thomas Monjalon
2015-07-22 13:35, Richardson, Bruce: > From: Zoltan Kiss [mailto:zoltan.kiss at linaro.org] > > On 22/07/15 10:59, Bruce Richardson wrote: > > > The vector PMD always works off a fixed 32 burst size. Any change to > > > that will lead to many changes in the code, so I don't believe a loop is > > ne

[dpdk-dev] [PATCH 1/2] rte_ethdev: fix crash if malloc fails in rte_eth_dev_callback_register

2015-07-22 Thread Thomas Monjalon
2015-07-17 09:16, Bruce Richardson: > On Thu, Jul 16, 2015 at 04:47:23PM -0700, Stephen Hemminger wrote: > > - if (user_cb == NULL && > > - (user_cb = rte_zmalloc("INTR_USER_CALLBACK", > > - sizeof(struct rte_eth_dev_callback), 0))) { > > + if (!user_cb) > >

[dpdk-dev] [PATCH] mempool: fix calculating address of object trailers

2015-07-22 Thread Yuichi Nakai
__mempool_get_trailer() calculated header's address. The address of trailer should set after element area. This patch fixes this calculating. This issue was mixed with the following commit: Fixes: 97e7e685bfcd ("mempool: add structure for object trailers") Signed-off-by: Yuichi Nakai --- lib/l

[dpdk-dev] [PATCH 0/2] static matcher cleanups

2015-07-22 Thread Thomas Monjalon
2015-07-16 16:47, Stephen Hemminger: > These were found by running the Linux kernel coccinelle scripts > on the DPDK source. > > Stephen Hemminger (2): > rte_ethdev: fix crash if malloc fails in rte_eth_dev_callback_register > kni: fix coccinelle warnings Applied, thanks

[dpdk-dev] [RFC] examples: remove l3fwd-vf example

2015-07-22 Thread Zhang, Helin
Marvin/Waterman Could you help to check if l3fwd is good enough for all cases (1g/10/40g, PF and VF, single queue/multiple queue)? We aim to remove l3fwd-vf to reduce an example application which is not so necessary. Thank you! Regards, Helin > -Original Message- > From: Thomas Monjalo

[dpdk-dev] [RFC] examples: remove l3fwd-vf example

2015-07-22 Thread Ananyev, Konstantin
As I remember, the problem is that inside l3fwd each I/O lcore tries to claim a TX queue on each port in use for itself (to avoid any synchronisation overhead). Obviously on some legacy (and virtual) devices this is not possible. On l3fwd-vf, several lcores share the same TX queue. (synchronisatio

[dpdk-dev] [PATCHv3 1/5] ethdev: add new API to retrieve RX/TX queue information

2015-07-22 Thread Zhang, Helin
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Konstantin Ananyev > Sent: Monday, July 20, 2015 5:19 AM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCHv3 1/5] ethdev: add new API to retrieve RX/TX queue > information > > Add the ability for the upper la

[dpdk-dev] [PATCHv3 1/5] ethdev: add new API to retrieve RX/TX queue information

2015-07-22 Thread Ananyev, Konstantin
> -Original Message- > From: Zhang, Helin > Sent: Wednesday, July 22, 2015 5:51 PM > To: Ananyev, Konstantin > Cc: dev at dpdk.org > Subject: RE: [dpdk-dev] [PATCHv3 1/5] ethdev: add new API to retrieve RX/TX > queue information > > > > > -Original Message- > > From: dev [mail

[dpdk-dev] [PATCHv3 2/5] i40e: add support for eth_(rxq|txq)_info_get

2015-07-22 Thread Zhang, Helin
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Konstantin Ananyev > Sent: Monday, July 20, 2015 5:19 AM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCHv3 2/5] i40e: add support for eth_(rxq|txq)_info_get > > Signed-off-by: Konstantin Ananyev Acked-by:

[dpdk-dev] [PATCHv3 3/5] ixgbe: add support for eth_(rxq|txq)_info_get

2015-07-22 Thread Zhang, Helin
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Konstantin Ananyev > Sent: Monday, July 20, 2015 5:19 AM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCHv3 3/5] ixgbe: add support for > eth_(rxq|txq)_info_get > > Signed-off-by: Konstantin Ananyev Acked-b

[dpdk-dev] [PATCHv3 4/5] e1000: add support for eth_(rxq|txq)_info_get

2015-07-22 Thread Zhang, Helin
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Konstantin Ananyev > Sent: Monday, July 20, 2015 5:19 AM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCHv3 4/5] e1000: add support for > eth_(rxq|txq)_info_get > > Signed-off-by: Konstantin Ananyev Acked-b

[dpdk-dev] [PATCHv3 5/5] testpmd: add new command to display RX/TX queue information

2015-07-22 Thread Zhang, Helin
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Konstantin Ananyev > Sent: Monday, July 20, 2015 5:19 AM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCHv3 5/5] testpmd: add new command to display RX/TX > queue information > > Signed-off-by: Konstantin An

[dpdk-dev] [PATCHv4 0/5] ethdev: add new API to retrieve RX/TX queue information

2015-07-22 Thread Konstantin Ananyev
Add the ability for the upper layer to query RX/TX queue information. Right now supported for: ixgbe, i40e, e1000 PMDs. Konstantin Ananyev (5): ethdev: add new API to retrieve RX/TX queue information i40e: add support for eth_(rxq|txq)_info_get ixgbe: add support for eth_(rxq|txq)_info_get

[dpdk-dev] [PATCHv4 3/5] ixgbe: add support for eth_(rxq|txq)_info_get

2015-07-22 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- drivers/net/ixgbe/ixgbe_ethdev.c | 4 drivers/net/ixgbe/ixgbe_ethdev.h | 6 ++ drivers/net/ixgbe/ixgbe_rxtx.c | 42 3 files changed, 52 insertions(+) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/driver

[dpdk-dev] [PATCHv4 5/5] testpmd: add new command to display RX/TX queue information

2015-07-22 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- app/test-pmd/cmdline.c | 48 app/test-pmd/config.c | 67 ++ app/test-pmd/testpmd.h | 2 ++ 3 files changed, 117 insertions(+) diff --git a/app/test-pmd/cmdline.c b/app/tes

[dpdk-dev] [PATCHv4 1/5] ethdev: add new API to retrieve RX/TX queue information

2015-07-22 Thread Konstantin Ananyev
Add the ability for the upper layer to query RX/TX queue information. Add new structures: struct rte_eth_rxq_info struct rte_eth_txq_info new functions: rte_eth_rx_queue_info_get rte_eth_tx_queue_info_get into rte_etdev API. Left extra free space in the queue info structures, so extra fields co

[dpdk-dev] [PATCHv4 2/5] i40e: add support for eth_(rxq|txq)_info_get

2015-07-22 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- drivers/net/i40e/i40e_ethdev.c | 2 ++ drivers/net/i40e/i40e_ethdev.h | 5 + drivers/net/i40e/i40e_rxtx.c | 42 ++ 3 files changed, 49 insertions(+) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40

[dpdk-dev] [PATCHv4 4/5] e1000: add support for eth_(rxq|txq)_info_get

2015-07-22 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- drivers/net/e1000/e1000_ethdev.h | 12 drivers/net/e1000/em_ethdev.c| 2 ++ drivers/net/e1000/em_rxtx.c | 38 ++ drivers/net/e1000/igb_ethdev.c | 4 drivers/net/e1000/igb_rxtx.c | 36 +

[dpdk-dev] [PATCHv4 1/5] ethdev: add new API to retrieve RX/TX queue information

2015-07-22 Thread Stephen Hemminger
On Wed, 22 Jul 2015 19:28:51 +0100 Konstantin Ananyev wrote: > Add the ability for the upper layer to query RX/TX queue information. > > Add new structures: > struct rte_eth_rxq_info > struct rte_eth_txq_info > > new functions: > rte_eth_rx_queue_info_get > rte_eth_tx_queue_info_get > > into r

[dpdk-dev] [PATCHv3 1/5] ethdev: add new API to retrieve RX/TX queue information

2015-07-22 Thread Thomas Monjalon
2015-07-22 17:00, Ananyev, Konstantin: > From: Zhang, Helin > > > -#ifdef __cplusplus > > > -} > > > -#endif > > > - > > > /** > > > * Set the list of multicast addresses to filter on an Ethernet device. > > > * > > > @@ -3882,4 +3952,9 @@ extern int > > > rte_eth_timesync_read_rx_timestamp(ui

[dpdk-dev] [PATCH] The VMXNET3 PMD can't receive packet suddenly after a lot of traffic coming in. The root cause is due to mbuf allocation fail in vmxnet3_post_rx_bufs() and there is no error handlin

2015-07-22 Thread Stephen Hemminger
On Thu, 23 Jul 2015 09:48:55 +0800 mac_leehk at yahoo.com.hk wrote: > From: marco Thank you for addressing a real bug. But there are several issues with the patch as submitted: * the standard way to handle allocation failure in network drivers is to drop the received packet and reuse the