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

dev
fengbojiang 2018-11-26 21:48:12 +08:00
parent 579bf1e28c
commit 19edad7fbc
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;