fix crash bug of DPDK's driver when working on multi_process with AWS

ena NIC.
This commit is contained in:
fengbojiang 2018-07-23 16:39:02 +08:00
parent c4219e9b85
commit 141f33b513
1 changed files with 2 additions and 1 deletions

View File

@ -1278,7 +1278,8 @@ static int eth_ena_dev_init(struct rte_eth_dev *eth_dev)
static int adapters_found;
memset(adapter, 0, sizeof(struct ena_adapter));
// Temporary modification for multi process
//memset(adapter, 0, sizeof(struct ena_adapter));
ena_dev = &adapter->ena_dev;
eth_dev->dev_ops = &ena_dev_ops;