net/bnxt: fix crash in secondary process
authorStephen Hemminger <stephen@networkplumber.org>
Wed, 2 Oct 2019 17:17:43 +0000 (10:17 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 8 Oct 2019 10:14:30 +0000 (12:14 +0200)
commitf35eaaca5f5f09b48f5d96adbaccc4484aa6e058
treec7c5206e0c2fe739a59a32bbde914bf77621dba3
parent34c0ba839baeaf9a8621e4e3524eec96f82dfce0
net/bnxt: fix crash in secondary process

The secondary process should not modify device state when
init is called. The pci device information pointed to by
dev_private pointer is not correct in secondary process.

Fixes: b7778e8a1c00 ("net/bnxt: refactor to properly allocate resources for PF/VF")
Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_ethdev.c