DPDK-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla@dpdk.org
To: dev@dpdk.org
Subject: [DPDK/ethdev Bug 1965] Repeated port link up/down flapping leads to segmentation fault and core dump in hns3 ethdev driver.
Date: Wed, 08 Jul 2026 14:16:36 +0000	[thread overview]
Message-ID: <bug-1965-3@http.bugs.dpdk.org/> (raw)

http://bugs.dpdk.org/show_bug.cgi?id=1965

            Bug ID: 1965
           Summary: Repeated port link up/down flapping leads to
                    segmentation fault and core dump in hns3 ethdev
                    driver.
           Product: DPDK
           Version: 25.11
          Hardware: ARM
                OS: Linux
            Status: UNCONFIRMED
          Severity: major
          Priority: Normal
         Component: ethdev
          Assignee: dev@dpdk.org
          Reporter: qianwu9966@gmail.com
  Target Milestone: ---

HNS3_DRIVER: 0000:7d:00.5 hns3_update_link_status(): Link status change to up!
HNS3_DRIVER: 0000:7d:00.4 hns3_update_link_status(): Link status change to up!
HNS3_DRIVER: 0000:7d:00.1 hns3_update_link_status(): Link status change to up!
HNS3_DRIVER: 0000:7d:00.2 hns3_update_link_status(): Link status change to up!
HNS3_DRIVER: 0000:7d:00.3 hns3_update_link_status(): Link status change to up!
HNS3_DRIVER: 0000:7d:00.6 hns3_update_link_status(): Link status change to up!
HNS3_DRIVER: 0000:7d:00.7 hns3_update_link_status(): Link status change to up!

[Switching to Thread 0xffffc92c2f40 (LWP 7937)]
hns3_tx_bulk_free_buffers (txq=0x98d21a000) at
../drivers/net/hns3/hns3_rxtx_vec.h:22
22      ../drivers/net/hns3/hns3_rxtx_vec.h: No such file or directory.
(gdb) bt 
#0  hns3_tx_bulk_free_buffers (txq=0x98d21a000) at
../drivers/net/hns3/hns3_rxtx_vec.h:22
#1  0x0000ffffcb5b8788 in hns3_tx_free_buffers (txq=0x98d21a000) at
../drivers/net/hns3/hns3_rxtx_vec.h:72
#2  0x0000ffffcb5ba2fc in hns3_xmit_fixed_burst_vec (tx_queue=0x98d21a000,
tx_pkts=0xffffc92c1f08, nb_pkts=1)
    at ../drivers/net/hns3/hns3_rxtx_vec_neon.h:41
#3  0x0000ffffcb5bb1c4 in hns3_xmit_pkts_vec (tx_queue=0x98d21a000,
tx_pkts=0xffffc92c1f08, nb_pkts=1)
    at ../drivers/net/hns3/hns3_rxtx_vec.c:47
#4  0x0000fffff768bdbc in safe_rte_eth_tx_burst (port=0, qid=0,
pkts=0xffffc92c1f08, nb=1)
    at /home/joy/ntas-gm/src/app/capture/readers/readers-dpdkplane.c:57
#5  0x0000fffff769906c in hwTxThreads_send_packet (arg=0x0) at
/home/joy/ntas-gm/src/app/capture/readers/readers-dpdkplane.c:2421
#6  0x0000fffff1616e80 in eal_thread_loop (arg=0x1) at
../lib/eal/common/eal_common_thread.c:199
#7  0x0000fffff1631f80 in eal_worker_thread_loop (arg=0x1) at
../lib/eal/linux/eal.c:517
#8  0x0000fffff7e82508 in  () at /usr/lib64/libc.so.6
#9  0x0000fffff7ee9cdc in  () at /usr/lib64/libc.so.6
(gdb) bt full
#0  hns3_tx_bulk_free_buffers (txq=0x98d21a000) at
../drivers/net/hns3/hns3_rxtx_vec.h:22
        free = 0x98d0d9d80
        tx_entry = 0x98d0dba00
        m = 0xffffc92c335c
        nb_free = 0
        i = 0
#1  0x0000ffffcb5b8788 in hns3_tx_free_buffers (txq=0x98d21a000) at
../drivers/net/hns3/hns3_rxtx_vec.h:72
        tx_desc = 0x98d120f80
        i = 32
#2  0x0000ffffcb5ba2fc in hns3_xmit_fixed_burst_vec (tx_queue=0x98d21a000,
tx_pkts=0xffffc92c1f08, nb_pkts=1)
    at ../drivers/net/hns3/hns3_rxtx_vec_neon.h:41
        txq = 0x98d21a000
        tx_desc = 0x98c704be0
        tx_entry = 0x98c6c4b10
        next_to_use = 3
        nb_commit = 1
        nb_tx = 1
        n = 32766
        i = 1
#3  0x0000ffffcb5bb1c4 in hns3_xmit_pkts_vec (tx_queue=0x98d21a000,
tx_pkts=0xffffc92c1f08, nb_pkts=1)
    at ../drivers/net/hns3/hns3_rxtx_vec.c:47
        ret = 1
        new_burst = 1
        txq = 0x98d21a000
        nb_tx = 0
#4  0x0000fffff768bdbc in safe_rte_eth_tx_burst (port=0, qid=0,
pkts=0xffffc92c1f08, nb=1)
    at /home/joy/ntas-gm/src/app/capture/readers/readers-dpdkplane.c:57
        p = 0xfffff19f5500 <rte_eth_fp_ops>
        burst_fn = 0xffffcb5bb14c <hns3_xmit_pkts_vec>
        qd = 0x98d21a000
#5  0x0000fffff769906c in hwTxThreads_send_packet (arg=0x0) at
/home/joy/ntas-gm/src/app/capture/readers/readers-dpdkplane.c:2421
        mbuf = 0xce1056780
        dfDpum = 0xce10567e0
        privDpum = 0xce1056800
        nb_tx = 1
        i = 0
        hwTxThreadsIdx = 0
        lcore_id = 1
        thrnamestr = "dpdkHwTxT0C1", '\000' <repeats 19 times>
        toHwTxRings = 0x77937150
        toHwTxRing = 0x98d35f280
        mbufs = {0xce1056780, 0x0 <repeats 63 times>}
        dequeCnt = 1
        mode = 0
        portidx = 0 '\000'
        hwdynamicPortidx = 0
        queueIdx = 0
        hwTxThreads = 0x777c9dd0
        pktegroup = 0
        pgidx = 0
#6  0x0000fffff1616e80 in eal_thread_loop (arg=0x1) at
../lib/eal/common/eal_common_thread.c:199
        f = 0xfffff7697980 <hwTxThreads_send_packet>
        fct_arg = 0x0
        lcore_id = 1
        cpuset = "1", '\000' <repeats 254 times>
        ret = 0
#7  0x0000fffff1631f80 in eal_worker_thread_loop (arg=0x1) at
../lib/eal/linux/eal.c:517
#8  0x0000fffff7e82508 in  () at /usr/lib64/libc.so.6
#9  0x0000fffff7ee9cdc in  () at /usr/lib64/libc.so.6
(gdb)

-- 
You are receiving this mail because:
You are the assignee for the bug.

                 reply	other threads:[~2026-07-08 14:16 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-1965-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