From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id BA3951DDB9; Thu, 14 Jun 2018 16:56:43 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Jun 2018 07:56:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,222,1526367600"; d="scan'208";a="237443851" Received: from irsmsx102.ger.corp.intel.com ([163.33.3.155]) by fmsmga006.fm.intel.com with ESMTP; 14 Jun 2018 07:56:41 -0700 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.139]) by IRSMSX102.ger.corp.intel.com ([169.254.2.146]) with mapi id 14.03.0319.002; Thu, 14 Jun 2018 15:56:40 +0100 From: "Iremonger, Bernard" To: Adrien Mazarguil , "Lu, Wenzhuo" , "Wu, Jingjing" CC: "dev@dpdk.org" , "stable@dpdk.org" , "Singh, Jasvinder" , "Xueming(steven) Li" Thread-Topic: [PATCH] app/testpmd: fix crash when attaching a device Thread-Index: AQHUAzOGM9vhhuZhRU+xEC9jSu+9cKRf2Qxg Date: Thu, 14 Jun 2018 14:56:40 +0000 Message-ID: <8CEF83825BEC744B83065625E567D7C260CB3805@IRSMSX108.ger.corp.intel.com> References: <20180613162519.19205-1-adrien.mazarguil@6wind.com> In-Reply-To: <20180613162519.19205-1-adrien.mazarguil@6wind.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZGUzOTFjZDAtMTNmZC00ODg0LWFlMmMtZDA4NmI5MGVkYWQ5IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiOHc4QkxzNXBTWlVVSjBYVm5HTTVEMlFBNXJOOWxDcWdEOFNabW8xekU2bGFcL3ByM1wvSituZzRqNlBJQm1lMlBtIn0= x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.200.100 dlp-reaction: no-action x-originating-ip: [163.33.239.180] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-stable] [PATCH] app/testpmd: fix crash when attaching a device X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jun 2018 14:56:44 -0000 > -----Original Message----- > From: Adrien Mazarguil [mailto:adrien.mazarguil@6wind.com] > Sent: Wednesday, June 13, 2018 5:28 PM > To: Lu, Wenzhuo ; Wu, Jingjing > ; Iremonger, Bernard > > Cc: dev@dpdk.org; stable@dpdk.org; Singh, Jasvinder > ; Xueming(steven) Li > > Subject: [PATCH] app/testpmd: fix crash when attaching a device >=20 > Below commit checks global device information to determine if a port uses > the softnic driver once initialized. Problem is that this information is = not > available at this point when a port is initialized interactively through = a "port > attach XXX" command, crashing testpmd. >=20 > This patch systematically initializes global device information to addres= s this > issue. >=20 > Fixes: 5b590fbe09b6 ("app/testpmd: add traffic management forwarding > mode") > Cc: stable@dpdk.org > Cc: Jasvinder Singh >=20 > Signed-off-by: Adrien Mazarguil > --- Acked-by: Bernard Iremonger