[dpdk-dev] [PATCH v4 0/4] bonding corrections and additions

2015-06-29 Thread Thomas Monjalon
Declan, Neil, Please help to review this series. 2015-05-26 08:41, Eric Kinzie: > This patchset makes a couple of small corrections to the bonding driver > and introduces the ability to use an external state machine for mode > 4 operation. > > Changes in v2: > . eliminate external_sm field in

[dpdk-dev] [PATCH] bond: fix check initial link status of slave

2015-06-29 Thread Thomas Monjalon
> > On Fortville NIC, link status change interrupt callback is not executed when > > slave in bonding is (re-)started. It causes that slave's NIC is inactive > > even > > if its link status is up on the start. > > > > This patch invokes lsc callback, just after port's start, to check its > > ini

[dpdk-dev] [PATCH] Make bond_ethdev_stop iterate only over active slaves

2015-06-29 Thread Thomas Monjalon
> > When stopping the bond device we don't need to try and free up the LACPDU's > > from deactivated devices since this is covered by > > bond_mode_8023ad_deactivate_slave(). > > > > This fixes the following: > > [0.100569] PANIC in bond_ethdev_stop(): > > [0.100589] line 1172asser

[dpdk-dev] Number of memory channels per processor socket?

2015-06-29 Thread Keunhong Lee
See your motherboard spec. For example, I'm using Intel 5930K with ASUS X99 Delux Motherboard (x99 chipset). This site https://www.asus.com/us/Motherboards/X99DELUXE/specifications/ tells that "Quad Channel Memory Architecture " which means that "-n 4" is the correct configuration for me. To fully

[dpdk-dev] Number of memory channels per processor socket?

2015-06-29 Thread Keunhong Lee
...and -c option gives 'masking' for CPUs. -c 1 will only activate single core (especially second core) of your system. If you want to activate both core, you have to give the mask '11'b ('3' in decimal). 2015-06-28 18:54 GMT+09:00 Abhishek Verma : > Hi, > > I am new to DPDK and i tried searchin

[dpdk-dev] Could not achieve wire speed for 40GE with any DPDK version on XL710 NIC's

2015-06-29 Thread Keunhong Lee
DISCLAIMER: This information is not verified. This is truly my personal opinion. As I know, intel 82599 is the only 10G NIC which supports line rate with minimum sized packets (64 byte). According to our internal tests, Mellanox's 40G NICs even support less than 30Mpps. I think 40 Mpps is the hard

[dpdk-dev] Number of memory channels per processor socket?

2015-06-29 Thread Abhishek Verma
Thanks Keunhong. How do i get the motherboard spec on a virtual machine thats spawned on the cloud, for example Amazon EC2? Cheers, Abhishek On Mon, Jun 29, 2015 at 4:53 AM, Keunhong Lee wrote: > See your motherboard spec. > For example, I'm using Intel 5930K with ASUS X99 Delux Motherboard (x

[dpdk-dev] Interface once added to DPDK goes missing from ifconfig

2015-06-29 Thread Abhishek Verma
Hi, I have three ethernet interfaces in my VirtualBox as shown below: root at VirtualBox:/home/akabra/dpdk/dpdk-2.0.0/tools# ifconfig eth1 Link encap:Ethernet HWaddr 08:00:27:3f:34:56 inet addr:192.168.0.123 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::a00:27ff:fe3

[dpdk-dev] Number of memory channels per processor socket?

2015-06-29 Thread Keunhong Lee
Currently, I have no idea to find out memory mapping of virtual machines. I think -n 4 will work on both dual and quad channel memory. This optimizes entries of mempool or ring structure to interleave memory access into n-ways. I think interleaving in 4 ways will also include 2 way interleaving. K

[dpdk-dev] Interface once added to DPDK goes missing from ifconfig

2015-06-29 Thread Keunhong Lee
DPDK's igb_uio driver does not generate 'netdev' interfaces, so you cannot see any interface via ifconfig. (However, they are registered as 'rte_eth_dev' in your DPDK application.) You'd better to use KNI drivers to have 'netdev' intefaces. Keunhong. 2015-06-29 8:51 GMT+09:00 Abhishek Verma :

[dpdk-dev] Receiving packets on only one port

2015-06-29 Thread Keunhong Lee
I don't know your situation exactly, but here are possible problems. 1. Your switch learned MAC addresses of two ports. 2. Your program bug. 3. l3fwd itself contains some bug. 4. You did not set all ports in promiscuous mode. You'd better try 'pktgen' application to test your environment. Keunho

[dpdk-dev] Receive errors on all packets with multi-queues

2015-06-29 Thread Keunhong Lee
Did you set RSS mode? Multi-queue RX won't work unless you have set RSS(Receive Side Scaling). Keunhong. 2015-06-22 14:34 GMT+09:00 Jakub Mazur : > Hi > > I'm having problems with packets received when running 2 receive queues (on > seperate lcores) on the same port but when I run 1 queue every

[dpdk-dev] Interface once added to DPDK goes missing from ifconfig

2015-06-29 Thread Abhishek Verma
Hi Keunhong, Thanks for the response. I was reading about KNI ( http://dpdk.org/doc/guides/sample_app_ug/kernel_nic_interface.html), and that seems to defeat the purpose of DPDK -- the whole point of using DPDK was to bypass the kernel. Now, when i implement KNI, then packets emanating from the D

[dpdk-dev] Interface once added to DPDK goes missing from ifconfig

2015-06-29 Thread Keunhong Lee
To fully utilize DPDK's performance, it is recommended to use native userspace drivers. Because userspace drivers do not interact with your kernel, it is trivial not having 'interfaces' for your kernel. YES you are bypassing whole kernel, if you are using userspace drivers. You may need KNI when:

[dpdk-dev] [PATCH v3 0/8] Add Port Hotplug support to BSD

2015-06-29 Thread Tetsuya Mukawa
This patch series adds port hotplug support to BSD. Before applying, following patches should be applied. - [PATCH v6 1/5] eal: Fix coding style of eal_pci.c and eal_pci_uio.c - [PATCH v6 2/5] eal: Close file descriptor of uio configuration - [PATCH v6 3/5] eal: Fix memory leaks and needless inc

[dpdk-dev] [PATCH v3 1/8] eal: Add pci_uio_alloc_uio_resource()

2015-06-29 Thread Tetsuya Mukawa
From: "Tetsuya.Mukawa" This patch adds a new function called pci_uio_alloc_uio_resource(). The function hides how to prepare uio resource in linuxapp and bsdapp. With the function, pci_uio_map_resource() will be more abstracted. Signed-off-by: Tetsuya Mukawa --- lib/librte_eal/bsdapp/eal/eal_p

[dpdk-dev] [PATCH v3 2/8] eal: Add pci_uio_map_uio_resource_by_index()

2015-06-29 Thread Tetsuya Mukawa
From: "Tetsuya.Mukawa" This patch adds a new function called pci_uio_map_resource_by_index(). The function hides how to map uio resource in linuxapp and bsdapp. With the function, pci_uio_map_resource() will be more abstracted. Signed-off-by: Tetsuya Mukawa --- lib/librte_eal/bsdapp/eal/eal_pc

[dpdk-dev] [PATCH v3 3/8] eal: Consolidate pci_map and mapped_pci_resource of linuxapp and bsdapp

2015-06-29 Thread Tetsuya Mukawa
From: "Tetsuya.Mukawa" This patch consolidates below structures, and defines them in common code. - struct pci_map - strucy mapped_pci_resouces Signed-off-by: Tetsuya Mukawa --- lib/librte_eal/bsdapp/eal/eal_pci.c| 24 lib/librte_eal/common/include/rte_pci.h

[dpdk-dev] [PATCH v3 4/8] eal: Consolidate rte_eal_pci_probe/close_one_driver() of linuxapp and bsdapp

2015-06-29 Thread Tetsuya Mukawa
From: "Tetsuya.Mukawa" This patch consolidates below functions, and implements these in common eal code. - rte_eal_pci_probe_one_driver() - rte_eal_pci_close_one_driver() Because pci_map_device() is only implemented in linuxapp, the patch implements it in bsdapp too. This implemented function

[dpdk-dev] [PATCH v3 5/8] eal: Consolidate pci_map/unmap_device() of linuxapp and bsdapp

2015-06-29 Thread Tetsuya Mukawa
From: "Tetsuya.Mukawa" The patch consolidates below functions, and implemented in common eal code. - pci_map_device() - pci_unmap_device() Signed-off-by: Tetsuya Mukawa --- lib/librte_eal/bsdapp/eal/eal_pci.c | 12 +++ lib/librte_eal/common/eal_common_pci.c | 57

[dpdk-dev] [PATCH v3 6/8] eal: Consolidate pci_map/unmap_resource() of linuxapp and bsdapp

2015-06-29 Thread Tetsuya Mukawa
From: "Tetsuya.Mukawa" The patch consolidates below functions, and implemented in common eal code. - pci_map_resource() - pci_unmap_resource() Signed-off-by: Tetsuya Mukawa --- lib/librte_eal/bsdapp/eal/eal_pci.c| 22 lib/librte_eal/common/eal_common_pci.c | 40 +

[dpdk-dev] [PATCH v3 7/8] eal: Consolidate pci uio functions of linuxapp and bsdapp

2015-06-29 Thread Tetsuya Mukawa
From: "Tetsuya.Mukawa" The patch consolidates below functions, and implement these in eal_common_pci_uio.c. - pci_uio_map_secondary() - pci_uio_map_resource() - pci_uio_unmap() - pci_uio_find_resource() - pci_uio_unmap_resource() Signed-off-by: Tetsuya Mukawa --- lib/librte_eal/bsdapp/eal

[dpdk-dev] [PATCH v3 8/8] eal: Enable Port Hotplug as default in Linux and BSD

2015-06-29 Thread Tetsuya Mukawa
From: "Tetsuya.Mukawa" This patch removes CONFIG_RTE_LIBRTE_EAL_HOTPLUG option, and enables it as default in both Linux and BSD. Also, to support port hotplug, rte_eal_pci_scan() and below missing symbols should be exported to ethdev library. - rte_eal_parse_devargs_str() - rte_eal_pci_close_on

[dpdk-dev] [PATCH] MAINTAINERS: claim EAL of IBM POWER

2015-06-29 Thread Chao Zhu
Signed-off-by: Chao Zhu --- MAINTAINERS |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 54f0973..8fe52c5 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -105,7 +105,8 @@ F: app/test/test_mp_secondary.c F: examples/multi_process/ F: doc/gu

[dpdk-dev] Could not achieve wire speed for 40GE with any DPDK version on XL710 NIC's

2015-06-29 Thread Pavel Odintsov
Hello! Lee, thank you so much for sharing your experience! What do you think about 40GE version of 82599? On Mon, Jun 29, 2015 at 2:35 AM, Keunhong Lee wrote: > DISCLAIMER: This information is not verified. This is truly my personal > opinion. > > As I know, intel 82599 is the only 10G NIC which

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

2015-06-29 Thread Qiu, Michael
On 6/26/2015 7:02 PM, Iremonger, Bernard wrote: >> -Original Message- >> From: Qiu, Michael >> Sent: Friday, June 26, 2015 9:30 AM >> To: dev at dpdk.org >> Cc: Chen, Jing D; He, Shaopeng; Iremonger, Bernard; Qiu, Michael >> Subject: [PATCH 1/2 v4] fm10k: Free queues when close port >> >> W

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

2015-06-29 Thread Iremonger, Bernard
> -Original Message- > From: Qiu, Michael > Sent: Monday, June 29, 2015 9:17 AM > To: Iremonger, Bernard; dev at dpdk.org > Cc: Chen, Jing D; He, Shaopeng > Subject: Re: [PATCH 1/2 v4] fm10k: Free queues when close port > > On 6/26/2015 7:02 PM, Iremonger, Bernard wrote: > >> -Original

[dpdk-dev] [PATCH v2] librte_ether: release memory in uninit function.

2015-06-29 Thread Qiu, Michael
On 6/26/2015 5:32 PM, Iremonger, Bernard wrote: > Changes in v2: > do not free mac_addrs and hash_mac_addrs here. > > Signed-off-by: Bernard Iremonger > --- > lib/librte_ether/rte_ethdev.c |6 +- > 1 files changed, 5 insertions(+), 1 deletions(-) > > diff --git a/lib/librte_ether/rte_ethd

[dpdk-dev] 10G Interface used as PCI Pass-Through reports 64bytes / packet

2015-06-29 Thread Bruce Richardson
On Fri, Jun 26, 2015 at 04:56:18PM +, Assaad, Sami (Sami) wrote: > Hello, > > Is it normal that a 10G NIC interface, supporting the 82599 Ethernet > Controller, configured as PCI Pass-through for a virtual machine using DPDK, > reports 64 bytes per packet; no matter what the packet size? >

[dpdk-dev] Distributor example app not working for 1G ports (I354)

2015-06-29 Thread Bruce Richardson
On Fri, Jun 26, 2015 at 03:37:08PM -0400, Aws Ismail wrote: > Hi DPDKers, > > I have a strange case where the Distributor example application is not > working when I use Intel's I35x (I354 specifically) 1Gig ports. The > app initializes fine but the port always comes with link down: > Do other app

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

2015-06-29 Thread Qiu, Michael
On 6/29/2015 4:57 PM, Iremonger, Bernard wrote: >> -Original Message- >> From: Qiu, Michael >> Sent: Monday, June 29, 2015 9:17 AM >> To: Iremonger, Bernard; dev at dpdk.org >> Cc: Chen, Jing D; He, Shaopeng >> Subject: Re: [PATCH 1/2 v4] fm10k: Free queues when close port >> >> On 6/26/201

[dpdk-dev] [PATCH] eal: fix cpu_feature_table[] compilation with -pedantic

2015-06-29 Thread Adrien Mazarguil
Since the commit below includes rte_cpuflags.h in rte_spinlock.h, compilation of the mlx4 driver fails when CONFIG_RTE_LIBRTE_MLX4_DEBUG=y. This mode adds -pedantic to the compiler's command line for mlx4, which complains about the static definition of an empty cpu_feature_table[] in common rte_cp

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

2015-06-29 Thread Iremonger, Bernard
> -Original Message- > From: Qiu, Michael > Sent: Monday, June 29, 2015 10:21 AM > To: Iremonger, Bernard; dev at dpdk.org > Cc: Chen, Jing D; He, Shaopeng > Subject: Re: [PATCH 1/2 v4] fm10k: Free queues when close port > > On 6/29/2015 4:57 PM, Iremonger, Bernard wrote: > >> -Origina

[dpdk-dev] RTM instruction compile failure for XABORT when AVX is active

2015-06-29 Thread Roman Dementiev
Hello Thomas, Sunday, June 28, 2015, 9:38:14 PM, you wrote: > 2015-06-28 10:59, Matthew Hall: >> It would appear there is some bug in the new lock elision patches that is >> preventing it from compiling with clang. Any suggestions? > It builds with clang. > My suggestion is to add the patch aut

[dpdk-dev] [PATCH] bond: initialize backpointer from pci device to driver

2015-06-29 Thread Thomas Monjalon
2015-05-07 19:41, Stephen Hemminger: > Add missing initialization of to pci_dev driver > The link from pci_dev back to the ethernet driver was not being set. > > Signed-off-by: Stephen Hemminger Applied, thanks

[dpdk-dev] [PATCH v2] librte_ether: release memory in uninit function.

2015-06-29 Thread Iremonger, Bernard
> -Original Message- > From: Qiu, Michael > Sent: Monday, June 29, 2015 9:55 AM > To: Iremonger, Bernard; dev at dpdk.org > Cc: Zhang, Helin; Ananyev, Konstantin; mukawa at igel.co.jp; Stephen > Hemminger > Subject: Re: [PATCH v2] librte_ether: release memory in uninit function. > > On 6

[dpdk-dev] RTM instruction compile failure for XABORT when AVX is active

2015-06-29 Thread Thomas Monjalon
2015-06-29 12:11, Roman Dementiev: > >> On Jun 28, 2015, at 10:16 AM, Matthew Hall > >> wrote: > >> > I am getting a strange error compiling some RTM instructions when > >> > I upgraded my VM environment from VirtualBox 4 to VirtualBox 5 and > >> > AVX instructions from the host CPU became availa

[dpdk-dev] SR-IOV and DPDK

2015-06-29 Thread Abhishek Verma
Hi, Does it make sense to test DPDK without the underlying hypervisor supporting SR-IOV? I am trying to understand DPDK by trying it out on a VM running on Virtual Box. My intent is to see packets arriving on my virtual eth ports directly into the user space, completely bypassing the guest kernel.

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

2015-06-29 Thread Ananyev, Konstantin
Hi Michael, > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Qiu, Michael > Sent: Monday, June 29, 2015 10:21 AM > To: Iremonger, Bernard; dev at dpdk.org > Cc: He, Shaopeng > Subject: Re: [dpdk-dev] [PATCH 1/2 v4] fm10k: Free queues when close port > > On 6/

[dpdk-dev] [PATCH 2/2] ixgbe: add memory barriers in vector rx/tx

2015-06-29 Thread Ananyev, Konstantin
Hi Eric, > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Eric Kinzie > Sent: Thursday, June 25, 2015 7:26 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH 2/2] ixgbe: add memory barriers in vector rx/tx > > Add write memory barrier before writing tail p

[dpdk-dev] [PATCH] eal: fix cpu_feature_table[] compilation with -pedantic

2015-06-29 Thread David Marchand
On Mon, Jun 29, 2015 at 11:34 AM, Adrien Mazarguil < adrien.mazarguil at 6wind.com> wrote: > Since the commit below includes rte_cpuflags.h in rte_spinlock.h, > compilation of the mlx4 driver fails when CONFIG_RTE_LIBRTE_MLX4_DEBUG=y. > > This mode adds -pedantic to the compiler's command line for

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

2015-06-29 Thread Bruce Richardson
On Fri, Jun 19, 2015 at 07:14:15PM +0300, Vladimir Medvedkin wrote: > Hi Bruce, > > 2015-06-19 18:59 GMT+03:00 Richardson, Bruce : > > > > > > > > -Original Message- > > > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Vladimir Medvedkin > > > Sent: Friday, June 19, 2015 3:56 PM

[dpdk-dev] [PATCH] eal: fix cpu_feature_table[] compilation with -pedantic

2015-06-29 Thread Thomas Monjalon
2015-06-29 14:10, David Marchand: > On Mon, Jun 29, 2015 at 11:34 AM, Adrien Mazarguil < > adrien.mazarguil at 6wind.com> wrote: > > > Since the commit below includes rte_cpuflags.h in rte_spinlock.h, > > compilation of the mlx4 driver fails when CONFIG_RTE_LIBRTE_MLX4_DEBUG=y. > > > > This mode a

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

2015-06-29 Thread Thomas Monjalon
2015-06-09 16:17, Olivier MATZ: > On 06/09/2015 02:51 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. > > > >INST

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

2015-06-29 Thread Bruce Richardson
On Fri, Jun 19, 2015 at 01:31:13PM -0400, Vladimir Medvedkin wrote: > Software implementation of the Toeplitz hash function used by RSS. > Can be used either for packet distribution on single queue NIC > or for simulating of RSS computation on specific NIC (for example > after GRE header decapsulat

[dpdk-dev] [PATCH v3] Add unit test for thash library

2015-06-29 Thread Bruce Richardson
On Fri, Jun 19, 2015 at 01:32:05PM -0400, Vladimir Medvedkin wrote: > Add unit test for thash library > > v3 changes > - Fix checkpatch errors > > v2 changes > - fix typo > - remove unnecessary comments > > Signed-off-by: Vladimir Medvedkin Patch obviously depends on the thash patch which is s

[dpdk-dev] [PATCH v3 1/8] eal: Add pci_uio_alloc_uio_resource()

2015-06-29 Thread Iremonger, Bernard
> -Original Message- > From: Tetsuya Mukawa [mailto:mukawa at igel.co.jp] > Sent: Monday, June 29, 2015 3:57 AM > To: dev at dpdk.org > Cc: Iremonger, Bernard; david.marchand at 6wind.com; Tetsuya.Mukawa > Subject: [PATCH v3 1/8] eal: Add pci_uio_alloc_uio_resource() > > From: "Tetsuya.M

[dpdk-dev] [PATCH v3 2/8] eal: Add pci_uio_map_uio_resource_by_index()

2015-06-29 Thread Iremonger, Bernard
> -Original Message- > From: Tetsuya Mukawa [mailto:mukawa at igel.co.jp] > Sent: Monday, June 29, 2015 3:57 AM > To: dev at dpdk.org > Cc: Iremonger, Bernard; david.marchand at 6wind.com; Tetsuya.Mukawa > Subject: [PATCH v3 2/8] eal: Add pci_uio_map_uio_resource_by_index() > > From: "Te

[dpdk-dev] [PATCH v2 0/7] ethdev: add support for ieee1588 timestamping

2015-06-29 Thread John McNamara
This patchset adds ethdev API to enable and read IEEE1588/802.1AS PTP timestamps from devices that support it. The following functions are added: rte_eth_timesync_enable() rte_eth_timesync_disable() rte_eth_timesync_read_rx_timestamp() rte_eth_timesync_read_tx_timestamp() The "iee

[dpdk-dev] [PATCH v2 2/7] e1000: add support for ieee1588 timestamping

2015-06-29 Thread John McNamara
Add e1000/igb support for new ethdev APIs to enable and read IEEE1588 PTP timestamps. Signed-off-by: John McNamara --- drivers/net/e1000/igb_ethdev.c | 115 + 1 file changed, 115 insertions(+) diff --git a/drivers/net/e1000/igb_ethdev.c b/drivers/net/e100

[dpdk-dev] [PATCH v2 1/7] ethdev: add support for ieee1588 timestamping

2015-06-29 Thread John McNamara
Add ethdev API to enable and read IEEE1588/802.1AS PTP timestamps from devices that support it. The following functions are added: rte_eth_timesync_enable() rte_eth_timesync_disable() rte_eth_timesync_read_rx_timestamp() rte_eth_timesync_read_tx_timestamp() Signed-off-by: John McN

[dpdk-dev] [PATCH v2 3/7] ixgbe: add support for ieee1588 timestamping

2015-06-29 Thread John McNamara
Add ixgbe support for new ethdev APIs to enable and read IEEE1588 PTP timestamps. Signed-off-by: John McNamara --- drivers/net/ixgbe/ixgbe_ethdev.c | 122 +++ 1 file changed, 122 insertions(+) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/

[dpdk-dev] [PATCH v2 4/7] i40e: add support for ieee1588 timestamping

2015-06-29 Thread John McNamara
Add ixgbe support for new ethdev APIs to enable and read IEEE1588/ 802.1AS PTP timestamps. Signed-off-by: John McNamara --- drivers/net/i40e/i40e_ethdev.c | 143 + drivers/net/i40e/i40e_rxtx.c | 39 ++- 2 files changed, 181 insertions(+), 1 dele

[dpdk-dev] [PATCH v2 7/7] abi: announce mbuf addition for ieee1588 in DPDK 2.2

2015-06-29 Thread John McNamara
Add announcement of a dedicated additional field in the mbuf to support ieee1588 in DPDK 2.2. Signed-off-by: John McNamara --- doc/guides/rel_notes/abi.rst | 5 + 1 file changed, 5 insertions(+) diff --git a/doc/guides/rel_notes/abi.rst b/doc/guides/rel_notes/abi.rst index f00a6ee..51dacb2

[dpdk-dev] [PATCH v2 6/7] doc: document ieee1588 forwarding mode

2015-06-29 Thread John McNamara
Document the optional ieee1588 forwarding mode. Signed-off-by: John McNamara --- doc/guides/testpmd_app_ug/run_app.rst | 2 +- doc/guides/testpmd_app_ug/testpmd_funcs.rst | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/guides/testpmd_app_ug/run_app.rst b/doc/guid

[dpdk-dev] [PATCH v2 5/7] app/testpmd: refactor ieee1588 forwarding

2015-06-29 Thread John McNamara
Refactor the ieee1588_fwd mode in testpmd to use the new ethdev APIs to enable and read IEEE1588 PTP timestamps. Signed-off-by: John McNamara --- app/test-pmd/ieee1588fwd.c | 466 +++-- 1 file changed, 27 insertions(+), 439 deletions(-) diff --git a/app/t

[dpdk-dev] [PATCHv3 2/3] rte_compat: Add MAP_STATIC_SYMBOL macro

2015-06-29 Thread Neil Horman
On Sun, Jun 28, 2015 at 10:13:31PM +0200, Thomas Monjalon wrote: > 2015-06-26 10:30, Neil Horman: > > On Fri, Jun 26, 2015 at 02:52:50PM +0200, Thomas Monjalon wrote: > > > 2015-06-25 10:35, Neil Horman: > > > > +/* > > > > + * MAP_STATIC_SYMBOL > > > > + * If a function has been bifurcated into mu

[dpdk-dev] [PATCHv3 3/3] ABI: Add some documentation

2015-06-29 Thread Neil Horman
On Sun, Jun 28, 2015 at 10:24:42PM +0200, Thomas Monjalon wrote: > 2015-06-26 10:54, Neil Horman: > > On Fri, Jun 26, 2015 at 03:00:17PM +0200, Thomas Monjalon wrote: > > > 2015-06-25 10:35, Neil Horman: > > > > +* ``VERSION_SYMBOL(b, e, n)``: Creates a symbol version table entry > > > > binding >

[dpdk-dev] [PATCHv4 1/4] rte_compat.h : Clean up some typos

2015-06-29 Thread Neil Horman
Clean up some macro definition typos and comments Signed-off-by: Neil Horman CC: thomas.monjalon at 6wind.com --- lib/librte_compat/rte_compat.h | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/librte_compat/rte_compat.h b/lib/librte_compat/rte_compat.h inde

[dpdk-dev] [PATCHv4 2/4] rte_compat: Add MAP_STATIC_SYMBOL macro

2015-06-29 Thread Neil Horman
It was pointed out in my examples that doing shared library symbol versioning by partitioning symbols to version specific functions (as opposed to leaving the latest symol version at the base symbol name), neglects to take into account static builds. Add a macro to handle that. If you choose a ve

[dpdk-dev] [PATCHv4 3/4] rte_compat: remove BASE_SYMBOL

2015-06-29 Thread Neil Horman
BASE_SYMBOL was only here for completelness. DPDK currently doesn't need it, so lets remove it. Signed-off-by: Neil Horman --- lib/librte_compat/rte_compat.h | 8 1 file changed, 8 deletions(-) diff --git a/lib/librte_compat/rte_compat.h b/lib/librte_compat/rte_compat.h index d7768d5.

[dpdk-dev] [PATCHv4 4/4] ABI: Add some documentation

2015-06-29 Thread Neil Horman
People have been asking for ways to use the ABI macros, heres some docs to clarify their use. Included is: * An overview of what ABI is * Details of the ABI deprecation process * Details of the versioning macros * Examples of their use * Details of how to use the ABI validator Thanks to John Mcn

[dpdk-dev] 10G Interface used as PCI Pass-Through reports 64bytes / packet

2015-06-29 Thread Assaad, Sami (Sami)
Thanks Bruce for your response. This is a very odd issue. I'm connecting a Pktgen-DPDK server directly to our application server running a DPDK Server/Client Process architecture. I'm constantly seeing 64bytes per packet, no matter what packet size is being received by the NIC running on the ap

[dpdk-dev] [PATCH v3 7/8] eal: Consolidate pci uio functions of linuxapp and bsdapp

2015-06-29 Thread Iremonger, Bernard
> -Original Message- > From: Tetsuya Mukawa [mailto:mukawa at igel.co.jp] > Sent: Monday, June 29, 2015 3:57 AM > To: dev at dpdk.org > Cc: Iremonger, Bernard; david.marchand at 6wind.com; Tetsuya.Mukawa > Subject: [PATCH v3 7/8] eal: Consolidate pci uio functions of linuxapp and > bsdapp

[dpdk-dev] [PATCH v2] cfgfile: fix unitialised buffer

2015-06-29 Thread Daniel Mrzyglod
Nature of the problem was not initialised buffer[256], there were probability that operation system will provide previously used memory and on special condition there were probability that string operations will work on random data that could provide unexpected program behaviour. Signed-off-by: D

[dpdk-dev] [PATCH] cfgfile: fix unitialised buffer and improve reading from nfs filesystem.

2015-06-29 Thread Mrzyglod, DanielX T
I send v2 of this patch. I removed in v2 special buffer for file descriptor. It helped when we haved unitilized buffer[256] because of diferent fgets/fread/fwrite behaviour when the buffer was set. The real and only problem was uninitialized buffer[256] and this workaround IO buffer is not ne

[dpdk-dev] Receiving packets on only one port

2015-06-29 Thread Daeyoung Kim
Hi Keunhong, Thank you for your help. Here is the network topology. DNS Client - Switch 1 - Switch 2 - Switch 3 - DNS Server | | port 0 port 1 DPDK port 0 receives packets using from t

[dpdk-dev] [PATCH v2] cfgfile: fix unitialised buffer

2015-06-29 Thread Bruce Richardson
On Mon, Jun 29, 2015 at 04:20:25PM +0200, Daniel Mrzyglod wrote: > Nature of the problem was not initialised buffer[256], there were probability > that operation system will provide previously used memory and on special > condition > there were probability that string operations will work on rando

[dpdk-dev] [PATCH v3 00/11] ip_pipeline: ip_pipeline application enhancements

2015-06-29 Thread Maciej Gajdzica
This patchset enhances functionality of ip_pipeline application. New config file syntax is introduced, so parser is changed. Changed structure of the application. Now every global variable is stored in app_struct in app.h. Syntax of pipeline cli commands was changed. Implementation of cli commands

[dpdk-dev] [PATCH v3 01/11] ip_pipeline: add parsing for config files with new syntax

2015-06-29 Thread Maciej Gajdzica
From: Pawel Wodkowski New syntax of config files is needed for ip_pipeline example enhancements. Some old files are temporarily disabled in the Makefile. It is part of a bigger change. Signed-off-by: Pawel Wodkowski --- examples/ip_pipeline/Makefile | 17 +- examples/ip_pipeline/app

[dpdk-dev] [PATCH v3 02/11] ip_pipeline: added config checks

2015-06-29 Thread Maciej Gajdzica
From: Jasvinder Singh After loading configuration from a file, data integrity is checked. Signed-off-by: Jasvinder Singh --- examples/ip_pipeline/Makefile |1 + examples/ip_pipeline/config_check.c | 396 +++ examples/ip_pipeline/main.c |2

[dpdk-dev] [PATCH v3 0/8] Dynamic RSS Configuration for Bonding

2015-06-29 Thread Tomasz Kulasek
OVERVIEW 1) Setting .rxmode.mq_mode for bonding device to ETH_MQ_RX_RSS makes bonding device fully RSS-capable, so all slaves are synchronized with its configuration. This mode is intended to provide RSS configuration as known from "dynamic RSS configuration for one port" and made slaves t

[dpdk-dev] [PATCH v3 1/8] bonding: rss dynamic configuration

2015-06-29 Thread Tomasz Kulasek
Bonding device implements independent management of RSS settings. It stores its own copies of settings i.e. RETA, RSS hash function and RSS key. It?s required to ensure consistency. 1) RSS hash function set for bonding device is maximal set of RSS hash functions supported by all bonded devices. Th

[dpdk-dev] [PATCH v3 2/8] ring: dynamic rss configuration

2015-06-29 Thread Tomasz Kulasek
This implementation allows to set and read RSS configuration for ring device, and is used to validate right values propagation over the slaves, in test units for dynamic RSS configuration for bonding. It have no impact on packet processing by ring device. Signed-off-by: Tomasz Kulasek --- drive

[dpdk-dev] [PATCH v3 03/11] ip_pipeline: modified init to match new params struct

2015-06-29 Thread Maciej Gajdzica
After changes in config parser, app params struct is changed and requires modifications in initialization procedures. Signed-off-by: Maciej Gajdzica --- examples/ip_pipeline/Makefile |1 + examples/ip_pipeline/init.c | 1632 ++--- examples/ip_pipeline/ma

[dpdk-dev] [PATCH v3 04/11] ip_pipeline: moved pipelines to separate folder

2015-06-29 Thread Maciej Gajdzica
Moved pipelines to separate folder, removed not needed pipelines and modified Makefile to match that change. Signed-off-by: Maciej Gajdzica --- examples/ip_pipeline/Makefile |9 +- examples/ip_pipeline/pipeline/pipeline_firewall.c | 313 + .../pipeline/pipe

[dpdk-dev] [PATCH v3 3/8] test: dynamic rss configuration

2015-06-29 Thread Tomasz Kulasek
This test module uses ring device to check right RSS configuration propagation. 1) Propagation test a) Set RSS hash function for bonding, fetch RSS hash function from bonded slave, check if same. Do it for all slaves. b) Repeat above for RSS key and RETA. 2)Dynamic adding slave to the bo

[dpdk-dev] [PATCH v3 4/8] bonding: queue stats mapping

2015-06-29 Thread Tomasz Kulasek
Queue stats mapping is used in example application. This patch adds propagation of mapping over the slaves, and fills bonding port's stats with a sum of corresponding values taken from bonded slaves, when stats are requested for bonding port. Signed-off-by: Tomasz Kulasek --- drivers/net/bonding

[dpdk-dev] [PATCH v3 5/8] ring: queue stats mapping set dummy implementation

2015-06-29 Thread Tomasz Kulasek
Per queue statistics are already implemented for ring device, but with static mapping (stat_idx == queue_id). This fix is required, if you want to use ring device in test application and is used only to point that per queue statistics are provided for this device. Signed-off-by: Tomasz Kulasek -

[dpdk-dev] [PATCH v3 6/8] examples: dynamic rss configuration for bonding

2015-06-29 Thread Tomasz Kulasek
This application allows you to test RSS configuration for bonded devices changing configuration dynamically, during receiving packets on slaves and observe the changes in its distribution over queues. After initialization process, all accessible ports are attached to one bonding as slaves. Monito

[dpdk-dev] [PATCH v3 7/8] doc: fixed spellings and typos

2015-06-29 Thread Tomasz Kulasek
Signed-off-by: Tomasz Kulasek --- .../prog_guide/link_bonding_poll_mode_drv_lib.rst |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/guides/prog_guide/link_bonding_poll_mode_drv_lib.rst b/doc/guides/prog_guide/link_bonding_poll_mode_drv_lib.rst index 96e554f..0

[dpdk-dev] [PATCH v3 8/8] doc: dynamic rss configuration for bonding

2015-06-29 Thread Tomasz Kulasek
Documentation update about implementation details and requirements for Dynamic RSS Configuration for Bonding. Signed-off-by: Tomasz Kulasek --- .../prog_guide/link_bonding_poll_mode_drv_lib.rst | 34 ++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/doc/guide

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

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

[dpdk-dev] [PATCH v3 05/11] ip_pipeline: added master pipeline

2015-06-29 Thread Maciej Gajdzica
From: Jasvinder Singh Master pipeline is responsible for command line handling and communicationg with all other pipelines via message queues. Removed cmdline.c file, as its functionality will be split over multiple pipeline files. Signed-off-by: Jasvinder Singh --- examples/ip_pipeline/Makefi

[dpdk-dev] [PATCH v3 06/11] ip_pipeline: added application thread

2015-06-29 Thread Maciej Gajdzica
Application thread runs pipelines on assigned cores. Signed-off-by: Maciej Gajdzica --- examples/ip_pipeline/Makefile |1 + examples/ip_pipeline/main.c |6 +++ examples/ip_pipeline/thread.c | 107 + 3 files changed, 114 insertions(+) create mod

[dpdk-dev] [PATCH v3 07/11] ip_pipeline: moved config files to separate folder

2015-06-29 Thread Maciej Gajdzica
Created new folder for config(.cfg) and script(.sh) files. Signed-off-by: Maciej Gajdzica --- examples/ip_pipeline/config/ip_pipeline.cfg |9 +++ examples/ip_pipeline/config/ip_pipeline.sh |5 ++ examples/ip_pipeline/config/tm_profile.cfg | 105 +++ examples/ip

[dpdk-dev] [PATCH v3 08/11] ip_pipeline: added new implementation of passthrough pipeline

2015-06-29 Thread Maciej Gajdzica
From: Jasvinder Singh Passthrough pipeline implementation is split to two files. pipeline_passthrough.c file handles front-end functions (cli commands parsing) pipeline_passthrough_ops.c contains implementation of functions done by pipeline (back-end). Signed-off-by: Jasvinder Singh --- exampl

[dpdk-dev] [PATCH v3] cfgfile: fix unitialised buffer

2015-06-29 Thread Daniel Mrzyglod
Nature of the problem was not initialised buffer[256], there were probability that operation system will provide previously used memory and on special condition there were probability that string operations will work on random data that could provide unexpected program behaviour. Changes in v3: -

[dpdk-dev] [PATCHv4 4/4] ABI: Add some documentation

2015-06-29 Thread Thomas Monjalon
2015-06-29 09:59, Neil Horman: > People have been asking for ways to use the ABI macros, heres some docs to > clarify their use. Included is: > > * An overview of what ABI is > * Details of the ABI deprecation process > * Details of the versioning macros > * Examples of their use > * Details of h

[dpdk-dev] [PATCH v3 09/11] ip_pipeline: added new implementation of firewall pipeline

2015-06-29 Thread Maciej Gajdzica
From: Daniel Mrzyglod Firewall pipeline implementation is split to two files. pipeline_firewall.c file handles front-end functions (cli commands parsing) pipeline_firewall_ops.c contains implementation of functions done by pipeline (back-end). Signed-off-by: Daniel Mrzyglod --- examples/ip_pip

[dpdk-dev] [PATCH v3 10/11] ip_pipeline: added new implementation of routing pipeline

2015-06-29 Thread Maciej Gajdzica
From: Pawel Wodkowski Routing pipeline implementation is split to two files. pipeline_routing.c file handles front-end functions (cli commands parsing) pipeline_routing_ops.c contains implementation of functions done by pipeline (back-end). Signed-off-by: Pawel Wodkowski --- examples/ip_pipeli

[dpdk-dev] [PATCH v3 11/11] ip_pipeline: added new implementation of flow classification pipeline

2015-06-29 Thread Maciej Gajdzica
Flow classification pipeline implementation is split to two files. pipeline_flow_classification.c file handles front-end functions (cli commands parsing) pipeline_flow_classification_ops.c contains implementation of functions done by pipeline (back-end). Signed-off-by: Maciej Gajdzica --- exampl

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

2015-06-29 Thread Qiu, Michael
On 2015/6/29 19:08, Ananyev, Konstantin wrote: > Hi Michael, > >> -Original Message- >> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Qiu, Michael >> Sent: Monday, June 29, 2015 10:21 AM >> To: Iremonger, Bernard; dev at dpdk.org >> Cc: He, Shaopeng >> Subject: Re: [dpdk-dev] [PAT

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

2015-06-29 Thread Qiu, Michael
On 2015/6/29 22:58, Qiu, Michael wrote: > On 2015/6/29 17:54, Iremonger, Bernard wrote: >>> -Original Message- >>> From: Qiu, Michael >>> Sent: Monday, June 29, 2015 10:21 AM >>> To: Iremonger, Bernard; dev at dpdk.org >>> Cc: Chen, Jing D; He, Shaopeng >>> Subject: Re: [PATCH 1/2 v4] fm10k

[dpdk-dev] [PATCH v3 00/11] ip_pipeline: ip_pipeline application enhancements

2015-06-29 Thread Dumitrescu, Cristian
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Maciej Gajdzica > Sent: Monday, June 29, 2015 3:39 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v3 00/11] ip_pipeline: ip_pipeline application > enhancements > > This patchset enhances functionality o

[dpdk-dev] [PATCH v2] librte_ether: release memory in uninit function.

2015-06-29 Thread Qiu, Michael
On 2015/6/29 18:20, Iremonger, Bernard wrote: > >> -Original Message- >> From: Qiu, Michael >> Sent: Monday, June 29, 2015 9:55 AM >> To: Iremonger, Bernard; dev at dpdk.org >> Cc: Zhang, Helin; Ananyev, Konstantin; mukawa at igel.co.jp; Stephen >> Hemminger >> Subject: Re: [PATCH v2] librt

[dpdk-dev] [PATCH v3 4/8] eal: Consolidate rte_eal_pci_probe/close_one_driver() of linuxapp and bsdapp

2015-06-29 Thread Bruce Richardson
On Mon, Jun 29, 2015 at 11:56:46AM +0900, Tetsuya Mukawa wrote: > From: "Tetsuya.Mukawa" > > This patch consolidates below functions, and implements these in common > eal code. > - rte_eal_pci_probe_one_driver() > - rte_eal_pci_close_one_driver() > > Because pci_map_device() is only implemente

[dpdk-dev] [PATCH v3 0/8] Add Port Hotplug support to BSD

2015-06-29 Thread Bruce Richardson
On Mon, Jun 29, 2015 at 11:56:42AM +0900, Tetsuya Mukawa wrote: > This patch series adds port hotplug support to BSD. > Before applying, following patches should be applied. > - [PATCH v6 1/5] eal: Fix coding style of eal_pci.c and eal_pci_uio.c > - [PATCH v6 2/5] eal: Close file descriptor of ui

[dpdk-dev] Could not achieve wire speed for 40GE with any DPDK version on XL710 NIC's

2015-06-29 Thread Andrew Theurer
On Mon, Jun 29, 2015 at 10:06 AM, Keunhong Lee wrote: > I have not used XL710 or i40e. > I have no opinion for those NICs. > > Keunhong. > > 2015-06-29 15:59 GMT+09:00 Pavel Odintsov : > > > Hello! > > > > Lee, thank you so much for sharing your experience! What do you think > > about 40GE versio

[dpdk-dev] Receiving packets on only one port

2015-06-29 Thread Daeyoung Kim
OK, I see. My program uses RSS. Is it related to my problem? If the testpmd application does not work, the switch configuration might be wrong. Am I right? Thank you for your answer. Regards, Daeyoung 2015-06-29 11:28 GMT-04:00 Keunhong Lee : > Actually I have no idea why this happens. > If you

  1   2   >