From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f175.google.com (mail-wi0-f175.google.com [209.85.212.175]) by dpdk.org (Postfix) with ESMTP id 2B775212 for ; Thu, 9 Oct 2014 07:03:37 +0200 (CEST) Received: by mail-wi0-f175.google.com with SMTP id d1so12079610wiv.8 for ; Wed, 08 Oct 2014 22:10:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=arsCHprpcjIdCHMH4LhozFBEG322xIMVoJNrGn96l0Q=; b=XNCd4mWIlZKSNuQbEPuss1klR60JSgGSErbGlqTD+I3UiEAG8xrFwXsV/iR836lqKK xKcXDnOlls3RAK4XaF8GUk/gy98s4nOJ7RQ+/ucSJ4VPGmHj0DGtK/xnn4YY7LBjeDog Udu6lQeSuLGaju3aTSCFqpPfX3JR3ZyqZp0zfA7wgTm+RcYWSyuHsmB+BRhzqgJ0yv3N 6bT+3hLPfuzFILtL9x6NTP+TsuzRwuyyjPlTLtyv9+I8Sh6qkoyE5YMte+fFTLNZ3zpM n03lERM0Iajt/vN21QKE/fwU3O4f9YGEPmghvO0pjTl6u1nU69ahlwp7n7WImuwsk80/ xSyA== MIME-Version: 1.0 X-Received: by 10.180.21.163 with SMTP id w3mr9674266wie.11.1412831457504; Wed, 08 Oct 2014 22:10:57 -0700 (PDT) Received: by 10.194.95.74 with HTTP; Wed, 8 Oct 2014 22:10:57 -0700 (PDT) In-Reply-To: References: Date: Thu, 9 Oct 2014 10:40:57 +0530 Message-ID: From: Navakanth M To: stephen@networkplumber.org, "Patel, Rashmin N" , "Cao, Waterman" Content-Type: text/plain; charset=ISO-8859-1 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] vmxnet3 pmd dev restart X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Oct 2014 05:03:37 -0000 I had tried with Stephen's patch but after stop is done and when we call start it crashed at vmxnet3_dev_start()-> vmxnet3_dev_rxtx_init()->vmxnet3_post_rx_bufs() as buf_info is freed and is not allocated again. buf_info is allocated in vmxnet3_dev_rx_queue_setup() which would be called once at the initialization only. I also tried not freeing buf_info in stop but then i see different issue after start, packets are not received due to check while (rcd->gen == rxq->comp_ring.gen) { in vmxnet3_recv_pkts() Waterman, Have you got chance to test stop and start of vmnet dev if so did you notice any issue similar to this? Thanks Navakanth On Thu, Oct 9, 2014 at 12:46 AM, Patel, Rashmin N wrote: > Yes I had a local copy working with couple of lines fix. But someone else, I think Stephen added a fix patch for the same, and I assume if it's been merged, should be working, so did not follow up later. > > I don't have a VMware setup handy at moment but I think Waterman would have more information about testing that patch if he has found any issue with it. > > Thanks, > Rashmin > > -----Original Message----- > From: Navakanth M [mailto:navakanthdev@gmail.com] > Sent: Wednesday, October 08, 2014 4:14 AM > To: dev@dpdk.org; Patel, Rashmin N > Subject: Re: vmxnet3 pmd dev restart > > Hi Rashmin > > I have come across your reply in following post that you have worked on this problem and would submit the patch for it. > Can you please share information on the changes you worked on or patch log if you had submitted any for it? > http://thread.gmane.org/gmane.comp.networking.dpdk.devel/4683 > > Thanks > Navakanth > > On Tue, Sep 30, 2014 at 1:44 PM, Navakanth M wrote: >> Hi >> >> I am using DPDKv1.7.0 running on Vmware Esxi 5.1 and am trying to >> reset the port which uses pmd_vmnet3 library functions from below >> function calls. >> rte_eth_dev_stop >> rte_eth_dev_start >> >> Doing this, i face panic while rte_free(ring->buf_info) in >> Vmxnet3_cmd_ring_release(). >> I have gone through following thread but the patch mentioned didn't >> help rather it crashed in start function while accessing buf_info in >> vmxnet3_post_rx_bufs. I see this buf_info is allocated in queue setup >> functions which are called at initialization. >> http://thread.gmane.org/gmane.comp.networking.dpdk.devel/4683 >> >> I tried not freeing it and then rx packets are not received due to >> mismatch in while (rcd->gen == rxq->comp_ring.gen) in >> vmxnet3_recv_pkts() >> >> To reset the device port, is this the right way what i am doing? >> Or do I have to call vmxnet3_dev_tx_queue_setup() >> vmxnet3_dev_rx_queue_setup() once stop is called? I have checked >> recent patches and threads but did not get much information on this. >> >> Thanks >> Navakanth