DPDK patches and discussions
 help / color / mirror / Atom feed
From: bugzilla@dpdk.org
To: dev@dpdk.org
Subject: [Bug 1067] I40E_VSI_TO_ETH_DEV (rxq->vsi) return null causes coredump
Date: Wed, 17 Aug 2022 04:21:21 +0000	[thread overview]
Message-ID: <bug-1067-3@http.bugs.dpdk.org/> (raw)

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.

                 reply	other threads:[~2022-08-17  4:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-1067-3@http.bugs.dpdk.org/ \
    --to=bugzilla@dpdk.org \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).