[Bug 1067] I40E_VSI_TO_ETH_DEV (rxq->vsi) return null causes coredump
bugzilla at dpdk.org
bugzilla at dpdk.org
Wed Aug 17 06:21:21 CEST 2022
https://bugs.dpdk.org/show_bug.cgi?id=1067
Bug ID: 1067
Summary: I40E_VSI_TO_ETH_DEV (rxq->vsi) return null causes
coredump
Product: DPDK
Version: 20.11
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: critical
Priority: Normal
Component: ethdev
Assignee: dev at dpdk.org
Reporter: chcchc88 at 163.com
Target Milestone: ---
Created attachment 216
--> https://bugs.dpdk.org/attachment.cgi?id=216&action=edit
core dump file bt
NIC:
Intel XL710 vf
Ethernet controller: Intel Corporation Ethernet Virtual Function 700 Series
Coredump was generated when we tested the data sent and received by the XL710
vf NIC. The call stack shows that coredump occurs at this line of code:
dev->data->rx_mbuf_alloc_failed += rxq->rx_free_thresh;
it's in i40e_rxtx.c/rx_recv_pkts func,the code:
if (rxq->rx_tail > rxq->rx_free_trigger) {
if (i40e_rx_alloc_bufs(rxq) != 0) {
uint16_t i, j;
dev = I40E_VSI_TO_ETH_DEV(rxq->vsi);
dev->data->rx_mbuf_alloc_failed +=
rxq->rx_free_thresh;
rxq->rx_nb_avail = 0;
rxq->rx_tail = (uint16_t)(rxq->rx_tail - nb_rx);
for (i = 0, j = rxq->rx_tail; i < nb_rx; i++, j++)
rxq->sw_ring[j].mbuf = rxq->rx_stage[i];
return 0;
}
}
I40E_VSI_TO_ETH_DEV(rxq->vsi) return null.
I use gdb to break i40e_dev_rx_queue_setup func where rxq->vsi = vsi;
rxq->vsi.adapter->eth_dev is null!
vsi comes from:
vf = I40EVF_DEV_PRIVATE_TO_VF(dev->data->dev_private);
vsi = &vf->vsi;
But in i40evf_init_vf func, I cant find init vf->vsi.adapter->eth_dev,I dont
known
why?
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the dev
mailing list