From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH] drivers/net: fix segfault in secondary process Date: Fri, 20 Jul 2018 11:13:07 +0100 Message-ID: <34e23691-19f9-5c12-eb73-64e87d2f292a@intel.com> References: <20180719164556.93162-1-ferruh.yigit@intel.com> <20180719093200.6095b52c@xeon-e3> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: "John W. Linville" , Declan Doherty , Chas Williams , Gaetan Rivet , Tetsuya Mukawa , Santosh Shukla , Jerin Jacob , Keith Wiles , Maxime Coquelin , Tiwei Bie , Zhihong Wang , dev@dpdk.org, stable@dpdk.org, Vipin Varghese To: Stephen Hemminger Return-path: In-Reply-To: <20180719093200.6095b52c@xeon-e3> 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 7/19/2018 5:32 PM, Stephen Hemminger wrote: > On Thu, 19 Jul 2018 17:45:56 +0100 > Ferruh Yigit wrote: > >> Calling rte_eth_dev_info_get() on secondary process cause a crash >> because eth_dev->device is not set properly. >> >> Fixes: ee27edbe0c10 ("drivers/net: share vdev data to secondary process") >> Cc: stable@dpdk.org >> >> Signed-off-by: Ferruh Yigit > > Good catch. > > Maybe eth_dev should do this for the device drivers? > Better to make device drivers as simple and safe as possible. Agreed, let me try to create a helper function for this. > > There seem to be a lot of bugs related to secondary process model. > Do we have a test suite for that. >