[dpdk-dev] [PATCH] fm10k: fix PF/VF MAC address register and clean up bug

2015-06-08 Thread He, Shaopeng
Hi Thomas, Thanks for the comments. I will add more context to make it more clear. BR, --Shaopeng -Original Message- From: Thomas Monjalon [mailto:thomas.monja...@6wind.com] Sent: Friday, June 5, 2015 4:56 PM To: He, Shaopeng Cc: dev at dpdk.org Subject: Re: [dpdk-dev] [PATCH] fm10k:

[dpdk-dev] Is vhost vring_avail size tunable?

2015-06-08 Thread Ouyang, Changchun
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Tim Deng > Sent: Sunday, June 7, 2015 4:02 PM > To: dev at dpdk.org > Subject: [dpdk-dev] Is vhost vring_avail size tunable? > > > Hi, > > Under heavy work load, I found there were some packet lost caused by

[dpdk-dev] Intel X552/557 is not working.

2015-06-08 Thread Masafumi OE
Hi, I'm trying to use X552/X557-AT 10GBASE-T NIC on Xeon-D 1540. However it did not work properly. Binding X552/557to PMD for ixgbe is fine but testpmd is not working on X552/557 because th_ixgbe_dev_init() return Hardware Initialization Failure:-3. Do you have any idea? -- Supermicro

[dpdk-dev] Intel X552/557 is not working.

2015-06-08 Thread Masaru Oki
Hi, I made (unofficial, quick) patch. The code is mostly pulled from FreeBSD. My Ubuntu 14.04 on X10SDV-TLN4F is works fine. http://www.e-neta.jp/~oki/dpdk-ixgbe.diff 2015-06-08 11:19 GMT+09:00 Masafumi OE : > Hi, > > I'm trying to use X552/X557-AT 10GBASE-T NIC on Xeon-D 1540. However it did >

[dpdk-dev] [PATCH 0/6] fm10k: A series of bug fixes

2015-06-08 Thread He, Shaopeng
> -Original Message- > From: Chen, Jing D > Sent: Friday, May 29, 2015 4:11 PM > To: dev at dpdk.org > Cc: He, Shaopeng; Qiu, Michael; Chen, Jing D > Subject: [PATCH 0/6] fm10k: A series of bug fixes > > From: "Chen Jing D(Mark)" > > This patch set include a few bug fixes and

[dpdk-dev] [PATCH v4 0/7] Enable DCB in SRIOV mode for ixgbe driver

2015-06-08 Thread Zhang, Helin
Hi Pawel Could you help to rebase it to the latest? Then several DPDK developers here may help you on code review. I think your patches are really helpful on DCB decoupling in ethdev layer. Regards, Helin > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of

[dpdk-dev] [PATCH v3 01/10] examples/tep_termination:initialize the VXLAN sample

2015-06-08 Thread Jijiang Liu
This sample uses the basic virtio devices management function from the vHost example, which includes virtio device creation, destroying and maintenance. Signed-off-by: Jijiang Liu --- examples/Makefile |1 + examples/tep_termination/Makefile | 55 ++

[dpdk-dev] [PATCH v3 05/10] examples/tep_termination:add UDP port configuration for UDP tunneling packet

2015-06-08 Thread Jijiang Liu
The port number of UDP tunneling packet is configurable, which has 16 entries in total for i40e. Signed-off-by: Jijiang Liu --- examples/tep_termination/main.c| 18 +- examples/tep_termination/vxlan_setup.c | 13 - 2 files changed, 29 insertions(+), 2

[dpdk-dev] [PATCH v3 06/10] examples/tep_termination:add tunnel filter type configuration

2015-06-08 Thread Jijiang Liu
The following filter types are supported for VXLAN: 1> Inner MAC and tenent ID 2> Inner MAC and tenent ID, and Outer MAC 3> Inner MAC and tenent ID Signed-off-by: Jijiang Liu --- examples/tep_termination/main.c| 20 ++ examples/tep_termination/vxlan_setup.c | 63

[dpdk-dev] [PATCH v3 07/10] examples/tep_termination:add Tx checksum offload configuration for inner header

2015-06-08 Thread Jijiang Liu
For UDP tunneling packet, the inner Tx checksum offload means inner IPv4 and inner L4(TCP/UDP/SCTP). Signed-off-by: Jijiang Liu --- examples/tep_termination/main.c | 17 examples/tep_termination/vxlan.c | 82 ++ 2 files changed, 99

[dpdk-dev] [PATCH v3 00/10] Add a VXLAN sample

2015-06-08 Thread Jijiang Liu
This VXLAN sample simulates a VXLAN Tunnel Endpoint (VTEP) termination in DPDK, which is used to demonstrate the offload and filtering capabilities of i40 NIC for VXLAN packet. And this sample uses the basic virtio devices management function from vHost example, and the US-vHost interface and

[dpdk-dev] [PATCH v3 02/10] examples/tep_termination:define the basic VXLAN port information

2015-06-08 Thread Jijiang Liu
Some basic VXLAN definations are added in this file, which includes VXLAN port information and VXLAN device structures. Signed-off-by: Jijiang Liu Signed-off-by: Thomas Long --- examples/tep_termination/main.c |1 + examples/tep_termination/vxlan.h | 60

[dpdk-dev] [PATCH v3 08/10] examples/tep_termination:add TSO offload configuration

2015-06-08 Thread Jijiang Liu
if the 'tso-segsz' is not 0, it means TSO offload is enabled. Signed-off-by: Jijiang Liu --- examples/tep_termination/main.c| 17 + examples/tep_termination/vxlan.c |8 examples/tep_termination/vxlan.h |1 +

[dpdk-dev] [PATCH v3 09/10] examples/tep_termination:add bad Rx checksum statistics of inner IP and L4

2015-06-08 Thread Jijiang Liu
The number of packets with bad RX IP and L4 checksum in inner header is recorded. Signed-off-by: Jijiang Liu --- examples/tep_termination/main.c| 10 +- examples/tep_termination/main.h|4 examples/tep_termination/vxlan_setup.c |8 3 files

[dpdk-dev] [PATCH v3 04/10] examples/tep_termination:implement VXLAN packet processing

2015-06-08 Thread Jijiang Liu
To implement the following functions: 1> VXLAN port configuration 2> VXLAN tunnel setup 3> VXLAN tunnel destroying 4> VXLAN packet processing for Rx side 5> VXLAN packet processing for Tx side Signed-off-by: Jijiang Liu Signed-off-by: Thomas Long --- examples/tep_termination/Makefile

[dpdk-dev] [PATCH v3 03/10] examples/tep_termination:add the pluggable structures for VXLAN packet processing

2015-06-08 Thread Jijiang Liu
We are trying to create a framework for tunneling packet processing, so some common APIs are added here, which includes 1> tunnel port configuration 2> tunnel setup 3> tunnel destroying 4> tunneling packet processing for Rx side 5> tunneling packet processing for Tx side 6> tunnel parameter

[dpdk-dev] [PATCH v3 10/10] examples/tep_termination:add the configuration for encapsulation and the decapsulation

2015-06-08 Thread Jijiang Liu
The two flags are enabled by default. Sometimes we want to know the performance influence of the encapsulation and decapsulation operations, and I think we should add the two configuration options. Signed-off-by: Jijiang Liu --- examples/tep_termination/main.c| 36

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

2015-06-08 Thread Ouyang Changchun
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 enqueue/dequeue can't handle chained vring descriptors lib_vhost: Refine code style lib_vhost:

[dpdk-dev] [PATCH v6 1/4] lib_vhost: Fix enqueue/dequeue can't handle chained vring descriptors

2015-06-08 Thread Ouyang Changchun
Vring enqueue need consider the 2 cases: 1. use separate descriptors to contain virtio header and actual data, e.g. the first descriptor is for virtio header, and then followed by descriptors for actual data. 2. virtio header and some data are put together in one descriptor, e.g. the first

[dpdk-dev] [PATCH v6 3/4] lib_vhost: Extract function

2015-06-08 Thread Ouyang Changchun
Extract codes into 2 common functions: update_secure_len which is used to accumulate the buffer len in the vring descriptors. and fill_buf_vec which is used to fill struct buf_vec. Changes in v5 - merge fill_buf_vec into update_secure_len - do both tasks in one-time loop Signed-off-by: root

[dpdk-dev] [PATCH v6 2/4] lib_vhost: Refine code style

2015-06-08 Thread Ouyang Changchun
Remove unnecessary new line. Signed-off-by: root --- lib/librte_vhost/vhost_rxtx.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/librte_vhost/vhost_rxtx.c b/lib/librte_vhost/vhost_rxtx.c index b887e0b..1f145bf 100644 --- a/lib/librte_vhost/vhost_rxtx.c +++

[dpdk-dev] [PATCH v6 4/4] lib_vhost: Remove unnecessary vring descriptor length updating

2015-06-08 Thread Ouyang Changchun
Remove these unnecessary vring descriptor length updating, vhost should not change them. virtio in front end should assign value to desc.len for both rx and tx. Signed-off-by: root --- lib/librte_vhost/vhost_rxtx.c | 17 + 1 file changed, 1 insertion(+), 16 deletions(-) diff

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

2015-06-08 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. When the event fds add to a

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

2015-06-08 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 --- v12 changes: - fix awkward line split in using RTE_LOG v10 changes: - add RTE_INTR_HANDLE_UIO_INTX for uio_pci_generic v8 changes - fix

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

2015-06-08 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 ---

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

2015-06-08 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

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

2015-06-08 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:

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

2015-06-08 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

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

2015-06-08 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 v12 02/14] eal/linux: add rte_epoll_wait/ctl support

2015-06-08 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. The 'op' uses the same enum as epoll_wait/ctl does. The epoll event support to carry a raw user data and to register a callback which is executed during wakeup.

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

2015-06-08 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 -

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

2015-06-08 Thread Cunming Liang
v12 changes - bsd cleanup for unused variable warning - fix awkward line split in debug message v11 changes - typo cleanup and check kernel style v10 changes - code rework to return actual error code - bug fix for lsc when using uio_pci_generic v9 changes - code rework to fix open comment

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

2015-06-08 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

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

2015-06-08 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 --- v9 changes - remove unnecessary check after

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

2015-06-08 Thread Cunming Liang
RTE_EAL_RX_INTR 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

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

2015-06-08 Thread Cunming Liang
To make bsd compiling happy with new intr changes. Signed-off-by: Cunming Liang --- 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/librte_eal/bsdapp/eal/eal_interrupts.c

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

2015-06-08 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 v1] app/test: fix pmd_perf issue in no NUMA case

2015-06-08 Thread Cunming Liang
Reported-by: Jayakumar, Muthurajan Signed-off-by: Cunming Liang --- app/test/test_pmd_perf.c | 19 --- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/app/test/test_pmd_perf.c b/app/test/test_pmd_perf.c index 1fd6843..6f218f7 100644 --- a/app/test/test_pmd_perf.c

[dpdk-dev] l2fwd consumes 100% cpu

2015-06-08 Thread Liang, Cunming
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Victor Detoni > Sent: Monday, June 08, 2015 9:06 AM > To: dev at dpdk.org > Subject: [dpdk-dev] l2fwd consumes 100% cpu > > hello, > > I'm looking for some documentation about this issue, but I could found

[dpdk-dev] [PATCH v1] app/test: fix pmd_perf issue in no NUMA case

2015-06-08 Thread Jayakumar, Muthurajan
Thank you Steve. Acked. Thanks M Jay http://www.dpdk.org -Original Message- From: Liang, Cunming Sent: Sunday, June 07, 2015 11:33 PM To: dev at dpdk.org Cc: Jayakumar, Muthurajan; Liang, Cunming Subject: [PATCH v1] app/test: fix pmd_perf issue in no NUMA case Reported-by:

[dpdk-dev] [PATCH v2 0/6] support i40e QinQ stripping and insertion

2015-06-08 Thread Cao, Min
Tested-by: Min Cao - OS: Fedora20 3.11.10-301 - GCC: gcc version 4.8.2 20131212 - CPU: Intel(R) Xeon(R) CPU E5-2680 0 @ 2.70GHz - NIC: Ethernet controller: Intel Corporation Device 1572 (rev 01) - Default x86_64-native-linuxapp-gcc configuration - Total 2 cases, 2 passed, 0 failed - Case:

[dpdk-dev] [PATCH v2 0/6] support i40e QinQ stripping and insertion

2015-06-08 Thread Olivier MATZ
Hi Helin, On 06/02/2015 05:16 AM, Helin Zhang wrote: > As i40e hardware can be reconfigured to support QinQ stripping and > insertion, this patch set is to enable that together with using the > reserved 16 bits in 'struct rte_mbuf' for the second vlan tag. > Corresponding command is added in

[dpdk-dev] [PATCH] mk: remove "u" modifier from "ar" command

2015-06-08 Thread Olivier MATZ
Hi Bruce, On 06/05/2015 01:05 PM, Bruce Richardson wrote: > On Fedora 22, the "ar" binary operates by default in deterministic mode, > making the "u" parameter irrelevant, and leading to warning messages > getting printed in the build output like below. > > INSTALL-LIB librte_kvargs.a > ar:

[dpdk-dev] [PATCH v3 00/10] Add a VXLAN sample

2015-06-08 Thread Zhang, Helin
Acked-by: Helin Zhang Thanks for the good example! > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Jijiang Liu > Sent: Monday, June 8, 2015 11:02 AM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v3 00/10] Add a VXLAN sample > > This VXLAN sample

[dpdk-dev] [PATCH v2 1/2] Added ETH_SPEED_CAP bitmap in rte_eth_dev_info

2015-06-08 Thread Marc Sune
On 29/05/15 20:23, Thomas Monjalon wrote: > 2015-05-27 11:15, Marc Sune: >> On 27/05/15 06:02, Thomas Monjalon wrote: >>> Why not starting with lower values? Some new drivers may be interested >>> by lower speed. >> Ok, but which values? 1Mbps FD/HD? Even lower than that? >> >> If you have some

[dpdk-dev] [RFC] af_packet: support port hotplug

2015-06-08 Thread Iremonger, Bernard
-Original Message- From: Tetsuya Mukawa [mailto:muk...@igel.co.jp] Sent: Tuesday, March 17, 2015 3:43 AM To: Iremonger, Bernard Cc: John W. Linville; dev at dpdk.org Subject: Re: [dpdk-dev] [RFC] af_packet: support port hotplug On 2015/03/16 23:47, Iremonger, Bernard wrote: > >>

[dpdk-dev] [PATCHv2 0/8] acl: various fixes and cleanups

2015-06-08 Thread Konstantin Ananyev
Several fixes and code cleanups for the librte_acl. New test-cases for acl UT. Konstantin Ananyev (8): acl: fix invalid rule wildness calculation for bitmask field type acl: code cleanup - use global EAL macro, instead of creating a local copy acl: add function to check build input

[dpdk-dev] [PATCHv2 5/8] acl: code dedup - introduce a new macro

2015-06-08 Thread Konstantin Ananyev
Introduce new RTE_ACL_MASKLEN_TO_BITMASK macro, that will be used in several places inside librte_acl and it's UT. Simplify and cleanup build_trie() code a bit. Signed-off-by: Konstantin Ananyev --- lib/librte_acl/acl_bld.c | 16 +++- lib/librte_acl/rte_acl.h | 3 +++ 2 files

[dpdk-dev] [PATCHv2 7/8] acl: fix ambiguity between ACL rules in UT.

2015-06-08 Thread Konstantin Ananyev
Some test rules had equal priority for the same category. That can cause an ambiguity in build trie and test results. Specify different priority value for each rule from the same category. Signed-off-by: Konstantin Ananyev --- app/test/test_acl.h | 52

[dpdk-dev] [PATCHv2 4/8] acl: fix avoid unneeded trie splitting for subset of rules.

2015-06-08 Thread Konstantin Ananyev
When rebuilding a trie for limited rule-set, don't try to split the rule-set even further. Signed-off-by: Konstantin Ananyev --- lib/librte_acl/acl_bld.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/lib/librte_acl/acl_bld.c b/lib/librte_acl/acl_bld.c

[dpdk-dev] [PATCHv2 3/8] acl: add function to check build input parameters

2015-06-08 Thread Konstantin Ananyev
Move check for build confg parameter into a separate function. Simplify acl_calc_wildness() function. Signed-off-by: Konstantin Ananyev --- lib/librte_acl/acl_bld.c | 107 --- 1 file changed, 54 insertions(+), 53 deletions(-) diff --git

[dpdk-dev] [PATCHv2 1/8] acl: fix invalid rule wildness calculation for bitmask field type

2015-06-08 Thread Konstantin Ananyev
Signed-off-by: Konstantin Ananyev --- lib/librte_acl/acl_bld.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/librte_acl/acl_bld.c b/lib/librte_acl/acl_bld.c index 3801843..aee6ed5 100644 --- a/lib/librte_acl/acl_bld.c +++ b/lib/librte_acl/acl_bld.c @@ -1362,6

[dpdk-dev] [PATCHv2 2/8] acl: code cleanup - use global EAL macro, instead of creating a local copy

2015-06-08 Thread Konstantin Ananyev
use global RTE_LEN2MASK macro, instead of LEN2MASK. Signed-off-by: Konstantin Ananyev --- app/test-acl/main.c| 3 ++- lib/librte_acl/acl_bld.c | 3 ++- lib/librte_acl/rte_acl.c | 3 ++- lib/librte_acl/rte_acl.h | 2 +- lib/librte_acl/rte_acl_osdep.h | 2 -- 5 files

[dpdk-dev] [PATCHv2 8/8] acl: add new test-cases into UT

2015-06-08 Thread Konstantin Ananyev
Add several new test cases for ACL to cover different build configurations. Signed-off-by: Konstantin Ananyev --- app/test/test_acl.c | 431 +++- 1 file changed, 423 insertions(+), 8 deletions(-) diff --git a/app/test/test_acl.c

[dpdk-dev] Running testpmd over KNI

2015-06-08 Thread Bruce Richardson
On Fri, Jun 05, 2015 at 10:20:09AM -0700, Navneet Rao wrote: > Hi Bruce: > > Actually I want to use the TESTPMD app as a packet-generator/checker driving > the KNI-enabled NICs. > Is there an easy way to packet generate/check than testpmd? > > Please see attached. > > Thanks > -Navneet > What

[dpdk-dev] [PATCH] mk: remove "u" modifier from "ar" command

2015-06-08 Thread Bruce Richardson
On Mon, Jun 08, 2015 at 10:13:30AM +0200, Olivier MATZ wrote: > Hi Bruce, > > On 06/05/2015 01:05 PM, Bruce Richardson wrote: > > On Fedora 22, the "ar" binary operates by default in deterministic mode, > > making the "u" parameter irrelevant, and leading to warning messages > > getting printed

[dpdk-dev] [PATCH] examples/distributor: fix missing "; " in debug macro

2015-06-08 Thread Bruce Richardson
On Fri, Jun 05, 2015 at 10:45:04PM +0200, Thomas Monjalon wrote: > 2015-06-05 17:01, Bruce Richardson: > > The macro to turn on additional debug output when the app was compiled > > with "-DDEBUG" was missing a ";". > > It shows that such dead code is almost never tested. > It would be saner if

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

2015-06-08 Thread Bruce Richardson
On Sat, Jun 06, 2015 at 07:04:05PM -0500, 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 args are

[dpdk-dev] Is vhost vring_avail size tunable?

2015-06-08 Thread Tim Deng
Thank you Changchun! Tim ? 2015-06-08 09:56:43?"Ouyang, Changchun" ??? > >> -Original Message- >> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Tim Deng >> Sent: Sunday, June 7, 2015 4:02 PM >> To: dev at dpdk.org >> Subject: [dpdk-dev] Is vhost vring_avail size tunable? >>

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

2015-06-08 Thread Tahhan, Maryam
> + stats->idrop = hw_stats->mngpdc + > + hw_stats->fcoerpdc + > + total_qbrc; Should use qprdc instead of total_qbrc

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

2015-06-08 Thread Wiles, Keith
On 6/8/15, 6:09 AM, "Richardson, Bruce" wrote: >On Sat, Jun 06, 2015 at 07:04:05PM -0500, 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

[dpdk-dev] [PATCH 4/4] app: replace dump_cfg with proc_info

2015-06-08 Thread Tahhan, Maryam
> > Extend dump_cfg to also display statistcs information for given DPDK > > ports and rename the application to proc_info as it's now a utility > > doing a little more than just dumping the memory information for DPDK. > > > > Signed-off-by: Maryam Tahhan > > --- > > app/Makefile |

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

2015-06-08 Thread Wiles, Keith
On 6/8/15, 8:33 AM, "Wiles, Keith" wrote: > > >On 6/8/15, 6:09 AM, "Richardson, Bruce" >wrote: > >>On Sat, Jun 06, 2015 at 07:04:05PM -0500, 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

[dpdk-dev] [PATCH 4/4] app: replace dump_cfg with proc_info

2015-06-08 Thread Thomas Monjalon
2015-06-08 13:45, Tahhan, Maryam: > > > Extend dump_cfg to also display statistcs information for given DPDK > > > ports and rename the application to proc_info as it's now a utility > > > doing a little more than just dumping the memory information for DPDK. > > > > > > Signed-off-by: Maryam

[dpdk-dev] [PATCH] doc: guidelines for library statistics

2015-06-08 Thread Cristian Dumitrescu
Signed-off-by: Cristian Dumitrescu --- doc/guides/guidelines/index.rst | 1 + doc/guides/guidelines/statistics.rst | 42 2 files changed, 43 insertions(+) create mode 100644 doc/guides/guidelines/statistics.rst diff --git

[dpdk-dev] [PATCH v2] mbuf: optimize rte_mbuf_refcnt_update

2015-06-08 Thread Olivier Matz
In __rte_pktmbuf_prefree_seg(), there was an optimization to avoid using a costly atomic operation when updating the mbuf reference counter if its value is 1. Indeed, it means that we are the only owner of the mbuf, and therefore nobody can change it at the same time. We can generalize this

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

2015-06-08 Thread Michal Jastrzebski
From: 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

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

2015-06-08 Thread Michal Jastrzebski
From: 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

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

2015-06-08 Thread Michal Jastrzebski
From: 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

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

2015-06-08 Thread Michal Jastrzebski
From: 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

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

2015-06-08 Thread Michal Jastrzebski
From: 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

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

2015-06-08 Thread Michal Jastrzebski
From: 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

[dpdk-dev] [PATCH v4 00/10] table: added table statistics

2015-06-08 Thread Michal Jastrzebski
From: 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

[dpdk-dev] [PATCH v4 02/10] table: added acl table stats

2015-06-08 Thread Michal Jastrzebski
From: 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

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

2015-06-08 Thread Michal Jastrzebski
From: 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

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

2015-06-08 Thread Michal Jastrzebski
From: 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

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

2015-06-08 Thread Michal Jastrzebski
From: 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

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

2015-06-08 Thread Michal Jastrzebski
From: 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

[dpdk-dev] [PATCH v4 03/10] table: added array table stats

2015-06-08 Thread Michal Jastrzebski
From: 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

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

2015-06-08 Thread Michal Jastrzebski
From: 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

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

2015-06-08 Thread Michal Jastrzebski
From: 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

[dpdk-dev] [PATCH v4 04/10] table: added hash_ext table stats

2015-06-08 Thread Michal Jastrzebski
From: 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

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

2015-06-08 Thread Michal Jastrzebski
From: 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

[dpdk-dev] [PATCH v4 06/10] table: added hash_key32 table stats

2015-06-08 Thread Michal Jastrzebski
From: 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

[dpdk-dev] [PATCH v4 08/10] table: added hash_lru table stats

2015-06-08 Thread Michal Jastrzebski
From: 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

[dpdk-dev] [PATCH v4 05/10] table: added hash_key16 table stats

2015-06-08 Thread Michal Jastrzebski
From: 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

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

2015-06-08 Thread Michal Jastrzebski
From: 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

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

2015-06-08 Thread Michal Jastrzebski
From: 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

[dpdk-dev] [PATCH v4 09/10] table: added lpm_ipv6 table stats

2015-06-08 Thread Michal Jastrzebski
From: 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

[dpdk-dev] [PATCH v4 07/10] table: added hash_key8 table stats

2015-06-08 Thread Michal Jastrzebski
From: 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

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

2015-06-08 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] [RFC PATCH V4] ixgbe: changes to support PCI Port Hotplug

2015-06-08 Thread Bernard Iremonger
This patch depends on the Port Hotplug Framework. It implements the eth_dev_uninit functions for rte_ixgbe_pmd and rte_ixgbevf_pmd. Changes in V4: Release rx and tx queues in dev_uninit() functions. Replace TRUE and FALSE with 1 and 0. Changes in V3: Rebased to use drivers/net/ixgbe directory.

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

2015-06-08 Thread Dumitrescu, Cristian
> Added statistics for every type of port. By default all port statistics > are disabled, user must activate them in config file. > > > Changes in v4: > - created single config option for all port statistics > Acked-by: Cristian Dumitrescu

[dpdk-dev] [PATCH v4 00/10] table: added table statistics

2015-06-08 Thread Dumitrescu, Cristian
> Added statistics for every type of table. By default all table statistics > are disabled, user must activate them in config file. > > Changes in v4: > - created single config option for all table statistics Acked-by: Cristian Dumitrescu

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

2015-06-08 Thread Dumitrescu, Cristian
> This patch adds statistics collection for librte_pipeline. > Those statistics ale disabled by default during build time. > Acked-by: Cristian Dumitrescu

[dpdk-dev] Shared library build broken

2015-06-08 Thread Thomas F Herbert
I just noticed that shared library build is broking. I am building current master. I had to make this change to get it to build: -CONFIG_RTE_LIBRTE_PMD_BOND=y +CONFIG_RTE_LIBRTE_PMD_BOND=n One of the recent bonding commits broke some dependencies I think but I didn't investigate further.

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

2015-06-08 Thread Thomas F Herbert
On 6/8/15 11:38 AM, 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] Shared library build broken

2015-06-08 Thread Thomas F Herbert
Sorry, I apologize on behalf of my fingers. I meant combined library build is broken when PMD_BOND is selected. On 6/8/15 4:14 PM, Thomas F Herbert wrote: > I just noticed that shared library build is broking. I am building > current master. I had to make this change to get it to build: > >

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

2015-06-08 Thread Keith Wiles
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 args are scanned. Setting --log-level=7 now correctly does not print the

[dpdk-dev] KNIC to Kernel IP interface mapping

2015-06-08 Thread Abdul, Jaffar
HI Is there any many to one mapping schemes available for KNIC interface. Let's say I have 5 kernel IP interfaces and I want to map all the five interfaces to one KNIC (single KNIC), so we can transmit all the frames to KNIC from all the five kernel IP interfaces and when we get the packet

  1   2   >