[dpdk-dev] [PATCH v2 0/2] vhost: numa aware allocation of vhost device and queues

2015-06-19 Thread Huawei Xie
The vhost device and queues should be allocated on the same numa node as vring descriptor table. When we firstly allocate the vhost device and queues, we don't know the numa node of vring descriptor table. When we receive the VHOST_SET_VRING_ADDR message, we get the numa node of vring descriptor

[dpdk-dev] [PATCH v2 1/2] vhost: use rte_malloc to allocate device and queues

2015-06-19 Thread Huawei Xie
use rte_malloc to allocate vhost device and queues Signed-off-by: Huawei Xie --- lib/librte_vhost/virtio-net.c | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/lib/librte_vhost/virtio-net.c b/lib/librte_vhost/virtio-net.c index 4672e67..19b74d6 100644 ---

[dpdk-dev] [PATCH v2 2/2] vhost: realloc vhost device and queues to the same numa node of vring desc table

2015-06-19 Thread Huawei Xie
When we get the address of vring descriptor table in VHOST_SET_VRING_ADDR message, will try to reallocate vhost device and queues to the same numa node. v2 changes: - fix uninitialised new_vq and new_ll_device - fix missed endif in rte.app.mk - fix new_ll_dev and new_vq allocation failure issue -

[dpdk-dev] [PATCH v3 0/2] vhost: vhost unix domain socket cleanup

2015-06-19 Thread Huawei Xie
vhost user could register multiple unix domain socket server, and use the path to identify the virtio device connecting to it. rte_vhost_driver_unregister will clean up the unix domain socket for the specified path. Huawei Xie (2): vhost socket cleanup update version map file for rte_vhost_d

[dpdk-dev] [PATCH v3 1/2] vhost: vhost unix domain socket cleanup

2015-06-19 Thread Huawei Xie
rte_vhost_driver_unregister API will remove the listenfd for the specified path from event processing list, and then close it. v2 changes: -minor code style fix: remove unnecessary new line Signed-off-by: Huawei Xie Signed-off-by: Peng Sun --- lib/librte_vhost/rte_virtio_net.h| 3

[dpdk-dev] [PATCH v3 2/2] vhost: version map file update

2015-06-19 Thread Huawei Xie
update version map file for rte_vhost_driver_unregister API v3 changes: update version map file Signed-off-by: Huawei Xie --- lib/librte_vhost/rte_vhost_version.map | 8 1 file changed, 8 insertions(+) diff --git a/lib/librte_vhost/rte_vhost_version.map b/lib/librte_vhost/rte_vhost_v

[dpdk-dev] [PATCH] use tab rather than space in mbuf version map file

2015-06-19 Thread Huawei Xie
Signed-off-by: Huawei Xie --- lib/librte_mbuf/rte_mbuf_version.map | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/librte_mbuf/rte_mbuf_version.map b/lib/librte_mbuf/rte_mbuf_version.map index 7ae2244..543dc4c 100644 --- a/lib/librte_mbuf/rte_mbuf_version.map +++ b/

[dpdk-dev] [PATCH v3 2/9] lib_vhost: Support multiple queues in virtio dev

2015-06-19 Thread Ouyang, Changchun
Hi Flavio, > -Original Message- > From: Flavio Leitner [mailto:fbl at sysclose.org] > Sent: Thursday, June 18, 2015 9:17 PM > To: Ouyang, Changchun > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v3 2/9] lib_vhost: Support multiple queues in > virtio dev > > On Mon, Jun 15, 2015 at

[dpdk-dev] [PATCH v3 2/9] lib_vhost: Support multiple queues in virtio dev

2015-06-19 Thread Ouyang, Changchun
> -Original Message- > From: Flavio Leitner [mailto:fbl at sysclose.org] > Sent: Thursday, June 18, 2015 9:34 PM > To: Ouyang, Changchun > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v3 2/9] lib_vhost: Support multiple queues in > virtio dev > > On Mon, Jun 15, 2015 at 03:56:39P

[dpdk-dev] [PATCH] doc: fix doxygen warnings

2015-06-19 Thread Ouyang Changchun
Fix doxygen warnings in vhost Signed-off-by: Changchun Ouyang --- lib/librte_vhost/rte_virtio_net.h | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/lib/librte_vhost/rte_virtio_net.h b/lib/librte_vhost/rte_virtio_net.h index 5d38185..420c05e 100644 --- a/lib

[dpdk-dev] vhost doxygen

2015-06-19 Thread Ouyang, Changchun
Hi Thomas > -Original Message- > From: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Sent: Friday, June 19, 2015 5:47 AM > To: Ouyang, Changchun > Cc: dev at dpdk.org > Subject: vhost doxygen > > Please Changchun, > Could you check and complete the vhost API comments? > > It ca

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

2015-06-19 Thread Choi, Sy Jong
Hi Scott, DPDK PMD are interfacing using rte_ethdev.c which link to ixgbe_ethdev.c there?s no ?net_device? in our code. But if you search DPDk code based, we have KNI example to teach you how to prepare the net_device structure. Have you check out our DPDK KNI codes? Regards, Choi, Sy Jong Pla

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

2015-06-19 Thread Zhang, Helin
Acked-by: Helin Zhang > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Konstantin Ananyev > Sent: Thursday, June 18, 2015 9:19 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCHv2 0/5] ethdev: add new API to retrieve RX/TX queue > information > > Add the

[dpdk-dev] [PATCH v2] kni: ignore double calls to rte_kni_init()

2015-06-19 Thread Zhang, Helin
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Marc Sune > Sent: Friday, June 19, 2015 12:35 AM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v2] kni: ignore double calls to rte_kni_init() > > Prevent double initialization of the KNI subsytem. > > v2

[dpdk-dev] [PATCH v13 02/14] eal/linux: add rte_epoll_wait/ctl support

2015-06-19 Thread Cunming Liang
The patch adds 'rte_epoll_wait' and 'rte_epoll_ctl' for async event wakeup. It defines 'struct rte_epoll_event' as the event param. When the event fds add to a specified epoll instance, 'eptrs' will hold the rte_epoll_event object pointer. The 'op' uses the same enum as epoll_wait/ctl does. The ep

[dpdk-dev] [PATCH v13 00/14] Interrupt mode PMD

2015-06-19 Thread Cunming Liang
v13 changes - version map cleanup for v2.1 - replace RTE_EAL_RX_INTR by RTE_NEXT_ABI for ABI compatibility Patch series v12 Acked-by: Stephen Hemminger Acked-by: Danny Zhou v12 changes - bsd cleanup for unused variable warning - fix awkward line split in debug message v11 changes - typo c

[dpdk-dev] [PATCH v13 03/14] eal/linux: add API to set rx interrupt event monitor

2015-06-19 Thread Cunming Liang
The patch adds 'rte_intr_rx_ctl' to add or delete interrupt vector events monitor on specified epoll instance. Signed-off-by: Cunming Liang --- v13 changes - version map cleanup for v2.1 v12 changes: - fix awkward line split in using RTE_LOG v10 changes: - add RTE_INTR_HANDLE_UIO_INTX for u

[dpdk-dev] [PATCH v13 04/14] eal/linux: fix comments typo on vfio msi

2015-06-19 Thread Cunming Liang
Signed-off-by: Cunming Liang --- lib/librte_eal/linuxapp/eal/eal_interrupts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_eal/linuxapp/eal/eal_interrupts.c b/lib/librte_eal/linuxapp/eal/eal_interrupts.c index cfe389c..fe1210b 100644 --- a/lib/librte_eal/li

[dpdk-dev] [PATCH v13 05/14] eal/linux: add interrupt vectors handling on VFIO

2015-06-19 Thread Cunming Liang
This patch does below: - Create VFIO eventfds for each interrupt vector (move to next) - Assign per interrupt vector's eventfd to VFIO by ioctl Signed-off-by: Danny Zhou Signed-off-by: Cunming Liang --- v8 changes - move eventfd creation out of the setup_interrupts to a standalone function v

[dpdk-dev] [PATCH v13 01/14] eal/linux: add interrupt vectors support in intr_handle

2015-06-19 Thread Cunming Liang
The patch adds interrupt vectors support in rte_intr_handle. 'vec_en' is set when interrupt vectors are detected and associated event fds are set. Those event fds are stored in efds[]. 'intr_vec' is reserved for device driver to initialize the vector mapping table. Signed-off-by: Danny Zhou Sign

[dpdk-dev] [PATCH v13 06/14] eal/linux: standalone intr event fd create support

2015-06-19 Thread Cunming Liang
The patch exposes intr event fd create and release for PMD. The device driver can assign the number of event associated with interrupt vector. It also provides misc functions to check 1) allows other slowpath intr(e.g. lsc); 2) intr event on fastpath is enabled or not. Signed-off-by: Cunming Lia

[dpdk-dev] [PATCH v13 08/14] eal/bsd: dummy for new intr definition

2015-06-19 Thread Cunming Liang
To make bsd compiling happy with new intr changes. Signed-off-by: Cunming Liang --- v13 changes - version map cleanup for v2.1 v12 changes - fix unused variables compiling warning v8 changes - add stub for new function v7 changes - remove stub 'linux only' function from source file lib/

[dpdk-dev] [PATCH v13 11/14] ixgbe: enable rx queue interrupts for both PF and VF

2015-06-19 Thread Cunming Liang
The patch does below things for ixgbe PF and VF: - Setup NIC to generate MSI-X interrupts - Set the IVAR register to map interrupt causes to vectors - Implement interrupt enable/disable functions Signed-off-by: Danny Zhou Signed-off-by: Yong Liu Signed-off-by: Cunming Liang --- v10 changes - r

[dpdk-dev] [PATCH v13 13/14] l3fwd-power: enable one-shot rx interrupt and polling/interrupt mode switch

2015-06-19 Thread Cunming Liang
Demonstrate how to handle per rx queue interrupt in a NAPI-like implementation in usersapce. PDK polling thread mainly works in polling mode and switch to interrupt mode only if there is no any packet received in recent polls. Usersapce interrupt notification generally takes a lot more cycles than

[dpdk-dev] [PATCH v13 07/14] eal/linux: fix lsc read error in uio_pci_generic

2015-06-19 Thread Cunming Liang
The new UIO generic handle type was introduced by patch. http://dpdk.org/ml/archives/dev/2015-April/017008.html When using uio_pci_generic and turning on lsc interrupt, it complains fd read error. The root cause is the 'count' size of read is not correct. Reported-by: Yong Liu Signed-off-by: Cun

[dpdk-dev] [PATCH v13 09/14] eal/bsd: fix inappropriate linuxapp referred in bsd

2015-06-19 Thread Cunming Liang
Signed-off-by: Cunming Liang --- lib/librte_eal/bsdapp/eal/include/exec-env/rte_interrupts.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/librte_eal/bsdapp/eal/include/exec-env/rte_interrupts.h b/lib/librte_eal/bsdapp/eal/include/exec-env/rte_interrupts.h index

[dpdk-dev] [PATCH v13 14/14] abi: fix v2.1 abi broken issue

2015-06-19 Thread Cunming Liang
RTE_NEXT_ABI will be removed from v2.2. It's only used to avoid ABI(unannounced) broken in v2.1. The usrs should make sure understand the impact before turning on the feature. There are two abi changes required in this interrupt patch set. They're 1) struct rte_intr_handle; 2) struct rte_intr_conf

[dpdk-dev] [PATCH v13 10/14] ethdev: add rx intr enable, disable and ctl functions

2015-06-19 Thread Cunming Liang
The patch adds two dev_ops functions to enable and disable rx queue interrupts. In addtion, it adds rte_eth_dev_rx_intr_ctl/rx_intr_q to support per port or per queue rx intr event set. Signed-off-by: Danny Zhou Signed-off-by: Cunming Liang --- v13 changes - version map cleanup for v2.1 v9 ch

[dpdk-dev] [PATCH v13 12/14] igb: enable rx queue interrupts for PF

2015-06-19 Thread Cunming Liang
The patch does below for igb PF: - Setup NIC to generate MSI-X interrupts - Set the IVAR register to map interrupt causes to vectors - Implement interrupt enable/disable functions Signed-off-by: Danny Zhou Signed-off-by: Cunming Liang --- v9 changes - move queue-vec mapping init from dev_config

[dpdk-dev] EAL PCI dev problem when using .a file to compile app

2015-06-19 Thread Umar Farooq
Thanks Bruce. In application compilation command, after adding the "--no-as-needed" flag and some additional flags including "-Wl,-lrte_pmd_bond -Wl,-lrte_pmd_vmxnet3_uio -Wl,-lrte_pmd_virtio_uio -Wl,-lrte_pmd_enic -Wl,-lrte_pmd_i40e -Wl,-lrte_pmd_fm10k -Wl,-lrte_pmd_ixgbe -Wl,-lrte_pmd_e1000 -Wl,

[dpdk-dev] [PATCH] ixgbe: fix the flow director flexbytes offset issues

2015-06-19 Thread Jingjing Wu
The flexbytes offset can not be set, because the value is over written when fdir is enabled. This patch fixes this issue, and also removes some reduplicate lines. Reported-by: David Marchand Signed-off-by: Jingjing Wu --- drivers/net/ixgbe/ixgbe_fdir.c | 24 1 file chan

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

2015-06-19 Thread Qiu, Michael
On 6/19/2015 12:29 AM, Iremonger, Bernard wrote: >> -Original Message- >> From: Qiu, Michael >> Sent: Wednesday, June 17, 2015 8:59 AM >> To: dev at dpdk.org >> Cc: Chen, Jing D; Iremonger, Bernard; He, Shaopeng; Qiu, Michael >> Subject: [PATCH 1/2 v2] fm10k: Free queues when close port >>

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

2015-06-19 Thread Qiu, Michael
On 6/19/2015 12:42 AM, Iremonger, Bernard wrote: >> -Original Message- >> From: Qiu, Michael >> Sent: Wednesday, June 17, 2015 9:45 AM >> To: dev at dpdk.org >> Cc: Chen, Jing D; Iremonger, Bernard; He, Shaopeng; Qiu, Michael >> Subject: [PATCH 2/2 v2] fm10k: Add hotplug support for fm10k >

[dpdk-dev] [PATCH v7 01/18] mbuf: redefine packet_type in rte_mbuf

2015-06-19 Thread Helin Zhang
In order to unify the packet type, the field of 'packet_type' in 'struct rte_mbuf' needs to be extended from 16 to 32 bits. Accordingly, some fields in 'struct rte_mbuf' are re-organized to support this change for Vector PMD. As 'struct rte_kni_mbuf' for KNI should be right mapped to 'struct rte_mb

[dpdk-dev] [PATCH v7 02/18] ixgbe: support unified packet type in vectorized PMD

2015-06-19 Thread Helin Zhang
To unify the packet type, bit masks of packet type for ol_flags are replaced. In addition, more packet types (UDP, TCP and SCTP) are supported in vectorized ixgbe PMD. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Note that arou

[dpdk-dev] [PATCH v7 03/18] mbuf: add definitions of unified packet types

2015-06-19 Thread Helin Zhang
As there are only 6 bit flags in ol_flags for indicating packet types, which is not enough to describe all the possible packet types hardware can recognize. For example, i40e hardware can recognize more than 150 packet types. Unified packet type is composed of L2 type, L3 type, L4 type, tunnel type

[dpdk-dev] [PATCH v7 04/18] e1000: replace bit mask based packet type with unified packet type

2015-06-19 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Signed-off-by: Helin Zhang --- drivers/net/e1000/igb_rxtx.c | 10

[dpdk-dev] [PATCH v7 05/18] ixgbe: replace bit mask based packet type with unified packet type

2015-06-19 Thread Helin Zhang
To unify packet type among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Note that around 2.5% performance drop (64B) was observed of doing 4

[dpdk-dev] [PATCH v7 00/18] unified packet type

2015-06-19 Thread Helin Zhang
Currently only 6 bits which are stored in ol_flags are used to indicate the packet types. This is not enough, as some NIC hardware can recognize quite a lot of packet types, e.g i40e hardware can recognize more than 150 packet types. Hiding those packet types hides hardware offload capabilities whi

[dpdk-dev] [PATCH v7 07/18] enic: replace bit mask based packet type with unified packet type

2015-06-19 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Signed-off-by: Helin Zhang --- drivers/net/enic/enic_main.c | 26

[dpdk-dev] [PATCH v7 06/18] i40e: replace bit mask based packet type with unified packet type

2015-06-19 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Signed-off-by: Helin Zhang --- drivers/net/i40e/i40e_rxtx.c | 52

[dpdk-dev] [PATCH v7 08/18] vmxnet3: replace bit mask based packet type with unified packet type

2015-06-19 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Signed-off-by: Helin Zhang --- drivers/net/vmxnet3/vmxnet3_rxtx.

[dpdk-dev] [PATCH v7 09/18] fm10k: replace bit mask based packet type with unified packet type

2015-06-19 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Signed-off-by: Helin Zhang --- drivers/net/fm10k/fm10k_rxtx.c |

[dpdk-dev] [PATCH v7 10/18] app/test-pipeline: replace bit mask based packet type with unified packet type

2015-06-19 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Signed-off-by: Helin Zhang --- app/test-pipeline/pipeline_hash.c

[dpdk-dev] [PATCH v7 11/18] app/testpmd: replace bit mask based packet type with unified packet type

2015-06-19 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Signed-off-by: Helin Zhang Signed-off-by: Jijiang Liu --- app/t

[dpdk-dev] [PATCH v7 12/18] app/test: Remove useless code

2015-06-19 Thread Helin Zhang
Severl useless code lines are added accidently, which blocks packet type unification. They should be deleted at all. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Signed-off-by: Helin Zhang --- app/test/packet_burst_generator

[dpdk-dev] [PATCH v7 13/18] examples/ip_fragmentation: replace bit mask based packet type with unified packet type

2015-06-19 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Signed-off-by: Helin Zhang --- examples/ip_fragmentation/main.c

[dpdk-dev] [PATCH v7 14/18] examples/ip_reassembly: replace bit mask based packet type with unified packet type

2015-06-19 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Signed-off-by: Helin Zhang --- examples/ip_reassembly/main.c | 9

[dpdk-dev] [PATCH v7 15/18] examples/l3fwd-acl: replace bit mask based packet type with unified packet type

2015-06-19 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Signed-off-by: Helin Zhang --- examples/l3fwd-acl/main.c | 29 ++

[dpdk-dev] [PATCH v7 16/18] examples/l3fwd-power: replace bit mask based packet type with unified packet type

2015-06-19 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Signed-off-by: Helin Zhang --- examples/l3fwd-power/main.c | 8 +

[dpdk-dev] [PATCH v7 17/18] examples/l3fwd: replace bit mask based packet type with unified packet type

2015-06-19 Thread Helin Zhang
To unify packet types among all PMDs, bit masks of packet type for 'ol_flags' are replaced by unified packet type. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Signed-off-by: Helin Zhang --- examples/l3fwd/main.c | 123 +

[dpdk-dev] [PATCH v7 18/18] mbuf: remove old packet type bit masks

2015-06-19 Thread Helin Zhang
As unified packet types are used instead, those old bit masks and the relevant macros for packet type indication need to be removed. To avoid breaking ABI compatibility, all the changes would be enabled by RTE_NEXT_ABI, which is disabled by default. Signed-off-by: Helin Zhang --- lib/librte_mbuf

[dpdk-dev] [PATCH 0/2] Virtual PMD using sze2 layer for COMBO cards

2015-06-19 Thread Matej Vido
This is virtual PMD which communicates with COMBO-80G and COMBO-100G cards through sze2 layer. Communication with COMBO card is managed through interface provided by libsze2 library and kernel modules (combov3, szedata2_cv3). To compile and use PMD, it is necessary to have libsze2 library installe

[dpdk-dev] [PATCH 1/2] szedata2: new poll mode driver

2015-06-19 Thread Matej Vido
Added virtual PMD which communicates with COMBO cards through sze2 layer using libsze2 library. Signed-off-by: Matej Vido --- config/common_bsdapp |5 + config/common_linuxapp|5 + drivers/net/Makefile

[dpdk-dev] [PATCH 2/2] doc: added documentation for szedata2 PMD

2015-06-19 Thread Matej Vido
Signed-off-by: Matej Vido --- doc/guides/nics/index.rst| 1 + doc/guides/nics/szedata2.rst | 105 +++ doc/guides/prog_guide/source_org.rst | 1 + 3 files changed, 107 insertions(+) create mode 100644 doc/guides/nics/szedata2.rst diff --git

[dpdk-dev] [PULL REQUEST] fm10k: new features promisc, mac/vlan, checksum

2015-06-19 Thread Chen Jing D(Mark)
The fm10k driver changes include below features: - Checksum offload - Promiscuous Mode - MAC filter add/delete - VLAN stripping/insert - Vlan filter add/delete - A series of bug fixing The following changes since commit 043ef28b391644229d9c4a671defb2304fefee69: acl: add new test cases (20

[dpdk-dev] [PATCH 0/2 v3] Enable hotplug support for fm10k

2015-06-19 Thread Michael Qiu
Hotplug feature is supported in EAL, this patch set is to enable this feature in driver side. change log: v3-->v2: reset queue numbers to zero. v2 --> v1: remove __rte_unused flag Michael Qiu (2): fm10k: Free queues when close port fm10k: Add hotplug support fo

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

2015-06-19 Thread Michael Qiu
When close a port, lots of memory should be released, such as software rings, queues, etc. Signed-off-by: Michael Qiu --- drivers/net/fm10k/fm10k_ethdev.c | 39 +++ 1 file changed, 35 insertions(+), 4 deletions(-) diff --git a/drivers/net/fm10k/fm10k_ethdev.c

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

2015-06-19 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 6a14633..38d1eb7 1

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

2015-06-19 Thread Qiu, Michael
Sorry this is version 3, Thanks Michael On 6/19/2015 4:32 PM, Qiu, Michael wrote: > 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

[dpdk-dev] [PATCH v5 00/13] port: added port statistics

2015-06-19 Thread Maciej Gajdzica
Added statistics for every type of port. By default all port statistics are disabled, user must activate them in config file. Changes in v2: - added missing signoffs Changes in v3: - removed new config options to enable/disable stats - using RTE_LOG_LEVEL instead Changes

[dpdk-dev] [PATCH v2] eal:Fix log messages always being printed from rte_eal_cpu_init

2015-06-19 Thread David Marchand
Hello Keith, On Mon, Jun 8, 2015 at 11:55 PM, Keith Wiles wrote: > The RTE_LOG(DEBUG, ...) messages in rte_eal_cpu_init() are printed > even when the log level on the command line was set to INFO or lower. > > The problem is the rte_eal_cpu_init() routine was called before > the command line arg

[dpdk-dev] [PATCH v5 01/13] port: added structures for port stats and config option

2015-06-19 Thread Maciej Gajdzica
Added common data structures for port statistics. Added config option to enable stats collecting. Signed-off-by: Maciej Gajdzica --- config/common_bsdapp |1 + config/common_linuxapp |1 + lib/librte_port/rte_port.h | 60 3 files c

[dpdk-dev] [PATCH v5 02/13] port: added port_ethdev_reader stats

2015-06-19 Thread Maciej Gajdzica
Added statistics for ethdev reader port. Signed-off-by: Maciej Gajdzica --- lib/librte_port/rte_port_ethdev.c | 37 - 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/lib/librte_port/rte_port_ethdev.c b/lib/librte_port/rte_port_ethdev.c index 3

[dpdk-dev] [PATCH v5 03/13] port: added port_ethdev_writer stats

2015-06-19 Thread Maciej Gajdzica
Added statistics for ethdev writer port. Signed-off-by: Maciej Gajdzica --- lib/librte_port/rte_port_ethdev.c | 37 + 1 file changed, 37 insertions(+) diff --git a/lib/librte_port/rte_port_ethdev.c b/lib/librte_port/rte_port_ethdev.c index da1af08..b5b39f8

[dpdk-dev] [PATCH v5 04/13] port: added port_ethdev_writer_nodrop stats

2015-06-19 Thread Maciej Gajdzica
Added statistics for ethdev writer nodrop port. Signed-off-by: Maciej Gajdzica --- lib/librte_port/rte_port_ethdev.c | 36 1 file changed, 36 insertions(+) diff --git a/lib/librte_port/rte_port_ethdev.c b/lib/librte_port/rte_port_ethdev.c index b5b39f8..c

[dpdk-dev] [PATCH] doc: fix doxygen warnings

2015-06-19 Thread Bruce Richardson
On Thu, Jun 18, 2015 at 11:43:49PM +0200, Thomas Monjalon wrote: > Signed-off-by: Thomas Monjalon > --- > .../common/include/generic/rte_cpuflags.h | 2 +- > lib/librte_eal/common/include/rte_common.h | 6 ++--- > lib/librte_eal/common/include/rte_debug.h | 6 ++--- >

[dpdk-dev] [PATCH v5 05/13] port: added port_frag stats

2015-06-19 Thread Maciej Gajdzica
Added statistics for IPv4 and IPv6 fragmentation ports. Signed-off-by: Maciej Gajdzica --- lib/librte_port/rte_port_frag.c | 36 1 file changed, 36 insertions(+) diff --git a/lib/librte_port/rte_port_frag.c b/lib/librte_port/rte_port_frag.c index c4c05dc..

[dpdk-dev] [PATCH v5 06/13] port: added port_ras stats

2015-06-19 Thread Maciej Gajdzica
Added statistics for IPv4 and IPv6 reassembly ports. Signed-off-by: Maciej Gajdzica --- lib/librte_port/rte_port_ras.c | 38 ++ 1 file changed, 38 insertions(+) diff --git a/lib/librte_port/rte_port_ras.c b/lib/librte_port/rte_port_ras.c index 5eb627a..2c18

[dpdk-dev] [PATCH v5 07/13] port: added port_ring_reader stats

2015-06-19 Thread Maciej Gajdzica
Added statistics for ring reader port. Signed-off-by: Maciej Gajdzica --- lib/librte_port/rte_port_ring.c | 39 ++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/lib/librte_port/rte_port_ring.c b/lib/librte_port/rte_port_ring.c index 89b9641.

[dpdk-dev] [PATCH v5 08/13] port: added port_ring_writer stats

2015-06-19 Thread Maciej Gajdzica
Added statistics for port writer port. Signed-off-by: Maciej Gajdzica --- lib/librte_port/rte_port_ring.c | 38 ++ 1 file changed, 38 insertions(+) diff --git a/lib/librte_port/rte_port_ring.c b/lib/librte_port/rte_port_ring.c index 091b052..ff58009 100644

[dpdk-dev] [PATCH] doc: fix doxygen warnings

2015-06-19 Thread Thomas Monjalon
2015-06-19 10:20, Ouyang Changchun: > Fix doxygen warnings in vhost > > Signed-off-by: Changchun Ouyang Applied, thanks

[dpdk-dev] [PATCH] doc: fix doxygen warnings

2015-06-19 Thread Thomas Monjalon
> > Signed-off-by: Thomas Monjalon > > Acked-by: Bruce Richardson Applied

[dpdk-dev] RTE TIMER LIBRARY

2015-06-19 Thread Bruce Richardson
On Thu, Jun 18, 2015 at 08:57:45PM -0400, Yeddula, Avinash wrote: > Hello Dpdk-team, > > I have few very basic questions. In the DPDK timer sample application, the > periodic timer0's callback function is not called unless "rte_timer_manage()" > is called. I understand rte_timer_manage() functi

[dpdk-dev] clang build failing in v2.0.0 from poisoned symbols

2015-06-19 Thread Bruce Richardson
On Thu, Jun 18, 2015 at 09:31:02PM -0700, Matthew Hall wrote: > On Thu, Jun 18, 2015 at 08:37:46PM -0700, Matthew Hall wrote: > > dpdk/lib/librte_mbuf/rte_mbuf.h:68:20: error: poisoning existing macro > > [-Werror] > > Hi all, > > I finally figured out what happened. My older DPDK build configur

[dpdk-dev] [PATCH v5 10/13] port: added port_sched_reader stats

2015-06-19 Thread Maciej Gajdzica
Added statistics for sched reader port. Signed-off-by: Maciej Gajdzica --- lib/librte_port/rte_port_sched.c | 39 +- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/lib/librte_port/rte_port_sched.c b/lib/librte_port/rte_port_sched.c index 2107f

[dpdk-dev] [PATCH v5 09/13] port: added port_ring_writer_nodrop stats

2015-06-19 Thread Maciej Gajdzica
Added statistics for ring writer nodrop port. Signed-off-by: Maciej Gajdzica --- lib/librte_port/rte_port_ring.c | 37 + 1 file changed, 37 insertions(+) diff --git a/lib/librte_port/rte_port_ring.c b/lib/librte_port/rte_port_ring.c index ff58009..9461c05 1

[dpdk-dev] [PATCH v5 11/13] port: added port_sched_writer stats

2015-06-19 Thread Maciej Gajdzica
Added statistics for sched writer port. Signed-off-by: Maciej Gajdzica --- lib/librte_port/rte_port_sched.c | 57 ++ 1 file changed, 52 insertions(+), 5 deletions(-) diff --git a/lib/librte_port/rte_port_sched.c b/lib/librte_port/rte_port_sched.c index a82e

[dpdk-dev] [PATCH v5 12/13] port: added port_source stats

2015-06-19 Thread Maciej Gajdzica
Added statistics for source port. Signed-off-by: Maciej Gajdzica --- lib/librte_port/rte_port_source_sink.c | 35 1 file changed, 35 insertions(+) diff --git a/lib/librte_port/rte_port_source_sink.c b/lib/librte_port/rte_port_source_sink.c index b9a25bb..234a

[dpdk-dev] [PATCH v5 13/13] port: added port_sink stats

2015-06-19 Thread Maciej Gajdzica
Added statistics for sink port. Signed-off-by: Maciej Gajdzica --- lib/librte_port/rte_port_source_sink.c | 63 ++-- 1 file changed, 59 insertions(+), 4 deletions(-) diff --git a/lib/librte_port/rte_port_source_sink.c b/lib/librte_port/rte_port_source_sink.c index

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

2015-06-19 Thread Neil Horman
On Thu, Jun 18, 2015 at 04:55:45PM +, O'Driscoll, Tim wrote: > > -Original Message- > > From: announce [mailto:announce-bounces at dpdk.org] On Behalf Of Thomas > > Monjalon > > Sent: Wednesday, June 17, 2015 12:30 AM > > To: announce at dpdk.org > > Subject: [dpdk-announce] important d

[dpdk-dev] [PATCH v5 00/11] table: added table statistics

2015-06-19 Thread Maciej Gajdzica
Added statistics for every type of table. By default all table statistics are disabled, user must activate them in config file. Changes in v2: - added missing signoffs Changes in v3: - removed new config options to enable/disable stats - using RTE_LOG_LEVEL instead Change

[dpdk-dev] [PATCH v5 01/11] table: added structure for storing table stats and config option

2015-06-19 Thread Maciej Gajdzica
Added common structure for table statistics. Added config option to enable table stats collecting. Signed-off-by: Maciej Gajdzica --- config/common_bsdapp |1 + config/common_linuxapp |1 + lib/librte_table/rte_table.h | 25 + 3 files changed, 27 i

[dpdk-dev] [PATCH v5 02/11] table: added acl table stats

2015-06-19 Thread Maciej Gajdzica
Added statistics for ACL table. Signed-off-by: Maciej Gajdzica --- lib/librte_table/rte_table_acl.c | 35 +++ 1 file changed, 35 insertions(+) diff --git a/lib/librte_table/rte_table_acl.c b/lib/librte_table/rte_table_acl.c index 4416311..f02de3e 100644 --- a/l

[dpdk-dev] [PATCH v5 04/11] table: added hash_ext table stats

2015-06-19 Thread Maciej Gajdzica
Added statistics for hash ext table. Signed-off-by: Maciej Gajdzica --- lib/librte_table/rte_table_hash_ext.c | 44 + 1 file changed, 44 insertions(+) diff --git a/lib/librte_table/rte_table_hash_ext.c b/lib/librte_table/rte_table_hash_ext.c index 66e416b..3c1

[dpdk-dev] [PATCH v5 03/11] table: added array table stats

2015-06-19 Thread Maciej Gajdzica
Added statistics for array table. Signed-off-by: Maciej Gajdzica --- lib/librte_table/rte_table_array.c | 34 +- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/lib/librte_table/rte_table_array.c b/lib/librte_table/rte_table_array.c index c031070.

[dpdk-dev] [PATCH v5 05/11] table: added hash_key16 table stats

2015-06-19 Thread Maciej Gajdzica
Added statistics for hash key16 table. Signed-off-by: Maciej Gajdzica --- lib/librte_table/rte_table_hash_key16.c | 41 +++ 1 file changed, 41 insertions(+) diff --git a/lib/librte_table/rte_table_hash_key16.c b/lib/librte_table/rte_table_hash_key16.c index f87ea0

[dpdk-dev] [PATCH v5 06/11] table: added hash_key32 table stats

2015-06-19 Thread Maciej Gajdzica
Added statistics for hash key32 table. Signed-off-by: Maciej Gajdzica --- lib/librte_table/rte_table_hash_key32.c | 41 +++ 1 file changed, 41 insertions(+) diff --git a/lib/librte_table/rte_table_hash_key32.c b/lib/librte_table/rte_table_hash_key32.c index 679059

[dpdk-dev] [PATCH v5 07/11] table: added hash_key8 table stats

2015-06-19 Thread Maciej Gajdzica
Added statistics for hash key8 table. Signed-off-by: Maciej Gajdzica --- lib/librte_table/rte_table_hash_key8.c | 52 1 file changed, 52 insertions(+) diff --git a/lib/librte_table/rte_table_hash_key8.c b/lib/librte_table/rte_table_hash_key8.c index 6803eb2..

[dpdk-dev] [PATCH] doc: fix doxygen warnings

2015-06-19 Thread Mcnamara, John
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Thomas Monjalon > Sent: Friday, June 19, 2015 11:12 AM > To: Richardson, Bruce > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH] doc: fix doxygen warnings > > > > Signed-off-by: Thomas Monjalon > > > > Ac

[dpdk-dev] [PATCH v5 08/11] table: added hash_lru table stats

2015-06-19 Thread Maciej Gajdzica
Added statistics for hash_lru table. Signed-off-by: Maciej Gajdzica --- lib/librte_table/rte_table_hash_lru.c | 44 + 1 file changed, 44 insertions(+) diff --git a/lib/librte_table/rte_table_hash_lru.c b/lib/librte_table/rte_table_hash_lru.c index c9a8afd..c4b

[dpdk-dev] [PATCH v5 09/11] table: added lpm_ipv6 table stats

2015-06-19 Thread Maciej Gajdzica
Added lpm ipv6 table statistics. Signed-off-by: Maciej Gajdzica --- lib/librte_table/rte_table_lpm_ipv6.c | 34 + 1 file changed, 34 insertions(+) diff --git a/lib/librte_table/rte_table_lpm_ipv6.c b/lib/librte_table/rte_table_lpm_ipv6.c index ce4ddc0..ce7fa02

[dpdk-dev] [PATCH v5 10/11] table: added lpm table stats

2015-06-19 Thread Maciej Gajdzica
Added lpm table statistics. Signed-off-by: Maciej Gajdzica --- lib/librte_table/rte_table_lpm.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/lib/librte_table/rte_table_lpm.c b/lib/librte_table/rte_table_lpm.c index 64c684d..300e680 100644 --- a/lib/li

[dpdk-dev] [PATCH v5 11/11] table: added stub table stats

2015-06-19 Thread Maciej Gajdzica
Added stub table statistics. Signed-off-by: Maciej Gajdzica --- lib/librte_table/rte_table_stub.c | 56 - 1 file changed, 55 insertions(+), 1 deletion(-) diff --git a/lib/librte_table/rte_table_stub.c b/lib/librte_table/rte_table_stub.c index 876b7e4..c106

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

2015-06-19 Thread Mcnamara, John
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Richardson, Bruce > Sent: Wednesday, June 17, 2015 12:07 PM > To: Neil Horman; Thomas Monjalon > Cc: dev at dpdk.org > Subject: Re: [dpdk-dev] [dpdk-announce] important design choices - > statistics - ABI > Hi Ne

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

2015-06-19 Thread Roman Dementiev
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 (Intel(r) Transactional Synchronization Extensions). The implementation fall

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

2015-06-19 Thread Roman Dementiev
This patch adds methods that use hardware memory transactions (HTM) on fast-path for spinlocks (a.k.a. lock elision). Here the methods are implemented for x86 using Restricted Transactional Memory instructions (Intel(r) Transactional Synchronization Extensions). The implementation fall-backs to the

[dpdk-dev] [PATCH v3 2/3] rwlock: add support for HTM lock elision for x86

2015-06-19 Thread Roman Dementiev
This patch adds methods that use hardware memory transactions (HTM) on fast-path for rwlock (a.k.a. lock elision). Here the methods are implemented for x86 using Restricted Transactional Memory instructions (Intel(r) Transactional Synchronization Extensions). The implementation fall-backs to the no

[dpdk-dev] [PATCH v3 3/3] test scaling of HTM lock elision protecting rte_hash

2015-06-19 Thread Roman Dementiev
This patch adds a new auto-test for testing the scaling of concurrent inserts into rte_hash when protected by the normal spinlock vs. the spinlock with HTM lock elision. The test also benchmarks single-threaded access without any locks. Signed-off-by: Roman Dementiev Acked-by: Bruce Richardson -

[dpdk-dev] [PATCH v5 1/1] pipeline: add statistics for librte_pipeline ports and tables

2015-06-19 Thread Maciej Gajdzica
This patch adds statistics collection for librte_pipeline. Those statistics ale disabled by default during build time. Signed-off-by: Pawel Wodkowski --- config/common_bsdapp |1 + config/common_linuxapp |1 + lib/librte_pipeline/rte_pipeline.c | 185 ++

  1   2   3   >