DPDK patches and discussions
 help / color / mirror / Atom feed
From: Chinmaya Agarwal <Chinmaya.Agarwal@hsc.com>
To: "dev@dpdk.org" <dev@dpdk.org>
Subject: Issue seen in DPDK behavior for virtio driver
Date: Mon, 25 Jul 2022 08:25:11 +0000	[thread overview]
Message-ID: <PN3PR01MB5770DBACC60A68EC7F6FA83994959@PN3PR01MB5770.INDPRD01.PROD.OUTLOOK.COM> (raw)

[-- Attachment #1: Type: text/plain, Size: 4265 bytes --]

Hi,

We are running VPP v22.02 and DPDK v21.11.0 on Centos 8 VM. We are facing an issue where if we configure an SRv6 policy on VPP with sid list having 4 SIDs we don't see packet coming out of the VPP interface and if we configure 5 SIDs, again we don't see the packets coming out of the interface plus VPP crashes after some time. We analyzed the crash dump, and it seems that the crash is happening in DPDK library in the virtio driver code leg. The interface we are using has virtio driver associated with it. Below is the DPDK core dump:-

Thread 1 "vpp_main" received signal SIGSEGV, Segmentation fault.
0x00007fe67f1cf256 in virtio_update_packet_stats () from /usr/lib/vpp_plugins//dpdk_plugin.so
(gdb) bt
#0  0x00007fe67f1cf256 in virtio_update_packet_stats () from /usr/lib/vpp_plugins//dpdk_plugin.so
#1  0x00007fe67f1d6646 in virtio_xmit_pkts () from /usr/lib/vpp_plugins//dpdk_plugin.so
#2  0x00007fe67f42d60e in rte_eth_tx_burst (nb_pkts=<optimized out>, tx_pkts=0x7fe6862afc00, queue_id=<optimized out>,
    port_id=<optimized out>) at /opt/vpp/external/x86_64/include/rte_ethdev.h:5680
#3  tx_burst_vector_internal (n_left=1, mb=0x7fe6862afc00, xd=<optimized out>, vm=<optimized out>)
    at /usr/src/debug/vpp-22.02.0-35~ge3c583654.x86_64/src/plugins/dpdk/device/device.c:175
#4  dpdk_device_class_tx_fn_hsw (vm=<optimized out>, node=<optimized out>, f=<optimized out>)
    at /usr/src/debug/vpp-22.02.0-35~ge3c583654.x86_64/src/plugins/dpdk/device/device.c:435
#5  0x00007fe6c66bd802 in dispatch_node (last_time_stamp=<optimized out>, frame=<optimized out>,
    dispatch_state=VLIB_NODE_STATE_POLLING, type=VLIB_NODE_TYPE_INTERNAL, node=0x7fe685e93c00, vm=0x7fe68547a680)
    at /usr/src/debug/vpp-22.02.0-35~ge3c583654.x86_64/src/vlib/main.c:975
#6  dispatch_pending_node (vm=vm@entry=0x7fe68547a680, pending_frame_index=pending_frame_index@entry=10,
    last_time_stamp=<optimized out>) at /usr/src/debug/vpp-22.02.0-35~ge3c583654.x86_64/src/vlib/main.c:1134
#7  0x00007fe6c66c1ebf in vlib_main_or_worker_loop (is_main=1, vm=<optimized out>)
    at /usr/src/debug/vpp-22.02.0-35~ge3c583654.x86_64/src/vlib/main.c:1600
#8  vlib_main_loop (vm=<optimized out>) at /usr/src/debug/vpp-22.02.0-35~ge3c583654.x86_64/src/vlib/main.c:1728
#9  vlib_main (vm=<optimized out>, vm@entry=0x7fe68547a680, input=input@entry=0x7fe675df5fa0)
    at /usr/src/debug/vpp-22.02.0-35~ge3c583654.x86_64/src/vlib/main.c:2017
#10 0x00007fe6c670cc86 in thread0 (arg=140628055271040)
    at /usr/src/debug/vpp-22.02.0-35~ge3c583654.x86_64/src/vlib/unix/main.c:671
#11 0x00007fe6c5c29388 in clib_calljmp () at /usr/src/debug/vpp-22.02.0-35~ge3c583654.x86_64/src/vppinfra/longjmp.S:123
#12 0x00007ffcdf319c80 in ?? ()
#13 0x00007fe6c670e210 in vlib_unix_main (argc=<optimized out>, argv=<optimized out>)
    at /usr/src/debug/vpp-22.02.0-35~ge3c583654.x86_64/src/vlib/unix/main.c:751
#14 0xffffffffffffffff in ?? ()
#15 0x0001a53c00005137 in ?? ()

We repeated the above test with interface having ixgbe driver and we don't see this issue and we can see packet coming out of the interface with correct sid list.
What could be the possible reason for this issue? Can we modify any parameter at dpdk code level as part of debugging this issue?

Also, we tried subscribing to dpdk dev mailing list (using the same email id), but our subscription request is still pending. This issue is kind of a blocker for us that's why sending it on mail.

Thanks and Regards,
Chinmaya Agarwal.
DISCLAIMER: This electronic message and all of its contents, contains information which is privileged, confidential or otherwise protected from disclosure. The information contained in this electronic mail transmission is intended for use only by the individual or entity to which it is addressed. If you are not the intended recipient or may have received this electronic mail transmission in error, please notify the sender immediately and delete / destroy all copies of this electronic mail transmission without disclosing, copying, distributing, forwarding, printing or retaining any part of it. Hughes Systique accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus.

[-- Attachment #2: Type: text/html, Size: 5961 bytes --]

             reply	other threads:[~2022-07-25 19:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-25  8:25 Chinmaya Agarwal [this message]
2022-07-26  1:08 ` Xia, Chenbo
2022-07-27  9:06 ` Chinmaya Agarwal

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=PN3PR01MB5770DBACC60A68EC7F6FA83994959@PN3PR01MB5770.INDPRD01.PROD.OUTLOOK.COM \
    --to=chinmaya.agarwal@hsc.com \
    --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).