diff options
author | Xiaoyun Wang <cloud.wangxiaoyun@huawei.com> | 2019-11-19 20:31:34 +0800 |
---|---|---|
committer | Ferruh Yigit <ferruh.yigit@intel.com> | 2019-11-20 17:36:06 +0100 |
commit | 66f64dd6dc867f7f32b01090c431473926afac0d (patch) | |
tree | ff8456eab4a1f0217acc3bdc2cf79608e5060d82 /drivers | |
parent | 8fad2e5ab2c54ae12db0c3255b69d0c4f44a5194 (diff) | |
download | dpdk-66f64dd6dc867f7f32b01090c431473926afac0d.zip dpdk-66f64dd6dc867f7f32b01090c431473926afac0d.tar.gz dpdk-66f64dd6dc867f7f32b01090c431473926afac0d.tar.xz |
net/hinic: fix secondary process
The secondary process does not need to register interrupt handle,
remove rte_intr_callback_register from secondary process branch.
Fixes: 64727024d2fd ("net/hinic: add device initialization")
Cc: stable@dpdk.org
Signed-off-by: Xiaoyun Wang <cloud.wangxiaoyun@huawei.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/hinic/hinic_pmd_ethdev.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/net/hinic/hinic_pmd_ethdev.c b/drivers/net/hinic/hinic_pmd_ethdev.c index ddfe082..803a39e 100644 --- a/drivers/net/hinic/hinic_pmd_ethdev.c +++ b/drivers/net/hinic/hinic_pmd_ethdev.c @@ -2964,14 +2964,10 @@ static int hinic_func_init(struct rte_eth_dev *eth_dev) /* EAL is SECONDARY and eth_dev is already created */ if (rte_eal_process_type() != RTE_PROC_PRIMARY) { - rc = rte_intr_callback_register(&pci_dev->intr_handle, - hinic_dev_interrupt_handler, - (void *)eth_dev); - if (rc) - PMD_DRV_LOG(ERR, "Initialize %s failed in secondary process", - eth_dev->data->name); + PMD_DRV_LOG(INFO, "Initialize %s in secondary process", + eth_dev->data->name); - return rc; + return 0; } nic_dev = HINIC_ETH_DEV_TO_PRIVATE_NIC_DEV(eth_dev); |