net/i40e: fix VF cannot forward packets issue
When Rx interrupt is not enabled, there is no need to check if interrupt
allow others. It will cause VF cannot forwarding packets issue. This patch
fixes this issue.
Fixes: 96a9fd03c2
("net/i40e: fix Rx queue interrupt mapping in VF")
Cc: stable@dpdk.org
Signed-off-by: Xiaoyun Li <xiaoyun.li@intel.com>
Acked-by: Beilei Xing <beilei.xing@intel.com>
This commit is contained in:
parent
db1ae72336
commit
79f47fc1b7
@ -650,7 +650,8 @@ i40evf_config_irq_map(struct rte_eth_dev *dev)
|
|||||||
uint32_t vector_id;
|
uint32_t vector_id;
|
||||||
int i, err;
|
int i, err;
|
||||||
|
|
||||||
if (rte_intr_allow_others(intr_handle))
|
if (dev->data->dev_conf.intr_conf.rxq != 0 &&
|
||||||
|
rte_intr_allow_others(intr_handle))
|
||||||
vector_id = I40E_RX_VEC_START;
|
vector_id = I40E_RX_VEC_START;
|
||||||
else
|
else
|
||||||
vector_id = I40E_MISC_VEC_ID;
|
vector_id = I40E_MISC_VEC_ID;
|
||||||
|
Loading…
Reference in New Issue
Block a user