[dpdk-dev] [PATCH v2 1/3] spinlock: add support for HTM lock elision for x86

2015-06-17 Thread Thomas Monjalon
2015-06-16 10:16, Roman Dementiev: > --- a/lib/librte_eal/common/include/arch/x86/rte_spinlock.h > +++ b/lib/librte_eal/common/include/arch/x86/rte_spinlock.h > @@ -39,6 +39,13 @@ extern "C" { > #endif > > #include "generic/rte_spinlock.h" > +#include "rte_rtm.h" > +#include "rte_cpuflags.h" >

[dpdk-dev] [PATCH v2] vhost: provide vhost API to unregister vhost unix domain socket

2015-06-17 Thread Thomas Monjalon
2015-06-05 11:26, Huawei Xie: > rte_vhost_driver_unregister will remove the listenfd from event list, and > then close it. > > Signed-off-by: Huawei Xie > Signed-off-by: Peng Sun > --- > lib/librte_vhost/rte_virtio_net.h| 3 ++ > lib/librte_vhost/vhost_cuse/vhost-net-cdev.c | 9 +

[dpdk-dev] [PATCH v7 0/4] User-space Ethtool

2015-06-17 Thread Stephen Hemminger
On Wed, Jun 17, 2015 at 6:22 PM, Liang-Min Larry Wang < liang-min.wang at intel.com> wrote: > This implementation is designed to provide a familar interface for > applications that rely on kernel-space driver to support ethtool_op and > net_device_op for device management. The initial implementati

[dpdk-dev] Debugging SR-IOV related packet flow problem with

2015-06-17 Thread Patel, Rashmin N
You can pass uio device to docker container with below command line, or you can mount the volume /dev to container to allow all devices. docker run -it --rm --privileged --device=/dev/uio0:/dev/uio0 --device=/dev/uio1:/dev/uio1 -v /mnt:/mnt fedora20-dpdk-2 /bin/bash -Original Message- F

[dpdk-dev] [PATCH 1/2] vhost: malloc -> rte_malloc for virtio_net and virt queue allocation

2015-06-17 Thread Thomas Monjalon
2015-06-05 11:13, Huawei Xie: > use rte_malloc/free for virtio_net and virt queue allocation/free > > Signed-off-by: Huawei Xie I suggest this title: vhost: use rte_malloc to allocate device and queues

[dpdk-dev] [PATCH 2/2] vhost: realloc virtio_net and virtqueue to the same node of vring desc table

2015-06-17 Thread Thomas Monjalon
2015-06-17 18:47, Thomas Monjalon: > 2015-06-05 11:13, Huawei Xie: > > --- a/mk/rte.app.mk > > +++ b/mk/rte.app.mk > > @@ -92,6 +92,9 @@ endif # ! CONFIG_RTE_BUILD_COMBINE_LIBS > > > > _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_PCAP) += -lpcap > > > > +ifeq ($(CONFIG_RTE_LIBRTE_VHOST_NUMA),y) > > +

[dpdk-dev] rte_mbuf.next in 2nd cacheline

2015-06-17 Thread Ananyev, Konstantin
Hi Dave, > From: Dave Barach (dbarach) [mailto:dbarach at cisco.com] > Sent: Wednesday, June 17, 2015 4:46 PM > To: Venkatesan, Venky; Richardson, Bruce; olivier.matz at 6wind.com; Ananyev, > Konstantin > Cc: Damjan Marion (damarion) > Subject: RE: [dpdk-dev] rte_mbuf.next in 2nd cacheline > > D

[dpdk-dev] [PATCH 2/2] vhost: realloc virtio_net and virtqueue to the same node of vring desc table

2015-06-17 Thread Thomas Monjalon
2015-06-05 11:13, Huawei Xie: > --- a/mk/rte.app.mk > +++ b/mk/rte.app.mk > @@ -92,6 +92,9 @@ endif # ! CONFIG_RTE_BUILD_COMBINE_LIBS > > _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_PCAP) += -lpcap > > +ifeq ($(CONFIG_RTE_LIBRTE_VHOST_NUMA),y) > +_LDLIBS-$(CONFIG_RTE_LIBRTE_VHOST) += -lnuma

[dpdk-dev] rte_mbuf.next in 2nd cacheline

2015-06-17 Thread Thomas Monjalon
2015-06-17 14:23, Damjan Marion: > > > On 17 Jun 2015, at 16:06, Bruce Richardson > > wrote: > > > > On Wed, Jun 17, 2015 at 01:55:57PM +, Damjan Marion (damarion) wrote: > >> > >>> On 15 Jun 2015, at 16:12, Bruce Richardson >>> intel.com> wrote: > >>> > >>> The next pointers always star

[dpdk-dev] Why doesn`t test-acl work when IP filed is RTE_ACL_FIELD_TYPE_RANGE?

2015-06-17 Thread Gyumin
ok, I notice now that my rule file was wrong. I modified the range of SIP/DIP like the value of SIP/DIP (like 192.168.10.100), and it works!

[dpdk-dev] [PATCH v7 4/4] examples: new example: l2fwd-ethtool

2015-06-17 Thread Liang-Min Larry Wang
The example includes an ethtool library and two applications: one application is a non- DPDK process (nic-control) and the other is a DPDK l2fwd applicaiton (l2fwd-app). The nic-control process sends ethtool alike device management requests to l2fwd-app through a named pipe IPC. This example is des

[dpdk-dev] [PATCH v7 3/4] igb: add ops to support ethtool ops

2015-06-17 Thread Liang-Min Larry Wang
add function to support ethtool ops: - set_mac_addr - get_reg_length - get_regs - get_eeprom_length - get_eeprom - set_eeprom Signed-off-by: Liang-Min Larry Wang --- drivers/net/e1000/igb_ethdev.c | 186 +++ drivers/net/e1000/igb_regs.h | 217 +++

[dpdk-dev] [PATCH v7 2/4] ixgbe: add ops to support ethtool ops

2015-06-17 Thread Liang-Min Larry Wang
add function to support ethtool ops: - set_mac_addr - get_reg_length - get_regs - get_eeprom_length - get_eeprom - set_eeprom Signed-off-by: Liang-Min Larry Wang --- drivers/net/ixgbe/ixgbe_ethdev.c | 183 drivers/net/ixgbe/ixgbe_regs.h | 357 ++

[dpdk-dev] [PATCH v7 1/4] ethdev: add apis to support access device info

2015-06-17 Thread Liang-Min Larry Wang
add new apis: - rte_eth_dev_default_mac_addr_set - rte_eth_dev_reg_length - rte_eth_dev_reg_info - rte_eth_dev_eeprom_length - rte_eth_dev_get_eeprom - rte_eth_dev_set_eeprom to enable reading device parameters (mac-addr, register, eeprom) based upon ethtool alike data parameter specification. Si

[dpdk-dev] [PATCH v7 0/4] User-space Ethtool

2015-06-17 Thread Liang-Min Larry Wang
This implementation is designed to provide a familar interface for applications that rely on kernel-space driver to support ethtool_op and net_device_op for device management. The initial implementation focuses on ops that can be implemented through existing netdev APIs. More ops will be support

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

2015-06-17 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] [PATCH 4/5] e1000: add support for eth_(rx|tx)_qinfo_get

2015-06-17 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] [PATCH 3/5] ixgbe: add support for eth_(rx|tx)_qinfo_get

2015-06-17 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] [PATCH 2/5] i40e: add support for eth_(rx|tx)_qinfo_get

2015-06-17 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] [PATCH 1/5] ethdev: add new API to retrieve RX/TX queue information

2015-06-17 Thread Konstantin Ananyev
Add the ability for the upper layer to query RX/TX queue information. Add new structures: struct rte_eth_rx_qinfo struct rte_eth_tx_qinfo new functions: rte_eth_rx_queue_info_get rte_eth_tx_queue_info_get into rte_etdev API. Left extra free space in the qinfo structures, so extra fields could b

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

2015-06-17 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_(rx|tx)_qinfo_get ixgbe: add support for eth_(rx|tx)_qinfo_get e

[dpdk-dev] [PATCH v4 1/4] ethdev: add apis to support access device info

2015-06-17 Thread Ananyev, Konstantin
... > > > > > > > > > > + > > > > > > > > > > +int > > > > > > > > > > +rte_eth_dev_get_ringparam(uint8_t port_id, struct > > > > > > > > > > +rte_dev_ring_info > > > > > > > > > > +*info) { > > > > > > > > > > + struct rte_eth_dev *dev; > > > > > > > > > > + > > > > > > > > > > + if (!rte_eth

[dpdk-dev] [PATCH v5 4/5] vhost: eventfd_link: replace copy-pasted sys_close

2015-06-17 Thread Thomas Monjalon
2015-05-07 06:54, Xie, Huawei: > On 4/16/2015 7:48 PM, Pavel Boldin wrote: > > + /* Closing the source_fd */ > > + ret = sys_close(eventfd_copy.source_fd); > Pavel: > Here we close the fd and re-install a new file on this fd later. > sys_close does all cleanup. > But, for instance, if we alloc

[dpdk-dev] [ovs-dev] dpdkvhostuser fail to alloc memory when receive packet from other host

2015-06-17 Thread gowrishankar
On Wednesday 17 June 2015 03:19 PM, Du, Fan wrote: > Hi, > > I'm playing dpdkvhostuser ports with latest DPDK and ovs master tree with > iperf benchmarking. > When kvm guest1(backed up dpdkvhostuser port)siting on HOST1 is receiving > packets from either other physical HOST2, > or similar kvm gue

[dpdk-dev] [PATCH v7 0/4] Fix vhost enqueue/dequeue issue

2015-06-17 Thread Thomas Monjalon
2015-06-10 06:49, Xie, Huawei: > On 6/9/2015 9:03 AM, Ouyang, Changchun wrote: > > Fix enqueue/dequeue can't handle chained vring descriptors; > > Remove unnecessary vring descriptor length updating; > > Add support copying scattered mbuf to vring; > > > > Changchun Ouyang (4): > > lib_vhost: Fix

[dpdk-dev] [PATCH v2 0/6] cfgfile: config file parsing extension

2015-06-17 Thread Dumitrescu, Cristian
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Maciej Gajdzica > Sent: Wednesday, June 17, 2015 3:49 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v2 0/6] cfgfile: config file parsing extension > > Added new implementation of section parsing in con

[dpdk-dev] [PATCH v2 6/6] cfgfile: added new implementation of section parsing

2015-06-17 Thread Maciej Gajdzica
From: Pawel Wodkowski New implementation of section parsing changes the way section allocation is made. It protects against multiple sections with the same name and multiple entries in section with the same name. It also drop constraint on value length limited to 64 bytes. Now its size is unlimit

[dpdk-dev] [PATCH v2 5/6] cfgfile: fixed calling free for each section in rte_cfgfile_close

2015-06-17 Thread Maciej Gajdzica
From: Pawel Wodkowski Signed-off-by: Pawel Wodkowski --- lib/librte_cfgfile/rte_cfgfile.c | 53 +- 1 file changed, 30 insertions(+), 23 deletions(-) diff --git a/lib/librte_cfgfile/rte_cfgfile.c b/lib/librte_cfgfile/rte_cfgfile.c index 4e77ef5..2ce5d70 100

[dpdk-dev] [PATCH v2 4/6] cfgfile: added line continue character '\' to make multiline values possible

2015-06-17 Thread Maciej Gajdzica
From: Pawel Wodkowski Signed-off-by: Pawel Wodkowski --- lib/librte_cfgfile/rte_cfgfile.c | 147 ++ 1 file changed, 133 insertions(+), 14 deletions(-) diff --git a/lib/librte_cfgfile/rte_cfgfile.c b/lib/librte_cfgfile/rte_cfgfile.c index 2e78583..4e77ef5 10

[dpdk-dev] [PATCH v2 3/6] cfgfile: split rte_cfgfile_load to smaller functions

2015-06-17 Thread Maciej Gajdzica
From: Pawel Wodkowski Signed-off-by: Pawel Wodkowski --- lib/librte_cfgfile/rte_cfgfile.c | 93 -- 1 file changed, 80 insertions(+), 13 deletions(-) diff --git a/lib/librte_cfgfile/rte_cfgfile.c b/lib/librte_cfgfile/rte_cfgfile.c index b81c273..2e78583 100

[dpdk-dev] [PATCH v2 2/6] librte_compat: fix macro definition

2015-06-17 Thread Maciej Gajdzica
From: Pawel Wodkowski Signed-off-by: Pawel Wodkowski --- lib/librte_compat/rte_compat.h |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/librte_compat/rte_compat.h b/lib/librte_compat/rte_compat.h index fb0dc19..cf6b9d3 100644 --- a/lib/librte_compat/rte_compat

[dpdk-dev] [PATCH v2 1/6] librte_cfgfile: fix code formating in header file

2015-06-17 Thread Maciej Gajdzica
From: Pawel Wodkowski Signed-off-by: Pawel Wodkowski --- lib/librte_cfgfile/rte_cfgfile.h | 27 ++- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/lib/librte_cfgfile/rte_cfgfile.h b/lib/librte_cfgfile/rte_cfgfile.h index 7c9fc91..860ce44 100644 --- a/li

[dpdk-dev] [PATCH v2 0/6] cfgfile: config file parsing extension

2015-06-17 Thread Maciej Gajdzica
Added new implementation of section parsing in config file. Refactored existing code by spliting it to smaller functions. Changed section allocation scheme and added new features - variable length entry value and line continue character '\'. Pawel Wodkowski (6): librte_cfgfile: fix code formati

[dpdk-dev] [PATCH] doc: fix doxygen warnings for QoS API

2015-06-17 Thread Dumitrescu, Cristian
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Michal Jastrzebski > Sent: Wednesday, June 17, 2015 3:37 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH] doc: fix doxygen warnings for QoS API > > This patch fix doxygen warnings when generating documen

[dpdk-dev] [PATCH 2/2 v2] fm10k: Add hotplug support for fm10k

2015-06-17 Thread Michael Qiu
Add hotplug support for fm10k. Signed-off-by: Michael Qiu --- drivers/net/fm10k/fm10k_ethdev.c | 97 +++- 1 file changed, 96 insertions(+), 1 deletion(-) diff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers/net/fm10k/fm10k_ethdev.c index e310698..0d3eaf1 1

[dpdk-dev] [PATCH 1/4] eal: provide functions to access PCI config

2015-06-17 Thread David Marchand
On Wed, Jun 17, 2015 at 1:51 AM, Stephen Hemminger < stephen at networkplumber.org> wrote: > From: Stephen Hemminger > > Some drivers need ability to access PCI config (for example for power > management). This adds an abstraction to do this for both Linux > and BSD. > > Signed-off-by: Stephen He

[dpdk-dev] [PATCH] doc: fix doxygen warnings for QoS API

2015-06-17 Thread Michal Jastrzebski
This patch fix doxygen warnings when generating documentation for qos_meter and qos_sched Signed-off-by: Michal Jastrzebski --- lib/librte_meter/rte_meter.h | 8 lib/librte_sched/rte_bitmap.h | 10 +- lib/librte_sched/rte_red.h| 44 +

[dpdk-dev] [PATCH 2/6] hash: replace existing hash library with cuckoo hash implementation

2015-06-17 Thread Bruce Richardson
On Fri, Jun 05, 2015 at 03:33:20PM +0100, Pablo de Lara wrote: > This patch replaces the existing hash library with another approach, > using the Cuckoo Hash method to resolve collisions (open addressing), > which pushes items from a full bucket when a new entry tries > to be added in it, storing t

[dpdk-dev] rte_mbuf.next in 2nd cacheline

2015-06-17 Thread Thomas Monjalon
2015-06-17 13:55, Damjan Marion: > > > On 15 Jun 2015, at 16:12, Bruce Richardson > > wrote: > > > > The next pointers always start out as NULL when the mbuf pool is created. > > The > > only time it is set to non-NULL is when we have chained mbufs. If we never > > have > > any chained mbufs,

[dpdk-dev] [PATCH v2 1/7] ethdev: add additional error stats

2015-06-17 Thread Thomas Monjalon
2015-06-09 17:29, Stephen Hemminger: > On Tue, 9 Jun 2015 16:10:40 +0100 > Maryam Tahhan wrote: > > > Add MAC error and drop statistics to struct rte_eth_stats and the > > extended stats. > > Signed-off-by: Maryam Tahhan > > --- > > lib/librte_ether/rte_ethdev.c | 4 > > lib/librte_ether/

[dpdk-dev] [PATCH 1/2 v2] fm10k: Free queues when close port

2015-06-17 Thread Michael Qiu
When close a port, lots of memory should be released, such as software rings, queues, etc. Signed-off-by: Michael Qiu --- change log: v2 --> v1: remove __rte_unused flag drivers/net/fm10k/fm10k_ethdev.c | 37 + 1 file changed, 33 insertions(+), 4 deletions(

[dpdk-dev] [PATCH 2/4] ethdev: expose extended error stats

2015-06-17 Thread Thomas Monjalon
2015-06-05 18:35, Maryam Tahhan: > Extend rte_eth_xstats_get to retrieve additional stats from the device > driver as well the top level extended stats. Add additional drop > counters to the extended stats. > > Signed-off-by: Maryam Tahhan [..] Patch 1/4 doesn't compile without patch 2/4. > ---

[dpdk-dev] [dpdk-announce] important design choices - statistics - ABI

2015-06-17 Thread Vincent JARDIN
On 17/06/2015 14:14, Panu Matilainen wrote: > (initially accidentally sent to announce, resending to dev) > > On 06/17/2015 01:35 PM, Neil Horman wrote: >> On Wed, Jun 17, 2015 at 01:29:47AM +0200, Thomas Monjalon wrote: >>> Hi all, >>> >>> Sometimes there are some important discussions about archi

[dpdk-dev] Debugging SR-IOV related packet flow problem with DPDK

2015-06-17 Thread Andrew Harvey (agh)
Please type the following: dmesg | grep DMAR. I think you will find that rebinding the uio driver has caused issues, uio know nothing about the iommu. If you can you may have better luck with the vfio driver. HTH ? Andy On 6/17/15, 3:52 AM, "dev on behalf of Anjali Kulkarni" wrote: >Folks, >

[dpdk-dev] [PATCH v2 0/3] add support for HTM lock elision for x86

2015-06-17 Thread Thomas Monjalon
2015-06-17 14:05, Bruce Richardson: > On Tue, Jun 16, 2015 at 10:16:43AM -0700, Roman Dementiev wrote: > > This series of patches adds methods that use hardware memory transactions > > (HTM) > > on fast-path for DPDK locks (a.k.a. lock elision). Here the methods are > > implemented for x86 using R

[dpdk-dev] [dpdk-announce] important design choices - statistics - ABI

2015-06-17 Thread Panu Matilainen
(initially accidentally sent to announce, resending to dev) On 06/17/2015 01:35 PM, Neil Horman wrote: > On Wed, Jun 17, 2015 at 01:29:47AM +0200, Thomas Monjalon wrote: >> Hi all, >> >> Sometimes there are some important discussions about architecture or design >> which require opinions from seve

[dpdk-dev] [PATCH] kni: Passing task_pid_vnr(current) to get_net_ns_by_pid() in kni_ioctl_create()

2015-06-17 Thread Thomas Monjalon
> > In containers like docker, current->pid returns current process's global PID > > instead of its own PID under containers's PID namespace, and > > get_net_ns_by_pid() suppose to accept a virtual PID under its own namespace, > > so we should use task_pid_vnr(current) to get current process's virt

[dpdk-dev] rte_mbuf.next in 2nd cacheline

2015-06-17 Thread Bruce Richardson
On Wed, Jun 17, 2015 at 01:55:57PM +, Damjan Marion (damarion) wrote: > > > On 15 Jun 2015, at 16:12, Bruce Richardson > > wrote: > > > > The next pointers always start out as NULL when the mbuf pool is created. > > The > > only time it is set to non-NULL is when we have chained mbufs. If

[dpdk-dev] dpdkvhostuser fail to alloc memory when receive packet from other host

2015-06-17 Thread Wiles, Keith
On 6/17/15, 4:49 AM, "Du, Fan" wrote: >Hi, > >I'm playing dpdkvhostuser ports with latest DPDK and ovs master tree with >iperf benchmarking. >When kvm guest1(backed up dpdkvhostuser port)siting on HOST1 is receiving >packets from either other physical HOST2, >or similar kvm guest2 with dpdkvhos

[dpdk-dev] [PATCH 1/4] ixgbe: expose extended error statistics

2015-06-17 Thread Thomas Monjalon
2015-06-09 17:51, Stephen Hemminger: > On Fri, 5 Jun 2015 18:35:02 +0100 > Maryam Tahhan wrote: > > > Implement xstats_get() and xstats_reset() in dev_ops for ixgbe to expose > > detailed error statistics to DPDK applications. > > > > Signed-off-by: Maryam Tahhan > > Also, the bug where CRC i

[dpdk-dev] [PATCH v2 0/3] add support for HTM lock elision for x86

2015-06-17 Thread Bruce Richardson
On Wed, Jun 17, 2015 at 03:14:49PM +0200, Thomas Monjalon wrote: > 2015-06-17 14:05, Bruce Richardson: > > On Tue, Jun 16, 2015 at 10:16:43AM -0700, Roman Dementiev wrote: > > > This series of patches adds methods that use hardware memory transactions > > > (HTM) > > > on fast-path for DPDK locks

[dpdk-dev] [PATCH v2 02/11] cxgbe: add cxgbe poll mode driver.

2015-06-17 Thread Thomas Monjalon
It doesn't build as a shared library. Please add EXPORT_MAP and LIBABIVER to the Makefile. It would be easier to test if build config was merged in this patch, with the Makefile. Please merge also the maintainer infos. 2015-06-01 23:00, Rahul Lakkireddy: > +#define ARRAY_SIZE(arr) (sizeof(arr) /

[dpdk-dev] rte_mbuf.next in 2nd cacheline

2015-06-17 Thread Damjan Marion (damarion)
> On 17 Jun 2015, at 16:06, Bruce Richardson > wrote: > > On Wed, Jun 17, 2015 at 01:55:57PM +, Damjan Marion (damarion) wrote: >> >>> On 15 Jun 2015, at 16:12, Bruce Richardson >>> wrote: >>> >>> The next pointers always start out as NULL when the mbuf pool is created. >>> The >>> onl

[dpdk-dev] [PATCH 4/4] bnx2x: enable PMD build

2015-06-17 Thread Yotam Rubin
On Wed, Jun 17, 2015 at 2:51 AM, Stephen Hemminger < stephen at networkplumber.org> wrote: [...] > > +/** Qualcom devices **/ > + > +/* Broadcom/Qualcom BNX2X */ > > I suppose you meant QLogic, rather than Qualcomm? > > -- > 2.1.4 > >

[dpdk-dev] Debugging SR-IOV related packet flow problem with

2015-06-17 Thread Mohit Saxena
Hi, Can you please tell me the steps for allocating uio to docker? -- Thanks & Regards, Mohit Prakash Saxena Citrix R & D India Pvt. Ltd. Mb: +91 90368 98569 <#UNIQUE_ID_SafeHtmlFilter_> Email: mohit.saxena at citrix.com

[dpdk-dev] [PATCH] vfio: Fix overflow while assigning vfio BAR region offset and size

2015-06-17 Thread Thomas Monjalon
Hi Rahul, 2015-06-16 19:46, Rahul Lakkireddy: > After the commit-id 90a1633b2 (eal/linux: allow to map BARs with MSI-X > tables), Please show this information before the Signed-off-by lines: Fixes: 90a1633b2347 ("eal/linux: allow to map BARs with MSI-X tables") generated with this git alias: fix

[dpdk-dev] [PATCH v2 0/3] add support for HTM lock elision for x86

2015-06-17 Thread Bruce Richardson
On Tue, Jun 16, 2015 at 10:16:43AM -0700, Roman Dementiev wrote: > This series of patches adds methods that use hardware memory transactions > (HTM) > on fast-path for DPDK locks (a.k.a. lock elision). Here the methods are > implemented for x86 using Restricted Transactional Memory instructions >

[dpdk-dev] rte_mbuf.next in 2nd cacheline

2015-06-17 Thread Damjan Marion (damarion)
> On 15 Jun 2015, at 16:12, Bruce Richardson > wrote: > > The next pointers always start out as NULL when the mbuf pool is created. The > only time it is set to non-NULL is when we have chained mbufs. If we never > have > any chained mbufs, we never need to touch the next field, or even read i

[dpdk-dev] [PATCH] doc: announce ABI changes planned for unified packet type

2015-06-17 Thread Helin Zhang
The significant ABI changes are planned for unified packet type which will be supported from release 2.2. Here announces that ABI changes in detail. Signed-off-by: Helin Zhang --- doc/guides/rel_notes/abi.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/guides/rel_notes/abi.rst b/doc/

[dpdk-dev] 答复: [PATCH] kni: Passing task_pid_vnr(current) to get_net_ns_by_pid() in kni_ioctl_create()

2015-06-17 Thread Wenfeng Liu
Hi Helin, Since I don?t have any 2.6.33 machine on hand right now, I tried to compile this patch on 2.6.32, and it succeed. I can't verify this modification in docker since it only support Linux kernel >= 3.10. Thanks, liuwf -- ???: Zhang, Helin [mailto:helin.zhang at intel.com] ??

[dpdk-dev] [PATCH] vhost: provide vhost API to unregister vhost unix domain socket

2015-06-17 Thread Tetsuya Mukawa
On 2015/06/02 10:50, Huawei Xie wrote: > rte_vhost_driver_unregister will remove the listenfd from event list, and > then close it. > > Signed-off-by: Huawei Xie > Signed-off-by: Peng Sun > --- > > +/** > + * Unregister the specified vhost server > + */ > +int > +rte_vhost_driver_unregister(co

[dpdk-dev] [PATCH v4 6/6] i40e: check rxq parameter in i40e_reset_rx_queue

2015-06-17 Thread Bernard Iremonger
There is a segmentation fault if rxq is NULL Changes in V4: This patch added. Signed-off-by: Bernard Iremonger --- drivers/net/i40e/i40e_rxtx.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/net/i40e/i40e_rxtx.c b/drivers/net/i40e/i40e_rxtx.c index 2de0ac4.

[dpdk-dev] [PATCH v4 5/6] i40e: clear queues in i40evf_dev_stop

2015-06-17 Thread Bernard Iremonger
Changes in V3: This patch added. Signed-off-by: Bernard Iremonger --- drivers/net/i40e/i40e_ethdev_vf.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e/i40e_ethdev_vf.c index 1b9362f..26d0502 100644 --- a/drivers/net/

[dpdk-dev] [PATCH v4 4/6] i40e: call _clear_cmd() when error occurs

2015-06-17 Thread Bernard Iremonger
_clear_cmd() was not being called in failure situations, resulting in the next command also failing. Fix several typos. Signed-off-by: Bernard Iremonger --- drivers/net/i40e/i40e_ethdev_vf.c | 11 +++ 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/net/i40e/i40e_

[dpdk-dev] [PATCH v4 3/6] i40e: increase ASQ_DELAY_MS to 100 in i40evf_wait_cmd_done()

2015-06-17 Thread Bernard Iremonger
Increase delay to avoid i40evf_read_pfmsg() failures. Signed-off-by: Bernard Iremonger --- drivers/net/i40e/i40e_ethdev_vf.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e/i40e_ethdev_vf.c index ed320e1..7a6480a 100

[dpdk-dev] [PATCH v4 2/6] i40e: release vmdq vsi's in dev_close

2015-06-17 Thread Bernard Iremonger
Signed-off-by: Bernard Iremonger --- drivers/net/i40e/i40e_ethdev.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index 6e2030c..58b18d0 100644 --- a/drivers/net/i40e/i40e_ethdev.c +++ b/drivers/net

[dpdk-dev] [PATCH v4 1/6] i40e: changes to support PCI Port Hotplug

2015-06-17 Thread Bernard Iremonger
This patch depends on the Port Hotplug Framework. It implements the eth_dev_uninit functions for rte_i40e_pmd and rte_i40evf_pmd. Changes in V4: Rebase to latest i40e code. Changes in V3: Release rx and tx queues in vf uninit function. Rebase to use latest i40e code. Changes in V2: Rebase to use

[dpdk-dev] [PATCH v4 0/6] i40e: PCI Port Hotplug Changes

2015-06-17 Thread Bernard Iremonger
Changes in V4: added patch 6 to fix segmentation fault reported by Michael Qiu. Bernard Iremonger (6): i40e: changes to support PCI Port Hotplug i40e: release vmdq vsi's in dev_close i40e: increase ASQ_DELAY_MS to 100 in i40evf_wait_cmd_done() i40e: call _clear_cmd() when error occurs i4

[dpdk-dev] [dpdk-announce] important design choices - statistics - ABI

2015-06-17 Thread Bruce Richardson
On Tue, Jun 16, 2015 at 09:36:54PM -0700, Matthew Hall wrote: > On Wed, Jun 17, 2015 at 01:29:47AM +0200, Thomas Monjalon wrote: > > There were some debates about software statistics disabling. > > Should they be always on or possibly disabled when compiled? > > We need to take a decision shortly a

[dpdk-dev] [dpdk-announce] important design choices - statistics - ABI

2015-06-17 Thread Morten Brørup
Dear Thomas, I don't have time to follow the DPDK Developers mailing list, but since you call for feedback, I would like to share my thoughts regarding these design choices. Regarding the statistics discussion: 1. The suggested solution assumes that, when statistics is disabled, the cost of

[dpdk-dev] Why doesn`t test-acl work when IP filed is RTE_ACL_FIELD_TYPE_RANGE?

2015-06-17 Thread Gyumin
hi, I ran test-acl without any modification and it worked well, and I modified test-acl like below: { //.type = RTE_ACL_FIELD_TYPE_MASK, .type = RTE_ACL_FIELD_TYPE_RANGE, .size = sizeof(uint32_t), .field_index = SRC_FIELD_IPV4, .input_index = RTE_

[dpdk-dev] [PATCH] abi: announce abi changes plan for struct rte_eth_fdir_flow_ext

2015-06-17 Thread Jingjing Wu
It announces the planned ABI change to support flow director filtering in VF on v2.2. Signed-off-by: Jingjing Wu --- doc/guides/rel_notes/abi.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/guides/rel_notes/abi.rst b/doc/guides/rel_notes/abi.rst index f00a6ee..b8d7cc8 100644 --- a/d

[dpdk-dev] [README]:Running DPDK in a LXC-based Container

2015-06-17 Thread Mohit Saxena
Hi All, I am trying to run DPDK application on Ubuntu based Conatiner, I had followed the steps as described by "Krishnamurthy Jambur" in his earlier post lxc.cgroup.devices.allow = c 249:* rwm mknod /dev/uio0 c 249 0 lxc.mount.entry = /mnt/huge mnt/huge none bind,create=dir 0 0 But after starti

[dpdk-dev] How to get net_device and use struct ethtool_cmd at DPDK enverinment?

2015-06-17 Thread "Scott.Jhuang (莊清翔) : 6309"
Hi Sy Jong, But...I am programming a driver now, have any sample driver I can reference? Choi, Sy Jong ? 2015?06?16? 14:48 ??: Hi Scott, You can review DPDK KNI sample app, there's ethtool support using a vEth device interfacing to DPDK PMD. Pure DPDK PMD require programming to display the in

[dpdk-dev] [PATCH v2] vhost: provide vhost API to unregister vhost unix domain socket

2015-06-17 Thread Panu Matilainen
On 06/08/2015 06:38 PM, Xie, Huawei wrote: > On 6/5/2015 5:04 PM, Loftus, Ciara wrote: >> >>> -Original Message- >>> From: Xie, Huawei >>> Sent: Friday, June 05, 2015 4:26 AM >>> To: dev at dpdk.org >>> Cc: Loftus, Ciara; Xie, Huawei; Sun, Peng A >>> Subject: [PATCH v2] vhost: provide vhost

[dpdk-dev] [dpdk-announce] important design choices - statistics - ABI

2015-06-17 Thread Richardson, Bruce
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Neil Horman > Sent: Wednesday, June 17, 2015 11:35 AM > To: Thomas Monjalon > Cc: announce at dpdk.org > Subject: Re: [dpdk-dev] [dpdk-announce] important design choices - > statistics - ABI > > On Wed, Jun 17

[dpdk-dev] [PATCH] vhost: provide vhost API to unregister vhost unix domain socket

2015-06-17 Thread Xie, Huawei
On 6/17/2015 12:17 PM, Tetsuya Mukawa wrote: > On 2015/06/02 10:50, Huawei Xie wrote: >> rte_vhost_driver_unregister will remove the listenfd from event list, and >> then close it. >> >> Signed-off-by: Huawei Xie >> Signed-off-by: Peng Sun >> --- >> >> +/** >> + * Unregister the specified vhos

[dpdk-dev] [PATCH 3/3] acl: mark deprecated functions

2015-06-17 Thread Panu Matilainen
On 06/15/2015 07:51 PM, Stephen Hemminger wrote: > From: Stephen Hemminger > > To allow for compatiablity with later releases, any functions > to be removed should be marked as deprecated for one release. > > Signed-off-by: Stephen Hemminger [...] > diff --git a/lib/librte_acl/rte_acl.h b/lib/lib

[dpdk-dev] Debugging SR-IOV related packet flow problem with DPDK

2015-06-17 Thread Anjali Kulkarni
Folks, I am seeing this in the dmesg (VF 0 Hung DMA) [586307.789098] VF 0 setting Multicast Promiscuos Enable TRUE [586307.789099] Register before write : 0x900 [586307.789100] Register after write : 0x1900 [586307.802585] dmar: DRHD: handling fault status reg 502 [586307.802597] dmar: DM

[dpdk-dev] [PATCH 2/4] ethdev: expose extended error stats

2015-06-17 Thread Kyle Larose
On Wed, Jun 17, 2015 at 9:58 AM, Thomas Monjalon wrote: [...] > > You are extending the generic stats. This is not the idea behind xstats. > The xstats are specific to the driver. > Furthermore we should migrate some "not really generic stats" to xstats > in order to keep only the really basic and

[dpdk-dev] [PATCH 1/4] eal: provide functions to access PCI config

2015-06-17 Thread Panu Matilainen
On 06/17/2015 02:51 AM, Stephen Hemminger wrote: > From: Stephen Hemminger > > Some drivers need ability to access PCI config (for example for power > management). This adds an abstraction to do this for both Linux > and BSD. > > Signed-off-by: Stephen Hemminger > --- [...] > diff --git a/lib/lib

[dpdk-dev] [PATCH 1/3] pmd_ring: remove deprecated functions

2015-06-17 Thread Panu Matilainen
On 06/17/2015 03:39 AM, Stephen Hemminger wrote: > On Tue, 16 Jun 2015 23:37:32 + > Thomas Monjalon wrote: > >> 2015-06-16 16:05, Stephen Hemminger: >>> On Tue, 16 Jun 2015 14:52:16 +0100 >>> Bruce Richardson wrote: >>> On Mon, Jun 15, 2015 at 09:51:11AM -0700, Stephen Hemminger wrote: >

[dpdk-dev] [dpdk-announce] important design choices - statistics - ABI

2015-06-17 Thread Marc Sune
On 17/06/15 07:28, Stephen Hemminger wrote: > On Tue, Jun 16, 2015 at 9:36 PM, Matthew Hall > wrote: > >> On Wed, Jun 17, 2015 at 01:29:47AM +0200, Thomas Monjalon wrote: >>> There were some debates about software statistics disabling. >>> Should they be always on or possibly disabled when comp

[dpdk-dev] [dpdk-announce] important design choices - statistics - ABI

2015-06-17 Thread Thomas Monjalon
2015-06-16 22:28, Stephen Hemminger: > On Tue, Jun 16, 2015 at 9:36 PM, Matthew Hall > wrote: > > On Wed, Jun 17, 2015 at 01:29:47AM +0200, Thomas Monjalon wrote: > > > There were some debates about software statistics disabling. > > > Should they be always on or possibly disabled when compiled?

[dpdk-dev] dpdkvhostuser fail to alloc memory when receive packet from other host

2015-06-17 Thread Du, Fan
Hi, I'm playing dpdkvhostuser ports with latest DPDK and ovs master tree with iperf benchmarking. When kvm guest1(backed up dpdkvhostuser port)siting on HOST1 is receiving packets from either other physical HOST2, or similar kvm guest2 with dpdkvhostuser port siting on HOST2. The connectivity w

[dpdk-dev] [PATCH] ixgbe: fix x550 shutdown API issue

2015-06-17 Thread Ananyev, Konstantin
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Wenzhuo Lu > Sent: Tuesday, June 16, 2015 9:08 AM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH] ixgbe: fix x550 shutdown API issue > > For there're only laser ports on x550 before, we only considered las

[dpdk-dev] [dpdk-announce] important design choices - statistics - ABI

2015-06-17 Thread Neil Horman
On Wed, Jun 17, 2015 at 01:29:47AM +0200, Thomas Monjalon wrote: > Hi all, > > Sometimes there are some important discussions about architecture or design > which require opinions from several developers. Unfortunately, we cannot > read every threads. Maybe that using the announce mailing list wil

[dpdk-dev] [RFC PATCH V4] ixgbe: changes to support PCI Port Hotplug

2015-06-17 Thread Zhang, Helin
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Bernard Iremonger > Sent: Monday, June 8, 2015 11:48 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [RFC PATCH V4] ixgbe: changes to support PCI Port Hotplug > > This patch depends on the Port Hotplug Framewor

[dpdk-dev] [PATCH] kni: Passing task_pid_vnr(current) to get_net_ns_by_pid() in kni_ioctl_create()

2015-06-17 Thread Zhang, Helin
> -Original Message- > From: Wenfeng Liu [mailto:liuwf at arraynetworks.com.cn] > Sent: Monday, June 15, 2015 12:08 PM > To: Zhang, Helin; dev at dpdk.org > Subject: [PATCH] kni: Passing task_pid_vnr(current) to get_net_ns_by_pid() in > kni_ioctl_create() > > In containers like docker, c

[dpdk-dev] [PATCH] kni: Passing task_pid_vnr(current) to get_net_ns_by_pid() in kni_ioctl_create()

2015-06-17 Thread Zhang, Helin
> -Original Message- > From: Wenfeng Liu [mailto:liuwf at arraynetworks.com.cn] > Sent: Wednesday, June 17, 2015 1:44 PM > To: Zhang, Helin > Cc: dev at dpdk.org > Subject: ??: [PATCH] kni: Passing task_pid_vnr(current) to > get_net_ns_by_pid() in kni_ioctl_create() > > Hi Helin, > > Si

[dpdk-dev] [PATCH] kni: Passing task_pid_vnr(current) to get_net_ns_by_pid() in kni_ioctl_create()

2015-06-17 Thread Zhang, Helin
> -Original Message- > From: Wenfeng Liu [mailto:liuwf at arraynetworks.com.cn] > Sent: Monday, June 15, 2015 12:08 PM > To: Zhang, Helin; dev at dpdk.org > Subject: [PATCH] kni: Passing task_pid_vnr(current) to get_net_ns_by_pid() in > kni_ioctl_create() > > In containers like docker, c

[dpdk-dev] [PATCH v2] vhost: provide vhost API to unregister vhost unix domain socket

2015-06-17 Thread Xie, Huawei
On 6/5/2015 5:04 PM, Loftus, Ciara wrote: > >> -Original Message- >> From: Xie, Huawei >> Sent: Friday, June 05, 2015 4:26 AM >> To: dev at dpdk.org >> Cc: Loftus, Ciara; Xie, Huawei; Sun, Peng A >> Subject: [PATCH v2] vhost: provide vhost API to unregister vhost unix domain >> socket >> >>

[dpdk-dev] How to get net_device and use struct ethtool_cmd at DPDK enverinment?

2015-06-17 Thread Choi, Sy Jong
Hi Scott, You are right, the KNI will be a good reference for you. It demonstrate how DPDK PMD interface with kernel. May I know are you planning to build the interface to ethtool? You can try running KNI app. Regards, Choi, Sy Jong Platform Application Engineer From: "Scott.Jhuang (???) : 630

[dpdk-dev] [PATCH 1/3] pmd_ring: remove deprecated functions

2015-06-17 Thread Thomas Monjalon
2015-06-16 16:05, Stephen Hemminger: > On Tue, 16 Jun 2015 14:52:16 +0100 > Bruce Richardson wrote: > > > On Mon, Jun 15, 2015 at 09:51:11AM -0700, Stephen Hemminger wrote: > > > From: Stephen Hemminger > > > > > > These were deprecated in 2.0 so remove them from 2.1 > > > > > > Signed-off-by:

[dpdk-dev] [dpdk-announce] important design choices - statistics - ABI

2015-06-17 Thread Thomas Monjalon
Hi all, Sometimes there are some important discussions about architecture or design which require opinions from several developers. Unfortunately, we cannot read every threads. Maybe that using the announce mailing list will help to bring more audience to these discussions. Please note that

[dpdk-dev] [PATCH v3 2/2] virtio: check vq parameter

2015-06-17 Thread Ouyang, Changchun
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Bernard Iremonger > Sent: Tuesday, June 16, 2015 7:30 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v3 2/2] virtio: check vq parameter > > If vq is NULL, there is a segmentation fault. > > Signed-off-

[dpdk-dev] [PATCH v3 1/2] virtio: add support for PCI Port Hotplug

2015-06-17 Thread Ouyang, Changchun
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Bernard Iremonger > Sent: Tuesday, June 16, 2015 7:30 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v3 1/2] virtio: add support for PCI Port Hotplug > > This patch depends on the Port Hotplug Framework