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
: 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
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
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
4 matches
Mail list logo