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 00DC28E8F for ; Tue, 24 Nov 2015 03:20:18 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP; 23 Nov 2015 18:20:17 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,338,1444719600"; d="scan'208";a="693054655" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga003.jf.intel.com with ESMTP; 23 Nov 2015 18:20:05 -0800 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.248.2; Mon, 23 Nov 2015 18:20:04 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.42]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.138]) with mapi id 14.03.0248.002; Tue, 24 Nov 2015 10:20:03 +0800 From: "Chen, Jing D" To: Thomas Monjalon Thread-Topic: [dpdk-dev] [PATCH] fm10k: fix a crash bug when quit from testpmd Thread-Index: AQHRHQayqkwupGpMf0eBZyJJA8JMOZ6pw9KAgAC+iXA= Date: Tue, 24 Nov 2015 02:20:02 +0000 Message-ID: <4341B239C0EFF9468EE453F9E9F4604D02B0C815@shsmsx102.ccr.corp.intel.com> References: <1447304251-4145-1-git-send-email-jing.d.chen@intel.com> <3695173.dQDnAloRu5@xps13> In-Reply-To: <3695173.dQDnAloRu5@xps13> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCH] fm10k: fix a crash bug when quit from testpmd 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: Tue, 24 Nov 2015 02:20:19 -0000 > -----Original Message----- > From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com] > Sent: Tuesday, November 24, 2015 6:55 AM > To: Chen, Jing D > Cc: dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH] fm10k: fix a crash bug when quit from > testpmd >=20 > 2015-11-12 12:57, Chen Jing D: > > From: "Chen Jing D(Mark)" > > > > When the fm10k port is closed, both func tx_queue_clean() and > > fm10k_tx_queue_release_mbufs_vec() will try to release buffer in > > SW ring. The latter func won't do sanity check on those pointers > > and cause crash. > > > > The fix include 2 parts. > > 1. Remove Vector TX buffer release func since it can share the > > release functions with regular TX. > > 2. Add log to print out what actual Rx/Tx func is used. >=20 > 2 parts mean 2 patches. OK, I'll send 2. >=20 > [...] > > + if (rx_using_sse) > > + PMD_INIT_LOG(ERR, "Use vector Rx func"); > > + else > > + PMD_INIT_LOG(ERR, "Use regular Rx func"); >=20 > Why using en error log level? Because fm10k will decide best rx/tx func in running time, some users=20 complain they can't find which rx/tx func they are using. the error level l= og will help them.