From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 197D1A0032; Wed, 17 Aug 2022 06:21:24 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C59B440150; Wed, 17 Aug 2022 06:21:23 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 5B41D400D6 for ; Wed, 17 Aug 2022 06:21:22 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id 36430A00C3; Wed, 17 Aug 2022 06:21:22 +0200 (CEST) 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 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: ethdev X-Bugzilla-Version: 20.11 X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: chcchc88@163.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org https://bugs.dpdk.org/show_bug.cgi?id=3D1067 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=3D216&action=3Dedit core dump file bt NIC:=20 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 XL7= 10 vf NIC. The call stack shows that coredump occurs at this line of code=EF= =BC=9A dev->data->rx_mbuf_alloc_failed +=3D 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) !=3D 0) { uint16_t i, j; dev =3D I40E_VSI_TO_ETH_DEV(rxq->vsi); dev->data->rx_mbuf_alloc_failed +=3D rxq->rx_free_thresh; rxq->rx_nb_avail =3D 0; rxq->rx_tail =3D (uint16_t)(rxq->rx_tail - nb_rx); for (i =3D 0, j =3D rxq->rx_tail; i < nb_rx; i++, j= ++) rxq->sw_ring[j].mbuf =3D 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 =3D vsi;=20 rxq->vsi.adapter->eth_dev is null! vsi comes from: vf =3D I40EVF_DEV_PRIVATE_TO_VF(dev->data->dev_private); vsi =3D &vf->vsi; But in i40evf_init_vf func, I cant find init vf->vsi.adapter->eth_dev,I dont known why? --=20 You are receiving this mail because: You are the assignee for the bug.=