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 8FDBE43C8A; Tue, 12 Mar 2024 04:59:11 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7F972402DC; Tue, 12 Mar 2024 04:59:11 +0100 (CET) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id F0D4140282 for ; Tue, 12 Mar 2024 04:59:09 +0100 (CET) Received: by inbox.dpdk.org (Postfix, from userid 33) id DD74743C8B; Tue, 12 Mar 2024 04:59:09 +0100 (CET) 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 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: examples X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tingtingx.liao@intel.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 Message-ID: Content-Type: multipart/alternative; boundary=17102159490.6F10C1cB.2891469 Content-Transfer-Encoding: 7bit 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 --17102159490.6F10C1cB.2891469 Date: Tue, 12 Mar 2024 04:59:09 +0100 MIME-Version: 1.0 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 https://bugs.dpdk.org/show_bug.cgi?id=3D1398 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=3Dgcc meson -Denable_kmods=3DTrue -Dlibdir=3Dlib -Dc_args=3D-DRTE_LIBRTE= _IEEE1588 --default-library=3Dstatic x86_64-native-linuxapp-gcc meson configure -Dexamples=3Dptpclient 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=3Ddpdk_2194090_20240312185937 -- -T 0 -p 0= x1 & 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=3Ddpdk_1781719_20240309165130 -- -i --mbcache=3D200 --mbuf-size=3D1024 --portmask=3D0x1 --max-pkt-len=3D9000 --port-topology=3D= loop --tx-offloads=3D0x00008000 set verbose 1 set fwd mac start 5. send packets with the peer of port sendp([Ether(dst=3D'00:a0:c9:00:00:00', src=3D'00:00:20:00:00:00')/IP()/Raw(load=3Db'X')],iface=3D"ens162f0",count= =3D1,inter=3D0) 6. check if port has received a packet [Results] testpmd> show port stats 0=20=20 ######################## 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 (si= nce 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=3D00:00:20:00:00:00 - dst=3D00:A0:C9:00:00:00 - pool=3Dmb_pool_1 - ty= pe=3D0x0800 - length=3D60 - nb_segs=3D1 - hw ptype: L2_ETHER L3_IPV4 - sw ptype: L2_ET= HER L3_IPV4 - l2_len=3D14 - l3_len=3D20 - Receive queue=3D0x0 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=20=20 ######################## 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 (s= ince 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 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 rece= ives any of the registered signal. Signed-off-by: Rahul Bhansali [dmesg] [76735.068678] igc 0000:81:00.0: PCIe PTM not supported by PCIe bus/control= ler [76735.093468] pps pps0: new PPS source ptp1 [76735.093537] igc 0000:81:00.0 (unnamed net_device) (uninitialized): PHC a= dded [76735.116776] igc 0000:81:00.0: 4.000 Gb/s available PCIe bandwidth (5.0 G= T/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/control= ler [76735.424122] pps pps0: new PPS source ptp1 [76735.424206] igc 0000:81:00.0 (unnamed net_device) (uninitialized): PHC a= dded [76735.448722] igc 0000:81:00.0: 4.000 Gb/s available PCIe bandwidth (5.0 G= T/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/control= ler [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 a= dded [76735.500841] igc 0000:83:00.0: 4.000 Gb/s available PCIe bandwidth (5.0 G= T/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 --=20 You are receiving this mail because: You are the assignee for the bug.= --17102159490.6F10C1cB.2891469 Date: Tue, 12 Mar 2024 04:59:09 +0100 MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All
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=3Dgcc meson -Denable_kmods=3DTrue -Dlibdir=3Dlib -Dc_args=3D-DRTE_LIBRTE=
_IEEE1588
--default-library=3Dstatic x86_64-native-linuxapp-gcc
meson configure -Dexamples=3Dptpclient 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=3Ddpdk_2194090_20240312185937      -- -T 0 -p 0=
x1 &

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=3Ddpdk_1781719_20240309165130    -- -i --mbcache=3D200
--mbuf-size=3D1024 --portmask=3D0x1 --max-pkt-len=3D9000 --port-topology=3D=
loop
--tx-offloads=3D0x00008000
set verbose 1
set fwd mac
start

5. send packets with the peer of port
sendp([Ether(dst=3D'00:a0:c9:00:00:00',
src=3D'00:00:20:00:00:00')/IP()/Raw(load=3Db'X')],iface=3D"ens162f0&qu=
ot;,count=3D1,inter=3D0)

6. check if port has received a packet

[Results]
testpmd> show port stats 0=20=20
######################## 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 (si=
nce
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=3D00:00:20:00:00:00 - dst=3D00:A0:C9:00:00:00 - pool=3Dmb_pool_1 - ty=
pe=3D0x0800
- length=3D60 - nb_segs=3D1 - hw ptype: L2_ETHER L3_IPV4  - sw ptype: L2_ET=
HER
L3_IPV4  - l2_len=3D14 - l3_len=3D20 - Receive queue=3D0x0
  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=20=20
######################## 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 (s=
ince
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 <rbh=
ansali@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 rece=
ives
    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/control=
ler
[76735.093468] pps pps0: new PPS source ptp1
[76735.093537] igc 0000:81:00.0 (unnamed net_device) (uninitialized): PHC a=
dded
[76735.116776] igc 0000:81:00.0: 4.000 Gb/s available PCIe bandwidth (5.0 G=
T/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/control=
ler
[76735.424122] pps pps0: new PPS source ptp1
[76735.424206] igc 0000:81:00.0 (unnamed net_device) (uninitialized): PHC a=
dded
[76735.448722] igc 0000:81:00.0: 4.000 Gb/s available PCIe bandwidth (5.0 G=
T/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/control=
ler
[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 a=
dded
[76735.500841] igc 0000:83:00.0: 4.000 Gb/s available PCIe bandwidth (5.0 G=
T/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.
=20=20=20=20=20=20=20=20=20=20
= --17102159490.6F10C1cB.2891469--