[dpdk-dev] [PATCH v6 03/16] fm10k: register fm10k pmd PF driver

2015-02-17 Thread Chen Jing D(Mark)
From: Jeff Shaw 1. Add init function to scan and initialize fm10k PF device. 2. Add implementation to register fm10k pmd PF driver. 3. Add 3 functions fm10k_dev_configure, fm10k_stats_get and fm10k_stats_get. 4. Add fm10k.h to define macros and basic data structure.

[dpdk-dev] [PATCH v6 04/16] config: change config files to add fm10k into compile

2015-02-17 Thread Chen Jing D(Mark)
From: Jeff Shaw 1. Change config/common_bsdapp and config/common_linuxapp, add macros to control fm10k pmd driver compile for linux and bsd. 2. Change lib/Makefile to add fm10k driver into compile list. 3. Change mk/rte.app.mk to add fm10k lib into link.

[dpdk-dev] [PATCH v6 05/16] fm10k: add reta update/requery functions

2015-02-17 Thread Chen Jing D(Mark)
From: Jeff Shaw 1. Add fm10k_reta_update and fm10k_reta_query functions. 2. Add fm10k_link_update and fm10k_dev_infos_get functions. Signed-off-by: Jeff Shaw Signed-off-by: Chen Jing D(Mark) --- lib/librte_pmd_fm10k/fm10k_ethdev.c | 162

[dpdk-dev] [PATCH v6 06/16] fm10k: add Rx queue setup/release function

2015-02-17 Thread Chen Jing D(Mark)
From: Jeff Shaw Add fm10k_rx_queue_setup and fm10k_rx_queue_release functions. Signed-off-by: Jeff Shaw Signed-off-by: Chen Jing D(Mark) --- lib/librte_pmd_fm10k/fm10k_ethdev.c | 254 +++ 1 files changed, 254 insertions(+), 0

[dpdk-dev] [PATCH v6 07/16] fm10k: add Tx queue setup/release function

2015-02-17 Thread Chen Jing D(Mark)
From: Jeff Shaw Add fm10k_tx_queue_setup and fm10k_tx_queue_release functions. Signed-off-by: Jeff Shaw Signed-off-by: Chen Jing D(Mark) --- lib/librte_pmd_fm10k/fm10k_ethdev.c | 205 +++ 1 files changed, 205 insertions(+), 0

[dpdk-dev] [PATCH v6 09/16] fm10k: add dev start/stop functions

2015-02-17 Thread Chen Jing D(Mark)
From: Jeff Shaw 1. Add function to initialize RX queues. 2. Add function to initialize TX queues. 3. Add fm10k_dev_start, fm10k_dev_stop and fm10k_dev_close functions. 4. Add function to close mailbox service. Signed-off-by: Jeff Shaw Signed-off-by: Chen Jing

[dpdk-dev] [PATCH v6 13/16] fm10k: add function to set vlan

2015-02-17 Thread Chen Jing D(Mark)
From: Jeff Shaw Add fm10k_vlan_filter_set to set vlan. Signed-off-by: Jeff Shaw Signed-off-by: Chen Jing D(Mark) --- lib/librte_pmd_fm10k/fm10k_ethdev.c | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git

[dpdk-dev] [PATCH v6 11/16] fm10k: add PF RSS support

2015-02-17 Thread Chen Jing D(Mark)
From: Jeff Shaw 1. Configure RSS in fm10k_dev_rx_init function. 2. Add fm10k_rss_hash_update and fm10k_rss_hash_conf_get to get and inquery RSS configuration. Signed-off-by: Jeff Shaw Signed-off-by: Chen Jing D(Mark) --- lib/librte_pmd_fm10k/fm10k_ethdev.c | 156

[dpdk-dev] [PATCH v6 14/16] fm10k: add SRIOV-VF support

2015-02-17 Thread Chen Jing D(Mark)
From: Jeff Shaw fm10k pmd driver will support both PF and VF device with single copy of code. The reason is NIC maps registers with same function in PF and VF to same PCI I/O address. Then, PF/VF drivers use same address to access registers belonging to it, HW will

[dpdk-dev] [PATCH v6 10/16] fm10k: add receive and tranmit function

2015-02-17 Thread Chen Jing D(Mark)
From: Jeff Shaw 1. Add fm10k_recv_pkts and fm10k_xmit_pkts functions. 2. Link app function pointer to actual fm10k recv/xmit functions. 3. Change Makefile to compile new file fm10k_rxtx.c Signed-off-by: Jeff Shaw Signed-off-by: Chen Jing D(Mark) ---

[dpdk-dev] [PATCH v6 16/16] maintainers: claim for fm10k review

2015-02-17 Thread Chen Jing D(Mark)
From: "Chen Jing D(Mark)" Claim for fm10k polling mode driver review. Signed-off-by: Chen Jing D(Mark) --- MAINTAINERS |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index a771fa3..e7a425b 100644 --- a/MAINTAINERS

[dpdk-dev] [PATCH v6 15/16] fm10k: add PF and VF interrupt handling function

2015-02-17 Thread Chen Jing D(Mark)
From: Jeff Shaw 1. Add functions to enable PF/VF interrupt. 2. Add function to process error message passed from interrupt. 2. Add 2 interrupt handling functions, one for PF and one for VF. 2. Enable interrupt after completing initialization of NIC. Signed-off-by: Jeff

[dpdk-dev] [PATCH v6 12/16] fm10k: add scatter receive function

2015-02-17 Thread Chen Jing D(Mark)
From: Jeff Shaw 1. Add fm10k_recv_scattered_pkts function to receive jumbo frame and multi-segment packets. 2. Configure correct receive function in rx_init and dev_init. Signed-off-by: Jeff Shaw Signed-off-by: Chen Jing D(Mark) --- lib/librte_pmd_fm10k/fm10k.h

[dpdk-dev] [PATCH v2 3/4] examples: example showing use of callbacks.

2015-02-17 Thread Thomas Monjalon
2015-02-17 12:25, Bruce Richardson: > On Mon, Feb 16, 2015 at 06:34:37PM +0100, Thomas Monjalon wrote: > > 2015-02-16 15:16, Bruce Richardson: > > > On Mon, Feb 16, 2015 at 03:33:40PM +0100, Olivier MATZ wrote: > > > > Hi John, > > > > > > > > On 02/13/2015 04:39 PM, John McNamara wrote: > > > >

[dpdk-dev] [PATCH v2 0/2] new headroom stats library and example application

2015-02-17 Thread Pawel Wodkowski
Hi community, I would like to introduce library for measuring load of some arbitrary jobs. It can be used to profile every kind of job sets on any arbitrary execution unit or tasking library. In provided l2fwd-headroom example I demonstrate how to use this library to select optimal rx burst poll

[dpdk-dev] [PATCH v2 3/4] examples: example showing use of callbacks.

2015-02-17 Thread Neil Horman
On Tue, Feb 17, 2015 at 01:50:58PM +, Bruce Richardson wrote: > On Tue, Feb 17, 2015 at 02:28:02PM +0100, Olivier MATZ wrote: > > Hi Bruce, > > > > On 02/17/2015 01:25 PM, Bruce Richardson wrote: > > >On Mon, Feb 16, 2015 at 06:34:37PM +0100, Thomas Monjalon wrote: > > >>2015-02-16 15:16,

[dpdk-dev] [PATCH v2 1/2] librte_headroom: New library for checking core/system/app load

2015-02-17 Thread Pawel Wodkowski
This library provide API to measure time spend in particular parts of code and to calculate optimal polling time. To calculate a those statistics application code need to be devided into parts (called jobs) that do something. It is up to application to decide what is considered a job. Series of

[dpdk-dev] [PATCH] testpmd: initialize rx_fc_en and tx_fc_en to zero

2015-02-17 Thread Pablo de Lara
rx_fc_en and tx_fc_en in cmd_link_flow_ctrl_set_parsed could be used without being initialized. Signed-off-by: Pablo de Lara --- app/test-pmd/cmdline.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index

[dpdk-dev] [PATCH v3 1/5] ethdev: add rx interrupt enable/disable functions

2015-02-17 Thread Neil Horman
On Tue, Feb 17, 2015 at 09:47:15PM +0800, Zhou Danny wrote: > v3 changes > - Add return value for interrupt enable/disable functions > > Add two dev_ops functions to enable and disable rx queue interrupts > > Signed-off-by: Danny Zhou > Tested-by: Yong Liu > --- >

[dpdk-dev] [PATCH v3 1/5] ethdev: add rx interrupt enable/disable functions

2015-02-17 Thread Neil Horman
On Tue, Feb 17, 2015 at 09:47:15PM +0800, Zhou Danny wrote: > v3 changes > - Add return value for interrupt enable/disable functions > > Add two dev_ops functions to enable and disable rx queue interrupts > > Signed-off-by: Danny Zhou > Tested-by: Yong Liu > --- >

[dpdk-dev] kernel: BUG: soft lockup - CPU#1 stuck for 22s! [kni_single:1782]

2015-02-17 Thread Jay Rolette
On Mon, Feb 16, 2015 at 7:00 PM, Matthew Hall wrote: > On Mon, Feb 16, 2015 at 10:33:52AM -0600, Jay Rolette wrote: > > In kni_net_rx_normal(), it was calling netif_receive_skb() instead of > > netif_rx(). The source for netif_receive_skb() point out that it should > > only be called from

[dpdk-dev] [PATCH v2 3/4] examples: example showing use of callbacks.

2015-02-17 Thread Bruce Richardson
On Tue, Feb 17, 2015 at 04:32:01PM +0100, Thomas Monjalon wrote: > 2015-02-17 12:25, Bruce Richardson: > > On Mon, Feb 16, 2015 at 06:34:37PM +0100, Thomas Monjalon wrote: > > > 2015-02-16 15:16, Bruce Richardson: > > > > On Mon, Feb 16, 2015 at 03:33:40PM +0100, Olivier MATZ wrote: > > > > > Hi

[dpdk-dev] [PATCH v3 4/5] eal: add per rx queue interrupt handling based on VFIO

2015-02-17 Thread Neil Horman
On Tue, Feb 17, 2015 at 09:47:18PM +0800, Zhou Danny wrote: > v3 changes: > - Fix review comments > > v2 changes: > - Fix compilation issue for a missed header file > - Bug fix: free unreleased resources on the exception path before return > - Consolidate coding style related review comments > >

[dpdk-dev] [PATCH v2 2/2] examples: introduce new l2fwd-headroom example

2015-02-17 Thread Pawel Wodkowski
This app demonstrate usage of new headroom library. It is basicaly orginal l2fwd with following modificantions to met headroom library requirements: - main_loop() was split into two jobs: forward job and flush job. Logic for those jobs is almost the same as in orginal application. - stats is moved

[dpdk-dev] Patches outstanding

2015-02-17 Thread Thomas Monjalon
2015-02-17 10:35, Stephen Hemminger: > There are currently 1039 patches outstanding on DPDK. > What is the schedule for getting these merged or resolved? Several patches are ready to be applied in coming days. Many patches are still waiting for closing discussions. > I don't think it would be

[dpdk-dev] [PATCH v2 3/4] examples: example showing use of callbacks.

2015-02-17 Thread Bruce Richardson
On Tue, Feb 17, 2015 at 10:49:24AM -0500, Neil Horman wrote: > On Tue, Feb 17, 2015 at 01:50:58PM +, Bruce Richardson wrote: > > On Tue, Feb 17, 2015 at 02:28:02PM +0100, Olivier MATZ wrote: > > > Hi Bruce, > > > > > > On 02/17/2015 01:25 PM, Bruce Richardson wrote: > > > >On Mon, Feb 16,

[dpdk-dev] [PATCH v2 6/7] rte_sched: eliminate floating point in calculating byte clock

2015-02-17 Thread Stephen Hemminger
On Mon, 16 Feb 2015 22:44:31 + "Dumitrescu, Cristian" wrote: > Hi Stephen, > > Sorry, NACK. > > 1. Overflow issue > As you declare cycles_per_byte as uint32_t, for a CPU frequency of 2-3 GHz, > the line of code below results in overflow: > port->cycles_per_byte = (rte_get_tsc_hz()

[dpdk-dev] [PATCH v2 3/4] examples: example showing use of callbacks.

2015-02-17 Thread Neil Horman
On Tue, Feb 17, 2015 at 04:00:56PM +, Bruce Richardson wrote: > On Tue, Feb 17, 2015 at 10:49:24AM -0500, Neil Horman wrote: > > On Tue, Feb 17, 2015 at 01:50:58PM +, Bruce Richardson wrote: > > > On Tue, Feb 17, 2015 at 02:28:02PM +0100, Olivier MATZ wrote: > > > > Hi Bruce, > > > > > >

[dpdk-dev] [PATCH v8 12/14] eal/pci: Add rte_eal_dev_attach/detach() functions

2015-02-17 Thread Maxime Leroy
Hi Tetsuya, On Tue, Feb 17, 2015 at 9:51 AM, Tetsuya Mukawa wrote: > > > >> +/* get port_id enabled by above procedures */ > >> +if (rte_eth_dev_get_changed_port(devs, _port_id)) > >> +goto err2; > > [...] > > > >> /** > >> + * Uninitilization function called for each device

[dpdk-dev] [PATCH v2 3/4] examples: example showing use of callbacks.

2015-02-17 Thread Bruce Richardson
On Tue, Feb 17, 2015 at 11:08:10AM -0500, Neil Horman wrote: > On Tue, Feb 17, 2015 at 04:00:56PM +, Bruce Richardson wrote: > > On Tue, Feb 17, 2015 at 10:49:24AM -0500, Neil Horman wrote: > > > On Tue, Feb 17, 2015 at 01:50:58PM +, Bruce Richardson wrote: > > > > On Tue, Feb 17, 2015 at

[dpdk-dev] [PATCH v3 1/2] pmd: enable DCB in SRIOV

2015-02-17 Thread Pawel Wodkowski
This patch enables DCB in SRIOV mode for ixgbe (Niantic) driver. Signed-off-by: Pawel Wodkowski --- lib/librte_pmd_ixgbe/ixgbe_ethdev.c | 2 +- lib/librte_pmd_ixgbe/ixgbe_pf.c | 19 ++- lib/librte_pmd_ixgbe/ixgbe_rxtx.c | 7 +++ 3 files changed, 14 insertions(+), 14

[dpdk-dev] [PATCH v3 0/2] new headroom stats library and example application

2015-02-17 Thread Pawel Wodkowski
Hi community, I would like to introduce library for measuring load of some arbitrary jobs. It can be used to profile every kind of job sets on any arbitrary execution unit or tasking library. In provided l2fwd-headroom example I demonstrate how to use this library to select optimal rx burst poll

[dpdk-dev] testpmd app issues

2015-02-17 Thread Jeff Wang
Hi, I'm new to DPDK. I have gone through the user guide, set up environment, hugepages. I can get the helloworld app work. Now, when I tried to play with the testpmd app, I got the following issue: [root at localhost dpdk-1.8.0]# build/app/testpmd -c 0x2 -n1 -- -i --nb-cores=1 --nb-ports=0x1

[dpdk-dev] [PATCH v3 2/2] tespmd: fix DCB in SRIOV mode support

2015-02-17 Thread Pawel Wodkowski
This patch incorporate fixes to support DCB in SRIOV mode for testpmd. Signed-off-by: Pawel Wodkowski --- app/test-pmd/cmdline.c | 4 ++-- app/test-pmd/testpmd.c | 39 +-- app/test-pmd/testpmd.h | 10 -- 3 files changed, 31 insertions(+), 22

[dpdk-dev] [PATCH v3 0/2] new headroom stats library and example application

2015-02-17 Thread Wodkowski, PawelX
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Pawel Wodkowski > Sent: Tuesday, February 17, 2015 5:20 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v3 0/2] new headroom stats library and example > application > > Hi community, > I would like to

[dpdk-dev] testpmd app issues

2015-02-17 Thread Bruce Richardson
On Tue, Feb 17, 2015 at 09:31:33AM -0700, Jeff Wang wrote: > Hi, > > I'm new to DPDK. > > I have gone through the user guide, set up environment, hugepages. I can > get the helloworld app work. Now, when I tried to play with the testpmd > app, I got the following issue: > > [root at localhost

[dpdk-dev] [PATCH v4 0/2] new headroom stats library and example application

2015-02-17 Thread Pawel Wodkowski
Hi community, I would like to introduce library for measuring load of some arbitrary jobs. It can be used to profile every kind of job sets on any arbitrary execution unit or tasking library. In provided l2fwd-headroom example I demonstrate how to use this library to select optimal rx burst poll

[dpdk-dev] [PATCH v4 1/2] librte_headroom: New library for checking core/system/app load

2015-02-17 Thread Pawel Wodkowski
This library provide API to measure time spend in particular parts of code and to calculate optimal polling time. To calculate a those statistics application code need to be devided into parts (called jobs) that do something. It is up to application to decide what is considered a job. Series of

[dpdk-dev] [PATCH v4 2/2] examples: introduce new l2fwd-headroom example

2015-02-17 Thread Pawel Wodkowski
This app demonstrate usage of new headroom library. It is basicaly orginal l2fwd with following modificantions to met headroom library requirements: - main_loop() was split into two jobs: forward job and flush job. Logic for those jobs is almost the same as in orginal application. - stats is moved

[dpdk-dev] [PATCH v2 3/4] examples: example showing use of callbacks.

2015-02-17 Thread Neil Horman
On Tue, Feb 17, 2015 at 04:15:09PM +, Bruce Richardson wrote: > On Tue, Feb 17, 2015 at 11:08:10AM -0500, Neil Horman wrote: > > On Tue, Feb 17, 2015 at 04:00:56PM +, Bruce Richardson wrote: > > > On Tue, Feb 17, 2015 at 10:49:24AM -0500, Neil Horman wrote: > > > > On Tue, Feb 17, 2015 at

[dpdk-dev] Patches outstanding

2015-02-17 Thread Stephen Hemminger
There are currently 1039 patches outstanding on DPDK. What is the schedule for getting these merged or resolved? I don't think it would be reasonable to declare 2.0 as done until the patch backlog is 0!

<    1   2