[dpdk-dev] DPDK techboard minutes of July 05

2017-07-09 Thread Yuanhan Liu
Hi all, Here is the meeting notes for the last DPDK technical board meeting held on 2017-07-05. Member attendees: - Hemant Agrawal - Jan Blunck - Jerin Jacob - Olivier Matz - Stephen Hemminger - Thomas Monjalon - Yuanhan Liu 0. Release blocking issues No major issues, but as always, we lack

Re: [dpdk-dev] [PATCH 2/2] testpmd: give more hint on invalid RETA size

2017-07-09 Thread Yuanhan Liu
On Mon, Jul 10, 2017 at 01:19:06AM +, Wu, Jingjing wrote: > > -Original Message- > > From: Yuanhan Liu [mailto:y...@fridaylinux.org] > > Subject: [PATCH 2/2] testpmd: give more hint on invalid RETA size > > > > Print the valid RTE size range so t

Re: [dpdk-dev] [PATCH v10 20/20] ethdev: add control interface support

2017-07-07 Thread Yuanhan Liu
On Tue, Jul 04, 2017 at 05:13:37PM +0100, Ferruh Yigit wrote: > @@ -157,8 +164,12 @@ rte_eth_dev_pci_generic_probe(struct rte_pci_device > *pci_dev, > > RTE_FUNC_PTR_OR_ERR_RET(*dev_init, -EINVAL); > ret = dev_init(eth_dev); > - if (ret) > + if (ret) { > rte_eth

Re: [dpdk-dev] [PATCH 0/2] virtio fix false offload claims

2017-07-07 Thread Yuanhan Liu
On Fri, Jul 07, 2017 at 12:52:48PM -0700, Stephen Hemminger wrote: > While doing code for Hyper-V, noticed that the virtio driver was > confused about receive versus transmit offloads. The virtio > checksum offload is L4 (TCP/UDP) only, not IPv4. Also, TSO > and LRO are not the same. > > This may

Re: [dpdk-dev] [PATCH v3] examples/vhost: introduce a new vhost-user-scsi sample application

2017-07-07 Thread Yuanhan Liu
On Fri, Jul 07, 2017 at 02:21:28PM +0200, Thomas Monjalon wrote: > 08/07/2017 07:21, Changpeng Liu: > > MAINTAINERS | 2 + > > doc/guides/sample_app_ug/vhost_scsi.rst | 110 +++ > > examples/Makefile | 2 +- > > examples/vhost_scsi/Makefile

Re: [dpdk-dev] [PATCH v3] examples/vhost: introduce a new vhost-user-scsi sample application

2017-07-07 Thread Yuanhan Liu
On Fri, Jul 07, 2017 at 02:10:57PM +0530, Hemant Agrawal wrote: > On 7/7/2017 10:37 AM, Yuanhan Liu wrote: > >On Sat, Jul 08, 2017 at 01:21:37PM +0800, Changpeng Liu wrote: > >>vhost-user protocol is common to many virtio devices, such as > >>virtio_net/virtio_scsi/v

[dpdk-dev] [PATCH 2/2] testpmd: give more hint on invalid RETA size

2017-07-06 Thread Yuanhan Liu
Print the valid RTE size range so that user knows what goes wrong. Signed-off-by: Yuanhan Liu --- app/test-pmd/cmdline.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index c8faef9..d32a1df 100644 --- a/app/test-pmd

[dpdk-dev] [PATCH 1/2] testpmd: allow to query any RETA size

2017-07-06 Thread Yuanhan Liu
Currently, testpmd just allows to query the RETA info only when the required size equals to configured RETA size. This patch allows to query any RETA size <= the configured size. This helps when the RETA size is big (say 512) and when I just want to peak few RETA entries. Signed-off-by: Yuan

Re: [dpdk-dev] [PATCH v3] examples/vhost: introduce a new vhost-user-scsi sample application

2017-07-06 Thread Yuanhan Liu
On Sat, Jul 08, 2017 at 01:21:37PM +0800, Changpeng Liu wrote: > vhost-user protocol is common to many virtio devices, such as > virtio_net/virtio_scsi/virtio_blk. Since DPDK vhost library > removed the NET specific data structures, the vhost library > is common to other virtio devices, such as vir

Re: [dpdk-dev] [PATCH v2] examples/vhost: introduce a new vhost-user-scsi sample application

2017-07-06 Thread Yuanhan Liu
On Sat, Jul 08, 2017 at 12:14:51PM +0800, Changpeng Liu wrote: > +.. note:: > +You must check whether your Qemu can support "vhost-user-scsi" or not, > +Qemu v2.9.50 or newer version is required. QEMU v2.9.50 looks like a stable version, and I don't think they will backport new features on

Re: [dpdk-dev] [PATCH] examples/vhost: introduce a new vhost-user-scsi sample application

2017-07-06 Thread Yuanhan Liu
On Fri, Jul 07, 2017 at 02:00:38AM +, Liu, Changpeng wrote: > > > > -Original Message- > > From: Yuanhan Liu [mailto:y...@fridaylinux.org] > > Sent: Friday, July 7, 2017 8:51 AM > > To: Liu, Changpeng > > Cc: dev@dpdk.org > > Subject: R

Re: [dpdk-dev] [PATCH] examples/vhost: introduce a new vhost-user-scsi sample application

2017-07-06 Thread Yuanhan Liu
On Thu, Jun 29, 2017 at 05:28:32PM +0800, Changpeng Liu wrote: > +.. note:: > +You must check whether you Qemu can support "vhost-user-scsi" or not, > +the latest Qemu code is recommended. You should specify the least QEMU version that supports vhost-user scsi here. > + > +Common Issues >

Re: [dpdk-dev] [PATCH] vhost: print the reason on numa node obtaining failure

2017-07-06 Thread Yuanhan Liu
On Thu, Jul 06, 2017 at 04:30:43PM +0300, Ilya Maximets wrote: > syscall always returns '-1' on failure and there is no point > in printing that value. 'errno' is much more informative. > > Fixes: 586e39001317 ("vhost: export numa node") > > Signed-off-by: Ilya Maximets Applied to dpdk-next-vir

Re: [dpdk-dev] [PATCH] net/virtio: fix the wrong comment

2017-07-04 Thread Yuanhan Liu
On Fri, Jun 23, 2017 at 12:14:45AM -0400, Yong Wang wrote: > Since "rte_eal_dev_init()" has been removed, the comment referred to > it should be modified simultaneously. > > Signed-off-by: Yong Wang Applied to dpdk-next-virtio. Thanks. --yliu

Re: [dpdk-dev] [PATCH] net/virtio-user: fix crash when detaching device

2017-07-04 Thread Yuanhan Liu
On Fri, Jun 23, 2017 at 08:41:37AM -0400, Allain Legacy wrote: > The rte_eth_dev.data pointer is set to a reference to a static table. > Attempting to rte_free() it leads to a panic. For example, the > following commands result in a panic if run in testpmd > > testpmd> port attach virtio_user0,

Re: [dpdk-dev] [PATCH 2/3] vhost: check return values of pthread_* calls

2017-07-04 Thread Yuanhan Liu
On Tue, Jul 04, 2017 at 10:50:42AM +0200, Jens Freimann wrote: > +out_mutex: > + if (pthread_mutex_destroy(&vsocket->conn_mutex)) > + RTE_LOG(ERR, VHOST_CONFIG, > + "error: failed to destroy connection mutex\n"); One minor comment though: {} should be used for o

Re: [dpdk-dev] [PATCH 0/3] vhost: small cleanups

2017-07-04 Thread Yuanhan Liu
On Tue, Jul 04, 2017 at 10:50:40AM +0200, Jens Freimann wrote: > This series is a bunch of small cleanups regarding checking return values etc. Series applied to dpdk-next-virtio. You probably need update your script (if you are using one) about my email address. Thanks. --yliu

Re: [dpdk-dev] [PATCH v10 2/3] lib/gro: add TCP/IPv4 GRO support

2017-07-04 Thread Yuanhan Liu
Again, just some quick comments after a glimpse. On Sat, Jul 01, 2017 at 07:08:42PM +0800, Jiayu Hu wrote: > + for (i = 0; i < nb_pkts; i++) { > + if (RTE_ETH_IS_IPV4_HDR(pkts[i]->packet_type) && > + (pkts[i]->packet_type & RTE_PTYPE_L4_TCP)) { > +

Re: [dpdk-dev] [PATCH v10 1/3] lib: add Generic Receive Offload API framework

2017-07-04 Thread Yuanhan Liu
Haven't looked at the details yet, and below are some quick comments after a glimpse. On Sat, Jul 01, 2017 at 07:08:41PM +0800, Jiayu Hu wrote: ... > +void *rte_gro_tbl_create(const > + const struct rte_gro_param *param) The DPDK style is: void * rte_gro_tbl_destroy(...) Also you sh

Re: [dpdk-dev] [PATCH v10 1/3] lib: add Generic Receive Offload API framework

2017-07-04 Thread Yuanhan Liu
On Mon, Jul 03, 2017 at 05:56:20AM +, Hu, Jiayu wrote: > > > +/** > > > + * GRO table, which is used to merge packets. It keeps many reassembly > > > + * tables of desired GRO types. Applications need to create GRO tables > > > + * before using rte_gro_reassemble to perform GRO. > > > + */ > >

[dpdk-dev] next techboard meeting (5th, July)

2017-07-03 Thread Yuanhan Liu
Hi all, The next meeting of the techboard will happen on IRC #dpdk-board, at 3pm UTC, this Wednesday 5th of July. The agenda is updated here: https://annuel.framapad.org/p/r.0c3cc4d1e011214183872a98f6b5c7db For your convenience, I copied it here. 0. Release blocking issues?

Re: [dpdk-dev] [PATCH] vhost: fix MTU device feature check

2017-07-01 Thread Yuanhan Liu
On Thu, Jun 29, 2017 at 08:01:45AM +, Tan, Jianfeng wrote: > > > > -Original Message- > > From: Maxime Coquelin [mailto:maxime.coque...@redhat.com] > > Sent: Thursday, June 29, 2017 3:58 PM > > To: dev@dpdk.org; y...@fridaylinux.org > > Cc: i.dyu...@samsung.com; Tan, Jianfeng; sta...@

Re: [dpdk-dev] [PATCH] vhost: fix checking of device features

2017-07-01 Thread Yuanhan Liu
On Wed, Jun 28, 2017 at 03:40:31PM +0300, Ivan Dyukov wrote: > To compare enabled features in current device we must use bit > mask instead of bit position. > > CC: sta...@dpdk.org > Fixes: c843af3aa13e ("vhost: access header only") > > Signed-off-by: Ivan Dyukov Applied to dpdk-next-virtio. T

Re: [dpdk-dev] [PATCH v2] doc: update virtio vring size and virtio_header size

2017-07-01 Thread Yuanhan Liu
On Fri, Jun 30, 2017 at 02:43:47PM +, Mcnamara, John wrote: > > > > -Original Message- > > From: Yang, Zhiyong > > Sent: Thursday, May 11, 2017 3:17 AM > > To: dev@dpdk.org > > Cc: Mcnamara, John ; yuanhan@linux.intel.com; > > maxime.coque...@redhat.com; Yang, Zhiyong > > Subject

Re: [dpdk-dev] [PATCH 1/2] vhost: fix TCP csum not set

2017-07-01 Thread Yuanhan Liu
P csum. > > > >Fixes: 859b480d5afd ("vhost: add guest offload setting") > >Cc: sta...@dpdk.org > > > >Cc: Yuanhan Liu > >Cc: Maxime Coquelin > >Cc: Jiayu Hu > >Signed-off-by: Jianfeng Tan > > Reviewed-by: Maxime Coquelin Series applied to dpdk-next-virtio. Thanks! --yliu

Re: [dpdk-dev] [PATCH] vhost: clean up per-socket mutex

2017-07-01 Thread Yuanhan Liu
On Wed, Jun 14, 2017 at 10:19:53AM +0200, Jens Freimann wrote: > On Mon, Jun 12, 2017 at 02:29:04PM -0700, Daniel Verkamp wrote: > > vsocket->conn_mutex was allocated with pthread_mutex_init() but never > > freed with pthread_mutex_destroy(). This is a potential memory leak, > > depending on how p

[dpdk-dev] [dpdk-announce] DPDK 17.05.1 released

2017-06-30 Thread Yuanhan Liu
Tx buffer Yuanhan Liu (2): vhost: fix crash on NUMA version: 17.05.1

[dpdk-dev] 17.05.1 patches review and test

2017-06-22 Thread Yuanhan Liu
dundant free of Tx buffer Yuanhan Liu (1): vhost: fix crash on NUMA

Re: [dpdk-dev] [PATCH v2] test/test_mbuf: remove mempool global var

2017-06-20 Thread Yuanhan Liu
On Tue, Jun 20, 2017 at 09:35:07AM +0200, Thomas Monjalon wrote: > 20/06/2017 06:14, santosh: > > On Tuesday 20 June 2017 02:07 AM, Thomas Monjalon wrote: > > > > > 08/06/2017 16:28, Santosh Shukla: > > >> Let test_mbuf alloc and free mempool. > > >> > > >> Cc: sta...@dpdk.org > > >> Signed-off-by

[dpdk-dev] [git pull] virtio changes for 17.08-rc1

2017-06-16 Thread Yuanhan Liu
vhost: fix memory leak vhost: added error log for badly negotiated features Jens Freimann (1): vhost: check malloc return value when allocating guest pages Tiwei Bie (1): net/virtio: zero the whole memory zone Yuanhan Liu (1): vhost: fix crash on NUMA Zhihong Wang (1

Re: [dpdk-dev] [PATCH] vhost: added error log in vhost_user_set_features

2017-06-16 Thread Yuanhan Liu
On Fri, Jun 16, 2017 at 04:32:05PM +0200, Dariusz Stojaczyk wrote: > Since vhost_user_set_features failure is not handled in any way, a > single error log has been added to at least to let the user know that > something has gone wrong. Indeed. And applied to dpdk-next-virtio. Thanks. --y

Re: [dpdk-dev] [PATCH] virtio: fix PCI config err handling

2017-06-12 Thread Yuanhan Liu
On Mon, Jun 05, 2017 at 04:44:33PM +0100, Brian Russell wrote: > In virtio_read_caps, rte_pci_read_config returns the number of bytes > read from PCI config or <0 on error. > If less than the expected number of bytes are read then log the > failure and return rather than carrying on with garbage. >

Re: [dpdk-dev] [PATCH] net/virtio: zero the whole memory zone

2017-06-12 Thread Yuanhan Liu
On Mon, Jun 12, 2017 at 12:34:30PM +0800, Tiwei Bie wrote: > Zero the whole memory zone instead of the first few bytes. > > Fixes: c1f86306a026 ("virtio: add new driver") > Cc: sta...@dpdk.org > > Signed-off-by: Tiwei Bie > --- > drivers/net/virtio/virtio_ethdev.c | 2 +- > 1 file changed, 1 in

Re: [dpdk-dev] [PATCH v2 1/2] net/i40e: optimize vxlan parsing function

2017-06-06 Thread Yuanhan Liu
On Thu, Jun 01, 2017 at 02:56:30PM +0800, Beilei Xing wrote: > This commit optimizes vxlan parsing function. How? --yliu > Signed-off-by: Beilei Xing > --- > drivers/net/i40e/i40e_flow.c | 176 > ++- > 1 file changed, 55 insertions(+), 121 delet

Re: [dpdk-dev] [dpdk-stable] [PATCH] vhost: fix crash on NUMA

2017-06-03 Thread Yuanhan Liu
On Fri, Jun 02, 2017 at 10:20:38AM +0200, Jens Freimann wrote: > On Fri, Jun 02, 2017 at 08:14:46AM +0800, Yuanhan Liu wrote: > > The queue allocation was changed, from allocating one queue-pair at a > > time to one queue at a time. Most of the changes have been done, but > >

[dpdk-dev] [PATCH] maintainers: update email address

2017-06-02 Thread Yuanhan Liu
Signed-off-by: Yuanhan Liu --- - I left Intel today. --- MAINTAINERS | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index afb4cab..f6095ef 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -424,7 +424,7 @@ F: doc/guides/nics/vmxnet3.rst F: doc

[dpdk-dev] [dpdk-announce] DPDK 17.02.1 released

2017-06-02 Thread Yuanhan Liu
oh (3): net/mlx5: fix reusing Rx/Tx queues net/mlx5: fix index handling for Tx ring net/mlx5: fix rollback when starting device Yuanhan Liu (5): vhost: fix multiple queue not enabled for old kernels vhost: fix max queues vhost: fix fd leaks for vhost-user server

Re: [dpdk-dev] [RFC] proposal of allowing personal/project repos on DPDK.org

2017-06-01 Thread Yuanhan Liu
On Thu, Jun 01, 2017 at 09:36:39AM +, Dumitrescu, Cristian wrote: > > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Tiwei Bie > > Hello everyone, > > > > We'd like to make a proposal of making DPDK.org allow hosting > > some personal/project repos, which could be very useful when > > so

[dpdk-dev] [PATCH] vhost: fix crash on NUMA

2017-06-01 Thread Yuanhan Liu
, crash may happen. Fix it by specifying the right copy size. Also, the net queue macros are not used any more. Remove them. Fixes: ab4d7b9f1afc ("vhost: turn queue pair to vring") Cc: sta...@dpdk.org Reported-by: Ciara Loftus Signed-off-by: Yuanhan Liu --- lib/librte_vhost/vhost_user.c |

[dpdk-dev] [dpdk-announce] DPDK 16.11.2 (LTS) released

2017-05-31 Thread Yuanhan Liu
Wang (2): net/fm10k: fix pointer cast net/virtio: fix queue notify Yong Wang (2): net/e1000/base: fix multicast setting in VF net/ena: fix return of hash control flushing Yongseok Koh (1): net/mlx5: fix reusing Rx/Tx queues Yuanhan Liu (7): vhost: fix multiple

[dpdk-dev] stable release 17.02.1 patches review and test

2017-05-27 Thread Yuanhan Liu
): doc: fix a typo in howto guide net/e1000/base: fix multicast setting in VF net/ena: fix return of hash control flushing Yongseok Koh (3): net/mlx5: fix reusing Rx/Tx queues net/mlx5: fix index handling for Tx ring net/mlx5: fix rollback when starting device Yuanhan

Re: [dpdk-dev] [PATCH v4 0/3] vhost: undefined behavior fixes

2017-05-26 Thread Yuanhan Liu
On Fri, May 26, 2017 at 01:59:12PM +0200, Dariusz Stojaczyk wrote: > Fixes for memory-related undefined behavior issues in rte_vhost. > > Daniel Verkamp (1): > vhost: access VhostUsrMsg via packed struct > > Dariusz Stojaczyk (2): > vhost: fix malloc in rte_vhost_get_mem_table() > vhost: fr

Re: [dpdk-dev] [PATCH v3 3/3] vhost: access VhostUsrMsg via packed struct

2017-05-25 Thread Yuanhan Liu
On Wed, May 24, 2017 at 01:12:07PM +, Stojaczyk, DariuszX wrote: > > This is for fixing compile warnings with new clang 4.0? > > > > http://dpdk.org/ml/archives/dev/2017-April/064089.html > > > > If so, please show the exact warning in the commit log. > > > > Everything compiles, but is

Re: [dpdk-dev] [PATCH v3] vhost: support rx_queue_count

2017-05-25 Thread Yuanhan Liu
On Fri, May 26, 2017 at 01:18:02PM -0400, Zhihong Wang wrote: > This patch implements the ops rx_queue_count for vhost PMD by adding > a helper function rte_vhost_rx_queue_count in vhost lib. > > The ops rx_queue_count gets vhost RX queue avail count and helps to > understand the queue fill level.

Re: [dpdk-dev] [dpdk-stable] 16.11.2 (LTS) patches review and test

2017-05-24 Thread Yuanhan Liu
On Wed, May 24, 2017 at 12:10:57PM +0100, Kevin Traynor wrote: > On 05/22/2017 06:20 AM, Yuanhan Liu wrote: > > Hi all, > > > > Here is a list of patches targeted for 16.11.2 (LTS) release. Please > > help review and test. The planned date for the final release is

Re: [dpdk-dev] [PATCH] vhost: support rx_queue_count

2017-05-24 Thread Yuanhan Liu
On Wed, May 24, 2017 at 10:36:01AM +0200, Jens Freimann wrote: > On Wed, May 24, 2017 at 04:14:19PM +0800, Yuanhan Liu wrote: > > On Tue, May 23, 2017 at 12:51:56PM +, Wang, Zhihong wrote: > > > > > > > > > > -Original Message- > > > &

Re: [dpdk-dev] [PATCH] vhost: support rx_queue_count

2017-05-24 Thread Yuanhan Liu
On Tue, May 23, 2017 at 12:51:56PM +, Wang, Zhihong wrote: > > > > -Original Message- > > From: Jens Freimann [mailto:jfrei...@redhat.com] > > Sent: Tuesday, May 23, 2017 7:54 PM > > To: Wang, Zhihong > > Cc: dev@dpdk.org; yuanhan@linux.intel.com > > Subject: Re: [dpdk-dev] [PATC

Re: [dpdk-dev] Next Stable Release?

2017-05-23 Thread Yuanhan Liu
On Tue, May 23, 2017 at 09:05:38AM +, Hemant Agrawal wrote: > Which is the next DPDK LTS release? There is no answer yet. It could be v18.11. There was also a request for proposing v17.11 to be the next LTS. > Is 17.05 a DPDK LTS release? Nope, it's not in the plan. > Do we need to send a

Re: [dpdk-dev] [RFC PATCH 00/11] net/virtio: packed ring layout

2017-05-22 Thread Yuanhan Liu
On Thu, May 18, 2017 at 10:24:07PM +0800, Yuanhan Liu wrote: > On Wed, May 17, 2017 at 01:30:21PM +0200, Jens Freimann wrote: > > Hi Yuanhan, > > > > On Mon, May 08, 2017 at 01:02:57PM +0800, Yuanhan Liu wrote: > > > On Fri, May 05, 2017 at 09:57:11AM -0400, Je

Re: [dpdk-dev] [PATCH v3 3/3] vhost: access VhostUsrMsg via packed struct

2017-05-22 Thread Yuanhan Liu
On Thu, May 11, 2017 at 04:33:12PM +0200, Dariusz Stojaczyk wrote: > From: Daniel Verkamp > > Fixes unaligned access to fields. This is for fixing compile warnings with new clang 4.0? http://dpdk.org/ml/archives/dev/2017-April/064089.html If so, please show the exact warning in the commit

Re: [dpdk-dev] [PATCH v1] doc: change doc line length limit in contributors guide

2017-05-21 Thread Yuanhan Liu
; and is unlikely to be followed in practice. > > The first example is the way people write text and the way text is submitted > in patches so the guidelines should reflect this. +1 for the first one :) And, Reviewed-by: Yuanhan Liu --yliu

Re: [dpdk-dev] [PATCH] vhost: check malloc return value when allocating guest pages

2017-05-21 Thread Yuanhan Liu
On Thu, May 18, 2017 at 10:14:26AM +0200, Maxime Coquelin wrote: > > > On 05/11/2017 05:25 PM, Jens Freimann wrote: > >When we try to allocate guest pages we need to check the return value of > >malloc(). Print an error message and return when it fails. > > > >Signed-off-by: Jens Freimann > >---

[dpdk-dev] 16.11.2 (LTS) patches review and test

2017-05-21 Thread Yuanhan Liu
setting Xiao Wang (2): net/fm10k: fix pointer cast net/virtio: fix queue notify Yong Wang (2): net/e1000/base: fix multicast setting in VF net/ena: fix return of hash control flushing Yongseok Koh (1): net/mlx5: fix reusing Rx/Tx queues Yuanhan Liu (6): vhost: fix

Re: [dpdk-dev] [RFC PATCH 00/11] net/virtio: packed ring layout

2017-05-18 Thread Yuanhan Liu
On Wed, May 17, 2017 at 01:30:21PM +0200, Jens Freimann wrote: > Hi Yuanhan, > > On Mon, May 08, 2017 at 01:02:57PM +0800, Yuanhan Liu wrote: > > On Fri, May 05, 2017 at 09:57:11AM -0400, Jens Freimann wrote: > > > I'm implementing the receive path now to

Re: [dpdk-dev] [PATCH] driver/net: remove unnecessary macro for unused variables

2017-05-15 Thread Yuanhan Liu
On Mon, May 15, 2017 at 10:26:00AM +0100, Ferruh Yigit wrote: > On 5/15/2017 10:19 AM, Yuanhan Liu wrote: > > On Mon, May 15, 2017 at 10:17:43AM +0100, Ferruh Yigit wrote: > >> On 5/12/2017 11:33 AM, Ferruh Yigit wrote: > >>> remove __rte_unused instances that are no

Re: [dpdk-dev] [PATCH] driver/net: remove unnecessary macro for unused variables

2017-05-15 Thread Yuanhan Liu
On Mon, May 15, 2017 at 10:17:43AM +0100, Ferruh Yigit wrote: > On 5/12/2017 11:33 AM, Ferruh Yigit wrote: > > remove __rte_unused instances that are not required. > > > > Hi Yuanhan, > > Does this kind of refactoring patches, specially the ones covering > multiple drivers, cause trouble (more c

Re: [dpdk-dev] [PATCH] driver/net: remove unnecessary macro for unused variables

2017-05-14 Thread Yuanhan Liu
On Fri, May 12, 2017 at 11:33:03AM +0100, Ferruh Yigit wrote: > remove __rte_unused instances that are not required. I'm wondering this is done by some scripts? --yliu

Re: [dpdk-dev] [RFC PATCH 00/11] net/virtio: packed ring layout

2017-05-07 Thread Yuanhan Liu
ge them > accordingly. > > regards, > Jens > > > > Yuanhan Liu (11): > net/virtio: vring init for 1.1 > net/virtio: implement 1.1 guest Tx > net/virtio-user: add option to enable 1.1 > vhost: enable 1.1 for testing > vhost: set desc addr for 1.1 &

Re: [dpdk-dev] [PATCH v7 1/3] ethdev: fix adding invalid MAC addr

2017-05-06 Thread Yuanhan Liu
On Fri, May 05, 2017 at 04:21:53PM +0200, Thomas Monjalon wrote: > 05/05/2017 02:40, Wei Dai: > > Some customers find adding MAC addr to VF sometimes can fail, > > but it is still stored in dev->data->mac_addrs[ ]. So this > > can lead to some errors that assumes the non-zero entry in > > dev->data

Re: [dpdk-dev] [dpdk-stable] [PATCH 11/11] net/qede: fix to limit CFLAGS to base files

2017-05-03 Thread Yuanhan Liu
On Thu, May 04, 2017 at 12:14:30AM +, Mody, Rasesh wrote: > > > > From: Yuanhan Liu [mailto:yuanhan@linux.intel.com] > > Sent: Monday, May 01, 2017 11:15 PM > > > > On Tue, Apr 25, 2017 at 12:28:46AM -0700, Rasesh Mody wrote: > > > From: Rasesh Mod

Re: [dpdk-dev] [PATCH v6 1/3] ethdev: fix adding invalid MAC addr

2017-05-02 Thread Yuanhan Liu
On Tue, May 02, 2017 at 08:44:23PM +0800, Wei Dai wrote: > Some customers find adding MAC addr to VF sometimes can fail, > but it is still stored in dev->data->mac_addrs[ ]. So this > can lead to some errors that assumes the non-zero entry in > dev->data->mac_addrs[ ] is valid. > Following acknowle

Re: [dpdk-dev] [dpdk-stable] [PATCH 11/11] net/qede: fix to limit CFLAGS to base files

2017-05-01 Thread Yuanhan Liu
On Tue, Apr 25, 2017 at 12:28:46AM -0700, Rasesh Mody wrote: > From: Rasesh Mody > > Changes included in this fix > - limit CFLAGS to base files > - fix to remove/mark unused members > - add checks for debug config option > - make qede_set_mtu() and qede_udp_dst_port_del() static and others >

Re: [dpdk-dev] [PATCH] devtools: list stable commits do not have fixline

2017-04-28 Thread Yuanhan Liu
On Fri, Apr 28, 2017 at 11:00:07AM +0200, Thomas Monjalon wrote: > 28/04/2017 10:27, Yuanhan Liu: > > On Fri, Apr 28, 2017 at 10:15:46AM +0200, Thomas Monjalon wrote: > > > 28/04/2017 09:21, Yuanhan Liu: > > > > Some commits for stable releases (with Cc stable tag) ma

Re: [dpdk-dev] [PATCH] devtools: list stable commits do not have fixline

2017-04-28 Thread Yuanhan Liu
On Fri, Apr 28, 2017 at 10:15:46AM +0200, Thomas Monjalon wrote: > 28/04/2017 09:21, Yuanhan Liu: > > Some commits for stable releases (with Cc stable tag) may not have the > > fixline. For example: > > http://dpdk.org/dev/patchwork/patch/23955/ > > > &

Re: [dpdk-dev] [PATCH] vhost: fix MQ fails to startup

2017-04-28 Thread Yuanhan Liu
On Fri, Apr 28, 2017 at 09:57:20AM +0200, Maxime Coquelin wrote: > >>>Maybe we could introduce a version message? With that, we could tell > >>>whether the frontend has fixed the known bug or not. > >> > >>That's a possibility, but this is not really the role of a protocol > >>version. As in this c

Re: [dpdk-dev] [PATCH] vhost: fix MQ fails to startup

2017-04-28 Thread Yuanhan Liu
On Fri, Apr 28, 2017 at 03:35:53PM +0800, Yuanhan Liu wrote: > > >Maybe we could introduce a version message? With that, we could tell > > >whether the frontend has fixed the known bug or not. > > > > That's a possibility, but this is not really the role of a pr

Re: [dpdk-dev] [PATCH] vhost: fix MQ fails to startup

2017-04-28 Thread Yuanhan Liu
On Fri, Apr 28, 2017 at 09:23:54AM +0200, Maxime Coquelin wrote: > > > On 04/28/2017 04:25 AM, Yuanhan Liu wrote: > >On Thu, Apr 27, 2017 at 10:52:20AM +0200, Maxime Coquelin wrote: > >> > >> > >>On 04/27/2017 10:20 AM, Yuanhan Liu wrote: > >&g

[dpdk-dev] [PATCH] devtools: list stable commits do not have fixline

2017-04-28 Thread Yuanhan Liu
s. Thus, this patch makes git-log-fixes.sh script also list those stable commits do not have fixline. Signed-off-by: Yuanhan Liu --- devtools/git-log-fixes.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devtools/git-log-fixes.sh b/devtools/git-log-fixes.sh index 3bf

Re: [dpdk-dev] [PATCH v2] config: make AVX and AVX512 configurable

2017-04-27 Thread Yuanhan Liu
K since 16.04, but it's > still unproven in rich use cases in hardware. Therefore it's marked as > experimental for now, will enable it after enough field test and possible > optimization. > > Signed-off-by: Zhihong Wang Reviewed-by: Yuanhan Liu --yliu

Re: [dpdk-dev] [PATCH 1/3] net/virtio: fix dev detachable flag

2017-04-27 Thread Yuanhan Liu
On Wed, Feb 22, 2017 at 10:34:23AM +0800, Yuanhan Liu wrote: > On Mon, Feb 20, 2017 at 10:04:45PM +0800, hanxue...@126.com wrote: > > From: Huanle Han > > > > The dev detachable flag was removed by > > commit f229eb4 ("net/virtio: fix rewriting LSC flag"

Re: [dpdk-dev] [PATCH 2/3] net/virtio: fix crash when close virtio dev twice

2017-04-27 Thread Yuanhan Liu
On Wed, Feb 22, 2017 at 10:24:13AM +0800, Yuanhan Liu wrote: > On Mon, Feb 20, 2017 at 10:04:46PM +0800, hanxue...@126.com wrote: > > From: Huanle Han > > > > This commit fixs segment fault when rte_eth_dev_close() > > is called on a virtio dev more than once. >

Re: [dpdk-dev] [PATCH] net/virtio-user: fix recognize physical devices

2017-04-27 Thread Yuanhan Liu
On Fri, Apr 21, 2017 at 02:28:09AM +, Jianfeng Tan wrote: > Segfault happens when using virtio-user after commit 7f0a669e7b04 > ("ethdev: add allocation helper for virtual drivers"). > > It's due to we use ethdev->device to recognize physical devices, > but after above commit, this field is al

Re: [dpdk-dev] [PATCH v2 2/4] net/virtio: clean up LSC setting

2017-04-27 Thread Yuanhan Liu
On Thu, Apr 27, 2017 at 07:35:37AM +, Jianfeng Tan wrote: > LSC flag is set in several places, but only the last one takes effect; > so we remove the redundant ones and just keep the last one. Note that I modified this commit log a bit. It actually fixed a bug: the dev_flags is being overwritt

Re: [dpdk-dev] [PATCH v2 0/4] fixes and cleanup on virtio LSC

2017-04-27 Thread Yuanhan Liu
On Thu, Apr 27, 2017 at 07:35:35AM +, Jianfeng Tan wrote: > v2: > - Split 2nd patch into two patches. > > Patch 1: fix wrong MSI-X for modern devices so that LSC is always not > available. > Patch 2: clean up LSC setting. > Patch 3: remove redundant MSI-X detection > Patch 4: fix li

Re: [dpdk-dev] [PATCH v2] vhost: workaround MQ fails to startup

2017-04-27 Thread Yuanhan Liu
On Thu, Apr 27, 2017 at 12:00:52PM +0200, Maxime Coquelin wrote: > > > On 04/27/2017 11:41 AM, Zhiyong Yang wrote: > > vhost since dpdk17.02 + qemu2.7 and above will cause failures of > >new connection when negotiating to set MQ. (one queue pair works > >well). > >Because there exist some b

Re: [dpdk-dev] [PATCH] vhost: fix MQ fails to startup

2017-04-27 Thread Yuanhan Liu
On Thu, Apr 27, 2017 at 10:52:20AM +0200, Maxime Coquelin wrote: > > > On 04/27/2017 10:20 AM, Yuanhan Liu wrote: > >On Thu, Apr 27, 2017 at 09:56:47AM +0200, Maxime Coquelin wrote: > >>Hi Zhiyong, > >> > >>+Marc-André > >> > >>

Re: [dpdk-dev] [PATCH] vhost: fix MQ fails to startup

2017-04-27 Thread Yuanhan Liu
On Thu, Apr 27, 2017 at 09:56:47AM +0200, Maxime Coquelin wrote: > Hi Zhiyong, > > +Marc-André > > On 04/27/2017 08:34 AM, Zhiyong Yang wrote: > >vhost since dpdk17.02 + qemu2.7 and above will cause failures of > >new connection when negotiating to set MQ. (one queue pair works > >well).Because t

Re: [dpdk-dev] [PATCH] vhost: fix MQ fails to startup

2017-04-27 Thread Yuanhan Liu
On Thu, Apr 27, 2017 at 02:34:53PM +0800, Zhiyong Yang wrote: > vhost since dpdk17.02 + qemu2.7 and above will cause failures of > new connection when negotiating to set MQ. (one queue pair works > well).Because there exist some bugs in qemu code when introducing > VHOST_USER_PROTOCOL_F_REPLY_ACK t

Re: [dpdk-dev] [PATCH v2 2/4] net/virtio: clean up LSC setting

2017-04-27 Thread Yuanhan Liu
On Thu, Apr 27, 2017 at 07:35:37AM +, Jianfeng Tan wrote: > LSC flag is set in several places, but only the last one takes effect; > so we remove the redundant ones and just keep the last one. I think this patch would also fix the issue reported by: http://dpdk.org/dev/patchwork/patch/2055

Re: [dpdk-dev] [PATCH v2] net/virtio: support to turn on/off traffic flow

2017-04-26 Thread Yuanhan Liu
On Wed, Apr 26, 2017 at 09:45:42AM +0200, Maxime Coquelin wrote: > As said, only cosmetic comments, it looks otherwise valid to me. > If you fix these, feel free to add my: > Acked-by: Maxime Coquelin Oops, I forgot to reply this thread, that I have already applied it :/ --yliu

Re: [dpdk-dev] [PATCH 2/3] net/virtio: clean up LSC setting

2017-04-25 Thread Yuanhan Liu
On Wed, Apr 26, 2017 at 05:44:05AM +, Tan, Jianfeng wrote: > > > > -Original Message- > > From: Yuanhan Liu [mailto:yuanhan@linux.intel.com] > > Sent: Wednesday, April 26, 2017 1:33 PM > > To: Tan, Jianfeng > > Cc: dev@dpdk.org; maxime.coqu

Re: [dpdk-dev] [PATCH 2/3] net/virtio: clean up LSC setting

2017-04-25 Thread Yuanhan Liu
On Wed, Apr 26, 2017 at 04:52:50AM +, Jianfeng Tan wrote: > Clean up LSC setting: Firstly, this patch does two things. There should be two patches. > - LSC flag is set in several places, but only the last one takes > effect; so we just keep the last one. > - As we already change to us

Re: [dpdk-dev] [PATCH] net/virtio-user: fix recognize physical devices

2017-04-25 Thread Yuanhan Liu
> Fixes: 6a7c0dfcdf40 ("net/virtio: do not depend on PCI device of ethdev") > > Signed-off-by: Jianfeng Tan Acked-by: Yuanhan Liu --yliu

Re: [dpdk-dev] [PATCH 05/13] vhost: fix errors with strict compilation flags

2017-04-24 Thread Yuanhan Liu
t; /usr/include/linux/vhost.h: At top level: > /usr/include/linux/vhost.h:73:3: error: ISO C99 doesn't support unnamed > structs/unions [-Werror=pedantic] > [...] > > Fixes: eb32247457fe ("vhost: export guest memory regions") > Fixes: a798beb47c8e ("vhost: rename header file") > > Cc: Yuanhan Liu > Cc: Maxime Coquelin > Signed-off-by: Adrien Mazarguil Acked-by: Yuanhan Liu --yliu

Re: [dpdk-dev] [PATCH v4 1/3] lib/librte_ether: add support for port reset

2017-04-23 Thread Yuanhan Liu
On Fri, Apr 21, 2017 at 11:28:37AM +0200, Thomas Monjalon wrote: > > Maybe I should add some words in doc\guides\nics\i40e.rst to Record which > > configurations are saved and restored by the PMD driver in reset > > function. Which not list in that are recognized as not saved and restored > > b

Re: [dpdk-dev] [PATCH v4 1/3] lib/librte_ether: add support for port reset

2017-04-20 Thread Yuanhan Liu
On Thu, Apr 20, 2017 at 09:17:24AM +, Zhao1, Wei wrote: > > > > Please explain exactly the responsibility of this function, and how > > > > it is different from calling stop/configure/start. > > > > > > In this reset feature, reset function can do the calling > > > stop/configure/start process,

Re: [dpdk-dev] [PATCH v4 1/3] lib/librte_ether: add support for port reset

2017-04-19 Thread Yuanhan Liu
On Thu, Apr 06, 2017 at 02:57:29AM +, Zhao1, Wei wrote: > > > + * Reset an ethernet device when it's not working. One scenario is, > > > + after PF > > > + * port is down and up, the related VF port should be reset. > > > + * The API will stop the port, clear the rx/tx queues, re-setup the > >

Re: [dpdk-dev] [PATCH v4 1/3] ethdev: fix adding invalid MAC addr

2017-04-19 Thread Yuanhan Liu
| 4 ++-- > drivers/net/mlx5/mlx5_mac.c| 16 ++-- > drivers/net/qede/qede_ethdev.c | 6 -- > drivers/net/ring/rte_eth_ring.c| 3 ++- > drivers/net/virtio/virtio_ethdev.c | 13 +++-- For virtio changes, Acked-by: Yuanhan Liu --yliu

Re: [dpdk-dev] [PATCH] vhost: fix dequeue zero copy

2017-04-19 Thread Yuanhan Liu
On Wed, Apr 19, 2017 at 01:26:01PM +0800, Yuanhan Liu wrote: > For zero copy mode, we need pin the mbuf to not let the underlaying PMD > driver (or the app) free the mbuf. Currently, only the heading mbuf is > pinned. However, the mbuf free function would try to free all mbufs > in th

Re: [dpdk-dev] [PATCH v2] net/virtio-user: fix not working on 32-bit system

2017-04-18 Thread Yuanhan Liu
On Wed, Apr 19, 2017 at 06:21:59AM +, Tan, Jianfeng wrote: > > > > I've expected it to be plain english, something like following: > > > > /* > > * Return the physical address (or virtual address in case of > > * virtio-user) of mbuf data buffer. > > * > > * The addre

Re: [dpdk-dev] [PATCH] vhost: avoid memory write on net header when necessary

2017-04-18 Thread Yuanhan Liu
On Fri, Apr 14, 2017 at 03:53:18PM +0800, Yuanhan Liu wrote: > Like what we did for virtio PMD driver [0][1], we could also apply such > trick to vhost, to avoid the memory write on net header when necessary. > > [0]: c9ea670c1dc7 ("net/virtio: fix performance regression

Re: [dpdk-dev] [PATCH v2] net/virtio-user: fix not working on 32-bit system

2017-04-18 Thread Yuanhan Liu
On Wed, Apr 19, 2017 at 02:30:33AM +, Jianfeng Tan wrote: > virtio-user cannot work on 32-bit system as higher 32-bit of the > addr field (64-bit) in the desc is filled with non-zero value > which should not happen for a 32-bit system. > > In case of virtio-user, we use buf_addr of mbuf to fil

[dpdk-dev] [PATCH] vhost: fix dequeue zero copy

2017-04-18 Thread Yuanhan Liu
may be returned to the mempool twice, while in turn, being allocated twice later. Something uncertain may happen then. For example, the VM2VM case becomes broken. Fixes: b0a985d1f340 ("vhost: add dequeue zero copy") Cc: sta...@dpdk.org Signed-off-by: Yuanhan Liu --- lib/librte_vhost/vi

Re: [dpdk-dev] [PATCH 0/2] net/virtio: support to turn on/off the traffic flow

2017-04-18 Thread Yuanhan Liu
On Wed, Apr 19, 2017 at 02:31:58AM +, Yang, Zhiyong wrote: > Haha, you are right. > I will rework it and send V2. Note that the "started" field is added in one of my recent patch, to addres the link status always being UP. So you should pull the latest virtio code and make a patch there: you

Re: [dpdk-dev] [PATCH] net/virtio-user: fix LSC not working

2017-04-18 Thread Yuanhan Liu
On Fri, Apr 14, 2017 at 06:10:30AM +, Jianfeng Tan wrote: > Previously, we miss to set intr_handle->fd which will be used as > target file for epoll to check LSC. > > As a result, stdin (0) is used and intr thread keeps busy whenever > data comes from stdin. > > To fix this, we use vhostfd as

Re: [dpdk-dev] [PATCH] net/virtio: fix link status always being up

2017-04-18 Thread Yuanhan Liu
On Fri, Apr 14, 2017 at 02:36:45PM +0800, Yuanhan Liu wrote: > The virtio port link status will always be UP, even the port is stopped: > > testpmd> port stop 0 > Stopping ports... > Checking link statuses... > Port 0 Link Up - speed 1 Mbps - full-duple

Re: [dpdk-dev] [PATCH 0/2] net/virtio: support to turn on/off the traffic flow

2017-04-18 Thread Yuanhan Liu
On Mon, Apr 17, 2017 at 08:50:52AM +, Yang, Zhiyong wrote: > Hi, yuanhan: > Sorry for the delay reply due to my annual leave. > > > -Original Message- > > From: Yuanhan Liu [mailto:yuanhan@linux.intel.com] > > Sent: Thursday, April 6, 2017 12:

Re: [dpdk-dev] [PATCH] vhost: fix use after free

2017-04-18 Thread Yuanhan Liu
On Tue, Apr 18, 2017 at 10:20:41AM +0200, Maxime Coquelin wrote: > > > On 04/17/2017 09:27 AM, Yuanhan Liu wrote: > >A "return" is missing on error, which could lead to a "use after free" > >issue (about var "conn"). > > > >Fixes

Re: [dpdk-dev] clang compilation errors with clang 4.0

2017-04-17 Thread Yuanhan Liu
On Fri, Apr 14, 2017 at 04:55:53PM +0100, Bruce Richardson wrote: > Hi all, > > just a heads-up that there are compilation errors showing up with > compiling DPDK with clang 4.0 release. Here are some of the errors I am > seeing. Volunteers to do patches for some of them welcome. > > Regards, > /

[dpdk-dev] [PATCH] vhost: fix use after free

2017-04-17 Thread Yuanhan Liu
A "return" is missing on error, which could lead to a "use after free" issue (about var "conn"). Fixes: 65388b43f592 ("vhost: fix fd leaks for vhost-user server mode") Coverity issue: 143476 Reported-by: John McNamara Signed-off-by: Yuanhan Liu ---

<    1   2   3   4   5   6   7   8   9   10   >