DPDK patches and discussions
 help / color / mirror / Atom feed
* [Bug 1067] I40E_VSI_TO_ETH_DEV (rxq->vsi) return null causes coredump
@ 2022-08-17  4:21 bugzilla
  0 siblings, 0 replies; only message in thread
From: bugzilla @ 2022-08-17  4:21 UTC (permalink / raw)
  To: dev

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@dpdk.org
          Reporter: chcchc88@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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-08-17  4:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-17  4:21 [Bug 1067] I40E_VSI_TO_ETH_DEV (rxq->vsi) return null causes coredump bugzilla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).