All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla@dpdk.org
To: dev@dpdk.org
Subject: [DPDK/examples Bug 1398] [dpdk-24.03] ptpclient causes NIC I225/I226 port RX missed
Date: Tue, 12 Mar 2024 03:59:09 +0000	[thread overview]
Message-ID: <bug-1398-3@http.bugs.dpdk.org/> (raw)

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

https://bugs.dpdk.org/show_bug.cgi?id=1398

            Bug ID: 1398
           Summary: [dpdk-24.03] ptpclient causes NIC I225/I226 port RX
                    missed
           Product: DPDK
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: examples
          Assignee: dev@dpdk.org
          Reporter: tingtingx.liao@intel.com
  Target Milestone: ---

[Environment]
DPDK version: a86f381b8 version: 24.03-rc2
OS: Ubuntu 22.04.3 LTS/5.15.0-82-generic
Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Hardware platform: Intel(R) Xeon(R) CPU E5-2699 v4 @ 2.20GHz
NIC hardware: Ethernet Controller I225-LM 15f2
NIC firmware:
driver: igc
version: 5.15.0-82-generic
firmware-version: 1003:8725

[Test Setup]
1. build dpdk-ptpclient
rm -rf x86_64-native-linuxapp-gcc
CC=gcc meson -Denable_kmods=True -Dlibdir=lib -Dc_args=-DRTE_LIBRTE_IEEE1588
--default-library=static x86_64-native-linuxapp-gcc
meson configure -Dexamples=ptpclient x86_64-native-linuxapp-gcc
ninja -C x86_64-native-linuxapp-gcc

2. bind port to vfio-pci and launch dpdk-ptpclient
./usertools/dpdk-devbind.py -b vfio-pci 81:00.0
./x86_64-native-linuxapp-gcc/examples/dpdk-ptpclient  -l 1-2 -n 4 -a
0000:81:00.0  --file-prefix=dpdk_2194090_20240312185937      -- -T 0 -p 0x1 &

3. kill it in a few seconds
killall dpdk-ptpclient

4. launch dpdk-testpmd
x86_64-native-linuxapp-gcc/app/dpdk-testpmd  -l 1-2 -n 4 -a 0000:81:00.0
--file-prefix=dpdk_1781719_20240309165130    -- -i --mbcache=200
--mbuf-size=1024 --portmask=0x1 --max-pkt-len=9000 --port-topology=loop
--tx-offloads=0x00008000
set verbose 1
set fwd mac
start

5. send packets with the peer of port
sendp([Ether(dst='00:a0:c9:00:00:00',
src='00:00:20:00:00:00')/IP()/Raw(load=b'X')],iface="ens162f0",count=1,inter=0)

6. check if port has received a packet

[Results]
testpmd> show port stats 0  
######################## NIC statistics for port 0  ########################
  RX-packets: 0          RX-missed: 1          RX-bytes:  0
  RX-errors: 0
  RX-nombuf:  0
  TX-packets: 0          TX-errors: 0          TX-bytes:  0  Throughput (since
last show)
  Rx-pps:            0          Rx-bps:            0
  Tx-pps:            0          Tx-bps:            0
  ############################################################################
testpmd>

[Expected Results]
testpmd> port 0/queue 0: received 1 packets
  src=00:00:20:00:00:00 - dst=00:A0:C9:00:00:00 - pool=mb_pool_1 - type=0x0800
- length=60 - nb_segs=1 - hw ptype: L2_ETHER L3_IPV4  - sw ptype: L2_ETHER
L3_IPV4  - l2_len=14 - l3_len=20 - Receive queue=0x0
  ol_flags: RTE_MBUF_F_RX_L4_CKSUM_UNKNOWN RTE_MBUF_F_RX_IP_CKSUM_UNKNOWN
RTE_MBUF_F_RX_OUTER_L4_CKSUM_UNKNOWN
testpmd> show port stats 0  
######################## NIC statistics for port 0  ########################
  RX-packets: 1          RX-missed: 0          RX-bytes:  60
  RX-errors: 0
  RX-nombuf:  0
  TX-packets: 1          TX-errors: 0          TX-bytes:  60  Throughput (since
last show)
  Rx-pps:            0          Rx-bps:           64
  Tx-pps:            0          Tx-bps:           64
  ############################################################################
Regression
Is this issue a regression: (Y/N) Y

commit 8badf48d2100aa4f16b48f8006774febb65e47f3
Author: Rahul Bhansali <rbhansali@marvell.com>
Date:   Wed Aug 31 12:19:24 2022 +0530



    examples/ptpclient: add signal handler for cleanup



    This adds the signal handler for SIGINT, SIGTERM.
    Also, this will come out from infinite loop and do cleanup once it receives
    any of the registered signal.



    Signed-off-by: Rahul Bhansali <rbhansali@marvell.com>
[dmesg]
[76735.068678] igc 0000:81:00.0: PCIe PTM not supported by PCIe bus/controller
[76735.093468] pps pps0: new PPS source ptp1
[76735.093537] igc 0000:81:00.0 (unnamed net_device) (uninitialized): PHC added
[76735.116776] igc 0000:81:00.0: 4.000 Gb/s available PCIe bandwidth (5.0 GT/s
PCIe x1 link)
[76735.116785] igc 0000:81:00.0 eth0: MAC: 00:a0:c9:00:00:00
[76735.120775] igc 0000:81:00.0 ens801: renamed from eth0
[76735.130883] igc 0000:81:00.0 ens801: PHC removed
[76735.272868] igc 0000:83:00.0 ens803: PHC removed
[76735.398996] Intel(R) 2.5G Ethernet Linux Driver
[76735.399002] Copyright(c) 2018 Intel Corporation.
[76735.399253] igc 0000:81:00.0: PCIe PTM not supported by PCIe bus/controller
[76735.424122] pps pps0: new PPS source ptp1
[76735.424206] igc 0000:81:00.0 (unnamed net_device) (uninitialized): PHC added
[76735.448722] igc 0000:81:00.0: 4.000 Gb/s available PCIe bandwidth (5.0 GT/s
PCIe x1 link)
[76735.448732] igc 0000:81:00.0 eth0: MAC: 00:a0:c9:00:00:00
[76735.449022] igc 0000:83:00.0: PCIe PTM not supported by PCIe bus/controller
[76735.452603] igc 0000:81:00.0 ens801: renamed from eth0
[76735.477006] pps pps1: new PPS source ptp2
[76735.477076] igc 0000:83:00.0 (unnamed net_device) (uninitialized): PHC added
[76735.500841] igc 0000:83:00.0: 4.000 Gb/s available PCIe bandwidth (5.0 GT/s
PCIe x1 link)
[76735.500851] igc 0000:83:00.0 eth0: MAC: 00:a0:c9:00:00:00
[76735.504398] igc 0000:83:00.0 ens803: renamed from eth0
[76736.139395] igc 0000:81:00.0 ens801: PHC removed
[76800.680517] vfio-pci 0000:81:00.0: vfio_ecap_init: hiding ecap 0x1f@0x1f0
[76800.680528] vfio-pci 0000:81:00.0: vfio_ecap_init: hiding ecap 0x1e@0x1e0
[76808.968414] vfio-pci 0000:81:00.0: vfio_ecap_init: hiding ecap 0x1f@0x1f0
[76808.968421] vfio-pci 0000:81:00.0: vfio_ecap_init: hiding ecap 0x1e@0x1e0

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

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

             reply	other threads:[~2024-03-12  3:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-12  3:59 bugzilla [this message]
2024-03-26  8:16 ` [DPDK/examples Bug 1398] [dpdk-24.03] ptpclient causes NIC I225/I226 port RX missed bugzilla

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-1398-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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.