[dpdk-dev] [PATCH 0/3] Some misc fixes and optimization for the mpipe driver

2015-12-15 Thread Liming Sun
. Move the mpipe link initialization to an earlier place to support link management APIs. Liming Sun (3): driver/net/mpipe: support native build on tilegx platform. driver/net/mpipe: optimize mpipe buffer return mechanism. driver/net/mpipe: fix a mpipe link initialization ordering issue

[dpdk-dev] [PATCH 1/3] driver/net/mpipe: support native build on tilegx platform.

2015-12-15 Thread Liming Sun
This submit updates the CROSS setting to support native build on TileGx platform. It also enable the combined library by default. Signed-off-by: Liming Sun --- MAINTAINERS |3 ++- config/defconfig_tile-tilegx-linuxapp-gcc |4 mk/arch/tile/rte.vars.mk

[dpdk-dev] [PATCH 2/3] driver/net/mpipe: optimize mpipe buffer return mechanism.

2015-12-15 Thread Liming Sun
save two MMIO writes and improves performance especially for bidirectional traffic case. Signed-off-by: Liming Sun --- drivers/net/mpipe/mpipe_tilegx.c | 50 ++--- 1 files changed, 40 insertions(+), 10 deletions(-) diff --git a/drivers/net/mpipe/mpipe_tilegx.c b

[dpdk-dev] [PATCH 3/3] driver/net/mpipe: fix a mpipe link initialization ordering issue

2015-12-15 Thread Liming Sun
() in rte_pmd_mpipe_devinit(). Signed-off-by: Liming Sun --- drivers/net/mpipe/mpipe_tilegx.c | 14 +++--- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/net/mpipe/mpipe_tilegx.c b/drivers/net/mpipe/mpipe_tilegx.c index be7b6f2..5845511 100644 --- a/drivers/net/mpipe

[dpdk-dev] [PATCH 0/2] Some enhancement of the tilegx mpipe driver

2015-12-22 Thread Liming Sun
1. Implement rte_vect.h and enable LPM lookup; 2. It also has some code cleanup and fixes for potential crash when quiting pmd under high traffic; 3. Changes have dependency on serie (http://dpdk.org/dev/patchwork/patch/9571) which is pending in the patchwork queue. Liming Sun (2): driver

[dpdk-dev] [PATCH 1/2] driver/net/mpipe: add rte_vect.h and enable CONFIG_RTE_LIBRTE_LPM

2015-12-22 Thread Liming Sun
/mpipe_dp_exit to avoid the unnecessary memory fence. Signed-off-by: Liming Sun --- config/defconfig_tile-tilegx-linuxapp-gcc |2 +- drivers/net/mpipe/mpipe_tilegx.c | 18 +++- lib/librte_eal/common/include/arch/tile/rte_vect.h | 93 3 files

[dpdk-dev] [PATCH 2/2] driver/net/mpipe: fix the crash/hung issue when testpmd quits

2015-12-22 Thread Liming Sun
-by: Liming Sun --- drivers/net/mpipe/mpipe_tilegx.c | 46 +++- .../common/include/arch/tile/rte_rwlock.h |1 + 2 files changed, 17 insertions(+), 30 deletions(-) diff --git a/drivers/net/mpipe/mpipe_tilegx.c b/drivers/net/mpipe/mpipe_tilegx.c

[dpdk-dev] [PATCH v2 1/3] driver/net/mpipe: support native build on tilegx platform.

2016-01-08 Thread Liming Sun
This submit updates the CROSS setting to support native build on TileGx platform. It also enable the combined library by default. Signed-off-by: Liming Sun Acked-by: Zhigang Lu --- MAINTAINERS | 3 ++- config/defconfig_tile-tilegx-linuxapp-gcc | 4 mk/arch

[dpdk-dev] [PATCH v2 3/3] driver/net/mpipe: fix a mpipe link initialization ordering issue

2016-01-08 Thread Liming Sun
() in rte_pmd_mpipe_devinit(). Signed-off-by: Liming Sun Acked-by: Zhigang Lu --- drivers/net/mpipe/mpipe_tilegx.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/net/mpipe/mpipe_tilegx.c b/drivers/net/mpipe/mpipe_tilegx.c index be7b6f2..5845511 100644 --- a/drivers

[dpdk-dev] [PATCH v2 1/2] driver/net/mpipe: add rte_vect.h and enable CONFIG_RTE_LIBRTE_LPM

2016-01-08 Thread Liming Sun
/mpipe_dp_exit to avoid the unnecessary memory fence. Signed-off-by: Liming Sun Acked-by: Zhigang Lu --- config/defconfig_tile-tilegx-linuxapp-gcc | 2 +- drivers/net/mpipe/mpipe_tilegx.c | 18 +++-- lib/librte_eal/common/include/arch/tile/rte_vect.h | 93

[dpdk-dev] [PATCH v2 2/2] driver/net/mpipe: fix the crash/hung issue when testpmd quits

2016-01-08 Thread Liming Sun
-by: Liming Sun Acked-by: Zhigang Lu --- drivers/net/mpipe/mpipe_tilegx.c | 46 -- .../common/include/arch/tile/rte_rwlock.h | 1 + 2 files changed, 17 insertions(+), 30 deletions(-) diff --git a/drivers/net/mpipe/mpipe_tilegx.c b/drivers/net/mpipe

[dpdk-dev] [PATCH v2 1/3] driver/net/mpipe: support native build on tilegx platform.

2016-02-09 Thread Liming Sun
Thanks Thomas for the comments. Please see the response inline. Thanks, Liming -Original Message- From: Thomas Monjalon [mailto:thomas.monja...@6wind.com] Sent: Tuesday, February 09, 2016 11:16 AM To: Liming Sun Cc: dev at dpdk.org; bruce.richardson at intel.com Subject: Re: [dpdk-dev

[dpdk-dev] [PATCH v2 1/2] driver/net/mpipe: add rte_vect.h and enable CONFIG_RTE_LIBRTE_LPM

2016-02-09 Thread Liming Sun
Make sense. I'll split them into different patches. Thanks! Liming -Original Message- From: Bruce Richardson [mailto:bruce.richard...@intel.com] Sent: Tuesday, February 09, 2016 10:56 AM To: Liming Sun Cc: dev at dpdk.org Subject: Re: [dpdk-dev] [PATCH v2 1/2] driver/net/mpipe: add

[dpdk-dev] [PATCH v2 1/3] driver/net/mpipe: support native build on tilegx platform.

2016-02-09 Thread Liming Sun
nja...@6wind.com> Sent: Tuesday, February 9, 2016 3:33 PM To: Liming Sun Cc: dev at dpdk.org; bruce.richardson at intel.com Subject: Re: [dpdk-dev] [PATCH v2 1/3] driver/net/mpipe: support native build on tilegx platform. 2016-02-09 18:37, Liming Sun: > From: Thomas Monjalon [mailto:thomas

[dpdk-dev] [PATCH v3 1/2] eal/tile: add rte_vect.h and enable CONFIG_RTE_LIBRTE_LPM

2016-02-09 Thread Liming Sun
rte_vect.h was missing earlier thus LPM was disabled and l3fwd is not able to compile. This commit implements the vector api and enable LPM in the tilegx configuration by default. Signed-off-by: Liming Sun Acked-by: Zhigang Lu --- config/defconfig_tile-tilegx-linuxapp-gcc | 2 +- lib

[dpdk-dev] [PATCH v3 2/2] driver/net/mpipe: some code optimization

2016-02-09 Thread Liming Sun
This commit includes two small code optimization. 1. use __insn_fetchadd4() instead of rte_atomic32_xxx() in mpipe_dp_enter/mpipe_dp_exit to avoid the nnecessary memory fence. 2. replace the calling of rte_pktmbuf_reset() in mpipe_recv_mbuf() with specific code to avoid some duplicated

[dpdk-dev] [PATCH v4 1/2] eal/tile: add rte_vect.h and enable CONFIG_RTE_LIBRTE_LPM

2016-02-09 Thread Liming Sun
rte_vect.h was missing earlier thus LPM was disabled and l3fwd is not able to compile. This commit implements the vector api and enable LPM in the tilegx configuration by default. Signed-off-by: Liming Sun Acked-by: Zhigang Lu --- config/defconfig_tile-tilegx-linuxapp-gcc | 2 +- lib

[dpdk-dev] [PATCH v4 2/2] driver/net/mpipe: some code optimization

2016-02-09 Thread Liming Sun
initializations. Signed-off-by: Liming Sun Acked-by: Zhigang Lu --- drivers/net/mpipe/mpipe_tilegx.c | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/drivers/net/mpipe/mpipe_tilegx.c b/drivers/net/mpipe/mpipe_tilegx.c index 5845511..8d006fa 100644

[dpdk-dev] [PATCH v3] driver/net/mpipe: fix the crash/hung issue when testpmd quits

2016-02-10 Thread Liming Sun
bit in mpipe_recv_flush() to make sure buffer is valid before releasing it. This is to avoid issues when running out of buffers. 3. priv->rx_buffers counter is not accurate when HW buffer return is used. Remove this counter to simplify the code. Signed-off-by: Liming Sun Acked-by: Zhig

[dpdk-dev] [PATCH v2 2/2] driver/net/mpipe: fix the crash/hung issue when testpmd quits

2016-02-10 Thread Liming Sun
...@intel.com] Sent: Tuesday, February 09, 2016 10:59 AM To: Liming Sun Cc: dev at dpdk.org Subject: Re: [dpdk-dev] [PATCH v2 2/2] driver/net/mpipe: fix the crash/hung issue when testpmd quits On Fri, Jan 08, 2016 at 09:39:08AM -0500, Liming Sun wrote: > 1. Fixed the compiling issue of the ethtool exam

[dpdk-dev] [PATCH v2 1/2] driver/net/mpipe: add rte_vect.h and enable CONFIG_RTE_LIBRTE_LPM

2016-02-10 Thread Liming Sun
AM To: Liming Sun Cc: dev at dpdk.org Subject: Re: [dpdk-dev] [PATCH v2 1/2] driver/net/mpipe: add rte_vect.h and enable CONFIG_RTE_LIBRTE_LPM On Fri, Jan 08, 2016 at 09:39:07AM -0500, Liming Sun wrote: > rte_vect.h was missing earlier thus LPM was disabled and l3fwd is not > able to c