From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id B5ABA7F3D for ; Wed, 8 Oct 2014 21:08:52 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP; 08 Oct 2014 12:06:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.97,862,1389772800"; d="scan'208";a="397247613" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by FMSMGA003.fm.intel.com with ESMTP; 08 Oct 2014 12:09:21 -0700 Received: from fmsmsx115.amr.corp.intel.com (10.18.116.19) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.195.1; Wed, 8 Oct 2014 12:16:09 -0700 Received: from fmsmsx105.amr.corp.intel.com ([169.254.5.219]) by fmsmsx115.amr.corp.intel.com ([169.254.4.219]) with mapi id 14.03.0195.001; Wed, 8 Oct 2014 12:16:09 -0700 From: "Patel, Rashmin N" To: Navakanth M , "dev@dpdk.org" Thread-Topic: vmxnet3 pmd dev restart Thread-Index: AQHP4ukG8tZvnTyGGE6g0M3eoyvQDpwmkVag Date: Wed, 8 Oct 2014 19:16:08 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.34.78.18] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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: Wed, 08 Oct 2014 19:08:53 -0000 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 m= erged, should be working, so did not follow up later.=20 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 i= t. Thanks, Rashmin -----Original Message----- From: Navakanth M [mailto:navakanthdev@gmail.com]=20 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 thi= s 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=20 > reset the port which uses pmd_vmnet3 library functions from below=20 > function calls. > rte_eth_dev_stop > rte_eth_dev_start > > Doing this, i face panic while rte_free(ring->buf_info) in=20 > Vmxnet3_cmd_ring_release(). > I have gone through following thread but the patch mentioned didn't=20 > help rather it crashed in start function while accessing buf_info in=20 > vmxnet3_post_rx_bufs. I see this buf_info is allocated in queue setup=20 > 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=20 > mismatch in while (rcd->gen =3D=3D rxq->comp_ring.gen) in=20 > 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=20 > recent patches and threads but did not get much information on this. > > Thanks > Navakanth