From: Ferruh Yigit Subject: Re: [PATCH] net/softnic: fix undefined dev info fields Date: Wed, 21 Nov 2018 15:28:41 +0000 Message-ID: References: <20181120130015.157072-1-jasvinder.singh@intel.com> <7320c1c9-f81b-4316-798b-318bed80cf22@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: cristian.dumitrescu@intel.com To: Jasvinder Singh , dev@dpdk.org Return-path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 261461B0FB for ; Wed, 21 Nov 2018 16:28:43 +0100 (CET) In-Reply-To: <7320c1c9-f81b-4316-798b-318bed80cf22@intel.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 11/20/2018 10:35 PM, Ferruh Yigit wrote: > On 11/20/2018 1:00 PM, Jasvinder Singh wrote: >> The memcpy operation overwrites the device info fields set >> by ethdev API and leaves the device field undefined. >> Thus, replaces memcpy by only updating the required fields >> at the driver layer. >> >> error log: testpmd> show port info 1 >> >> **** Infos for port 1 **** >> MAC address: 00:00:00:00:00:00 >> Device name: net_softnic0 >> >> Segmentation fault. >> port_infos_display (port_id=1) at /dpdk/app/test-pmd/config.c:418 >> if (dev_info.device->devargs && dev_info.device->devargs->args) >> >> Fixes: cc6d421574fe ("net/softnic: add softnic PMD") >> >> Signed-off-by: Jasvinder Singh > > Reviewed-by: Ferruh Yigit > Applied to dpdk-next-net/master, thanks.