Skip to contentSkip to conversation

ptpclient causes NIC I225/I226 port RX missed

DPDK/examples Bug 1398 [email protected] 1 participant 2 messages Mar 12, 2024 – Mar 26, 2024

lore
Share & tools
lore
#0 lore raw

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: [email protected]
          Reporter: [email protected]

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 <[email protected]>
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.

[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
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#1 lore raw

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

[email protected] ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from [email protected] ([email protected]) --- Verify on main dpdk-24.03.0-rc4: 3ce30fc64
Tested pass on regression I225-LM testbed.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.