Re: [dpdk-dev] [PATCH 1/2] net/mlx4: fix crash in dev_info_get in secondary process

2019-08-05 Thread Raslan Darawsheh
pdk.org; s...@paloaltonetworks.com; Stephen Hemminger > > ; sta...@dpdk.org > > Subject: [dpdk-dev] [PATCH 1/2] net/mlx4: fix crash in dev_info_get in > > secondary process > > > > mlx4_dev_info_get calls mlx4_get_ifname, but mlx4_get_ifname uses > > priv->ctx

Re: [dpdk-dev] [PATCH 1/2] net/mlx4: fix crash in dev_info_get in secondary process

2019-08-03 Thread Raslan Darawsheh
: Friday, July 12, 2019 11:54 PM > To: Matan Azrad ; Shahaf Shuler > ; Yongseok Koh ; Slava > Ovsiienko > Cc: dev@dpdk.org; s...@paloaltonetworks.com; Stephen Hemminger > ; sta...@dpdk.org > Subject: [dpdk-dev] [PATCH 1/2] net/mlx4: fix crash in dev_info_get in > secondary p

Re: [dpdk-dev] [PATCH 1/2] net/mlx4: fix crash in dev_info_get in secondary process

2019-07-30 Thread Matan Azrad
Hi Stephen From: Stephen Hemminger > mlx4_dev_info_get calls mlx4_get_ifname, but mlx4_get_ifname uses priv- > >ctx which is not a valid pointer in a secondary process. The fix is to cache > >the > value in primary. > > In the primary process, get and store the interface index of the device so

[dpdk-dev] [PATCH 1/2] net/mlx4: fix crash in dev_info_get in secondary process

2019-07-12 Thread Stephen Hemminger
mlx4_dev_info_get calls mlx4_get_ifname, but mlx4_get_ifname uses priv->ctx which is not a valid pointer in a secondary process. The fix is to cache the value in primary. In the primary process, get and store the interface index of the device so that secondary process can see it. Bugzilla ID:320