net/i40e: fix compile warning
PATCH 1/1 net/i40e: fix compile warning
This patch adds memset array before using.
Fixes 622e24aa6712 ("net/i40e: fix multiple interrupt for VF")
Signed-off-by Shougang Wang <[email protected]>
--- drivers/net/i40e/i40e_ethdev_vf.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/i40e/i40e_ethdev_vf.c +1 -0
@@ -659,6 +659,7 @@ i40evf_config_irq_map(struct rte_eth_dev *dev)uint16_t rxq_map[vf->vf_res->max_vectors];int err; +memset (rxq_map,0 ,sizeof (rxq_map));if (dev->data->dev_conf.intr_conf.rxq !=0 &&rte_intr_allow_others (intr_handle)) { msix_base =I40E_RX_VEC_START ;
Signature · 1 line
2.17.1
Ye Xiaolong
AppliedQuoted 24 lines · Shougang Wang
This patch adds memset array before using.
Fixes 622e24aa6712 ("net/i40e: fix multiple interrupt for VF")Signed-off-by Shougang Wang <[email protected]>---
drivers/net/i40e/i40e_ethdev_vf.c| 1 +1 file changed, 1 insertion(+)drivers/net/i40e/i40e_ethdev_vf.c +1
-0@@ -659,6 +659,7 @@ i40evf_config_irq_map(struct rte_eth_dev *dev)uint16_t rxq_map[vf->vf_res->max_vectors];int err; +memset (rxq_map,0 ,sizeof (rxq_map));if (dev->data->dev_conf.intr_conf.rxq !=0 &&rte_intr_allow_others (intr_handle)) { msix_base =I40E_RX_VEC_START ;Signature · 1 line
2.17.1
Applied to dpdk-next-net-intel, Squashed into previous commit.