[dpdk-dev] problem: Cannot allocate memzone for ethernet port data

2015-04-23 Thread ChenXiaodong
Hi, Bruce Your patch works! I applied the patch, and the problem disappeared. Thanks ^_^ /ChenXiaodong > Date: Wed, 22 Apr 2015 14:34:17 +0100 > From: bruce.richardson at intel.com > To: ch.xd at live.cn > CC: pablo.de.lara.guarch at intel.com; dev at dpdk.org > Subject: Re: [dpdk-dev] problem:

[dpdk-dev] [PATCH] vhost: flush used->idx update before reading avail->flags

2015-04-23 Thread Huawei Xie
update of used->idx and read of avail->flags could be reordered. memory fence should be used to ensure the order, otherwise guest could see a stale used->idx value after it toggles the interrupt suppression flag. Signed-off-by: Huawei Xie --- lib/librte_vhost/vhost_rxtx.c | 3 +++ 1 file

[dpdk-dev] How do I leave this mailing list

2015-04-23 Thread Wiles, Keith
Try going here and you can input your email and password to unsubscribe. http://dpdk.org/ml/listinfo/dev Or just here for all email lists: http://dpdk.org/ml Regards, ++Keith On 4/22/15, 5:23 PM, "Vipin Agrawal" wrote: >What do I need to do to not receive any more emails? > >Thanks, >Vipin

[dpdk-dev] [PATCH v3 0/5] Clean up pci uio implementations

2015-04-23 Thread Tetsuya Mukawa
On 2015/04/21 22:15, Iremonger, Bernard wrote: >> -Original Message- >> From: Tetsuya Mukawa [mailto:mukawa at igel.co.jp] >> Sent: Friday, March 27, 2015 8:39 AM >> To: dev at dpdk.org >> Cc: Iremonger, Bernard; Richardson, Bruce; david.marchand at 6wind.com; >> Tetsuya Mukawa >>

[dpdk-dev] [PATCH] eal: fix linuxapp numa node detection

2015-04-23 Thread Ramia, Kannan Babu
BTW, the BIOS fix has been posted for the NUMA node reporting issue in Linux kernel when COD is disabled. Now the /sys/devices/*/*/numa_node will provide you the correct information. Regards Kannan Babu -Original Message- From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Bruce

[dpdk-dev] [PATCH] Implement memcmp using AVX/SSE instructio

2015-04-23 Thread Pawel Wodkowski
On 2015-04-22 17:33, Ravi Kerur wrote: > +/** > + * Compare bytes between two locations. The locations must not overlap. > + * > + * @note This is implemented as a macro, so it's address should not be taken > + * and care is needed as parameter expressions may be evaluated multiple > times. > + *

[dpdk-dev] [PATCH] Implement memcmp using AVX/SSE instructio

2015-04-23 Thread Bruce Richardson
On Thu, Apr 23, 2015 at 09:24:52AM +0200, Pawel Wodkowski wrote: > On 2015-04-22 17:33, Ravi Kerur wrote: > >+/** > >+ * Compare bytes between two locations. The locations must not overlap. > >+ * > >+ * @note This is implemented as a macro, so it's address should not be taken > >+ * and care is

[dpdk-dev] [PATCH] Use pthread_setname APIs

2015-04-23 Thread Bruce Richardson
On Wed, Apr 22, 2015 at 03:57:44PM -0700, Stephen Hemminger wrote: > On Wed, 22 Apr 2015 14:05:48 -0700 > Ravi Kerur wrote: > > > Add code to set names to threads via pthread APIs. > > In Linux corresponding _getname_ is available, however, FreeBSD > > doesn't have corresponding _get_name API

[dpdk-dev] [PATCH] net: remove unneeded include in rte_ip.h

2015-04-23 Thread Bruce Richardson
There are no memcpy functions in rte_ip.h so there is no need to include rte_memcpy.h in that file. Signed-off-by: Bruce Richardson --- lib/librte_net/rte_ip.h | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/librte_net/rte_ip.h b/lib/librte_net/rte_ip.h index 74c9ced..cdbce20 100644 ---

[dpdk-dev] [RFC PATCH 0/8] reduce header dependency on rte_mbuf.h

2015-04-23 Thread Bruce Richardson
A large number of our header files and libraries are dependent on one another, which can lead to problems with circular dependencies if trying to tie some of those libraries together, e.g. when prototyping with pktdev, or other schemes to get a common API for ethdev/rings/KNI. :-) One small way

[dpdk-dev] [RFC PATCH 2/8] ethdev: remove inclusion of rte_mbuf.h

2015-04-23 Thread Bruce Richardson
The ethdev header file includes the mbuf header file, but it does not need to do so as it only uses pointers to the struct rte_mbuf type, and does not use any of the mbuf internals, nor any of the mbuf functions or macros. Therefore the inclusion is unnecessary, and can be replaced by a forward

[dpdk-dev] [RFC PATCH 8/8] vhost: remove header inclusion of rte_mbuf.h

2015-04-23 Thread Bruce Richardson
The virtio_net header file includes the mbuf header file, but it does not need to do so as it only uses pointers to the struct rte_mbuf type, and does not use any of the mbuf internals, nor any of the mbuf functions or macros. Therefore the inclusion is unnecessary, and can be replaced by a

[dpdk-dev] [RFC PATCH 6/8] virtio: remove header inclusion of rte_mbuf.h

2015-04-23 Thread Bruce Richardson
The virtqueue header files include the mbuf header file, but they do not need to do so as they only use pointers to the struct rte_mbuf type, and do not use any of the mbuf internals, nor any of the mbuf functions or macros. Therefore the inclusion is unnecessary, and can be replaced by a forward

[dpdk-dev] [RFC PATCH 7/8] table: remove header inclusion of rte_mbuf.h

2015-04-23 Thread Bruce Richardson
The rte_table header file includes the mbuf header file, but it does not need to do so as it only uses pointers to the struct rte_mbuf type, and does not use any of the mbuf internals, nor any of the mbuf functions or macros. Therefore the inclusion is unnecessary, and can be replaced by a forward

[dpdk-dev] [RFC PATCH 1/8] distributor: remove header inclusion of mbuf.h

2015-04-23 Thread Bruce Richardson
The distributor header file includes the mbuf header file, but it does not need to do so as it only uses pointers to the struct rte_mbuf type, and does not use any of the mbuf internals, nor any of the mbuf functions or macros. Therefore the inclusion is unnecessary, and can be replaced by a

[dpdk-dev] [RFC PATCH 5/8] pipeline: remove header inclusion of rte_mbuf.h

2015-04-23 Thread Bruce Richardson
The pipeline header file includes the mbuf header file, but it does not need to do so as it only uses pointers to the struct rte_mbuf type, and does not use any of the mbuf internals, nor any of the mbuf functions or macros. Therefore the inclusion is unnecessary, and can be replaced by a forward

[dpdk-dev] [PATCH] net: remove unneeded include in rte_ip.h

2015-04-23 Thread Thomas Monjalon
2015-04-23 13:49, Bruce Richardson: > There are no memcpy functions in rte_ip.h so there is no need to include > rte_memcpy.h in that file. > > Signed-off-by: Bruce Richardson Applied, thanks

[dpdk-dev] [PATCH] Implement memcmp using AVX/SSE instructio

2015-04-23 Thread Ravi Kerur
On Thu, Apr 23, 2015 at 12:24 AM, Pawel Wodkowski < pawelx.wodkowski at intel.com> wrote: > On 2015-04-22 17:33, Ravi Kerur wrote: > >> +/** >> + * Compare bytes between two locations. The locations must not overlap. >> + * >> + * @note This is implemented as a macro, so it's address should not

[dpdk-dev] [PATCH] Implement memcmp using AVX/SSE instructio

2015-04-23 Thread Ravi Kerur
On Thu, Apr 23, 2015 at 2:23 AM, Ananyev, Konstantin < konstantin.ananyev at intel.com> wrote: > > > > -Original Message- > > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Bruce Richardson > > Sent: Thursday, April 23, 2015 9:12 AM > > To: Wodkowski, PawelX > > Cc: dev at

[dpdk-dev] [PATCH] Implement memcmp using AVX/SSE instructio

2015-04-23 Thread Bruce Richardson
On Thu, Apr 23, 2015 at 06:53:44AM -0700, Ravi Kerur wrote: > On Thu, Apr 23, 2015 at 2:23 AM, Ananyev, Konstantin < > konstantin.ananyev at intel.com> wrote: > > > > > > > > -Original Message- > > > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Bruce Richardson > > > Sent:

[dpdk-dev] [PATCH] PCAP PMD fix: pcap_rx_queue/pcap_tx_queue should store it's own copy of name/type values

2015-04-23 Thread Konstantin Ananyev
pcap_rx_queue/pcap_tx_queue should store it's own copy of name/type values, not the pointer to temporary allocated space. Signed-off-by: Konstantin Ananyev --- lib/librte_pmd_pcap/rte_eth_pcap.c | 51 +- 1 file changed, 34 insertions(+), 17 deletions(-) diff

[dpdk-dev] [PATCH v7 0/6] Move EAL common functions.

2015-04-23 Thread Ravi Kerur
Changes in v7 includes Fix clang and ICC compilation errors reported by Bruce. Remove pthread _setname_ APIs introduced in v6 as a separate patch is sent. Testing: Linux - Ubuntu x86_64 14.04 Compilation successful (x86_64-native-linuxapp-gcc and x86_64-native-linuxapp-clang). "make test" results

[dpdk-dev] [PATCH v7 1/6] Move common functions in eal_thread.c

2015-04-23 Thread Ravi Kerur
Changes in v7 Remove _setname_ pthread calls. Use rte_gettid() API in RTE_LOG to print thread_id. Changes in v6 Remove RTE_EXEC_ENV_BSDAPP from eal_common_thread.c file. Add pthread_setname_np/pthread_set_name_np for Linux/FreeBSD respectively. Plan to use _getname_ in RTE_LOG when available. Use

[dpdk-dev] [PATCH v7 2/6] Move common functions in eal.c

2015-04-23 Thread Ravi Kerur
Changes in v7 Fix clang and ICC compilation errors. Changes in v6 Split eal_common_system.c and eal_common_runtime.c into eal_common_sysfs.c eal_common_mem_cfg.c eal_common_proc_type.c eal_comm_app_usage.c based on functionality. Changes in v5 Rebase to latest code. Changes in v4 Remove

[dpdk-dev] [PATCH v7 3/6] Move common functions in eal_lcore.c

2015-04-23 Thread Ravi Kerur
Changes in v7 None Changes in v6 None Changes in v5 Rebase to latest code. Changes in v4 Implement cpu_detected() for BSD. Have common RTE_LOG for Linux and BSD in rte_eal_cpu_init(). Remove RTE_EXEC_ENV_BSDAPP in common file. Changes in v3 Changed subject to be more explicit on file name

[dpdk-dev] [PATCH v7 4/6] Move common functions in eal_timer.c

2015-04-23 Thread Ravi Kerur
Changes in v7 None Changes in v6 Added new line between Copyright and header file inclusion in eal_common_timer.c. Changes in v5 Rebase to latest code. Changes in v4 Removed extern declaration of eal_tsc_resolution_hz, instead provided _set_ API. Make set_tsc_freq_from_clock as wrapper function

[dpdk-dev] [PATCH v7 5/6] Move common functions in eal_memory.c

2015-04-23 Thread Ravi Kerur
Changes in v7 None Changes in v6 Removed unnecessary comments in function declaration. Changes in v5 Rebase to latest code. Changes in v4 Make rte_eal_hugepage_init and rte_eal_hugepage_attach as wrapper functions for BSD. Changes in v3 Changed subject to be more explicit on file name

[dpdk-dev] [PATCH v7 6/6] Move common functions in eal_pci.c

2015-04-23 Thread Ravi Kerur
Changes in v7 Rebase to latest code. Changes in v6 Split changes due to complexity. v6 includes moving rte_eal_pci_probe_one_driver function and its associated utility functions only. Changes in v5 Rebase to latest code. Removed RTE_EXEC_ENV_BSDAPP from earlier changes. Changes in v4 Move

[dpdk-dev] [PATCH] Implement memcmp using AVX/SSE instructio

2015-04-23 Thread Ravi Kerur
On Thu, Apr 23, 2015 at 7:00 AM, Bruce Richardson < bruce.richardson at intel.com> wrote: > On Thu, Apr 23, 2015 at 06:53:44AM -0700, Ravi Kerur wrote: > > On Thu, Apr 23, 2015 at 2:23 AM, Ananyev, Konstantin < > > konstantin.ananyev at intel.com> wrote: > > > > > > > > > > > > -Original