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 39F1BA04FF for ; Fri, 29 Apr 2022 14:57:26 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B67BB415D7; Fri, 29 Apr 2022 14:57:25 +0200 (CEST) Received: from bacon.elettra.eu (bacon.elettra.eu [140.105.206.12]) by mails.dpdk.org (Postfix) with ESMTP id F14C1410E3 for ; Fri, 29 Apr 2022 14:57:24 +0200 (CEST) X-Envelope-From: Received: from zmp.elettra.eu (zmp.elettra.trieste.it [140.105.206.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bacon.elettra.eu (Postfix) with ESMTPS id 292DC41D87 for ; Fri, 29 Apr 2022 14:57:17 +0200 (CEST) Received: from zmp.elettra.eu (localhost [127.0.0.1]) by zmp.elettra.eu (Postfix) with ESMTPS id 2056014308BA for ; Fri, 29 Apr 2022 14:57:17 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zmp.elettra.eu (Postfix) with ESMTP id 01CF314308C3 for ; Fri, 29 Apr 2022 14:57:17 +0200 (CEST) X-Virus-Scanned: amavisd-new at zmp.elettra.eu Received: from zmp.elettra.eu ([127.0.0.1]) by localhost (zmp.elettra.eu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id RU6v3eEspRYw for ; Fri, 29 Apr 2022 14:57:16 +0200 (CEST) Received: from mail-yb1-f175.google.com (mail-yb1-f175.google.com [209.85.219.175]) by zmp.elettra.eu (Postfix) with ESMTPSA id D94CF14308C2 for ; Fri, 29 Apr 2022 14:57:16 +0200 (CEST) Received: by mail-yb1-f175.google.com with SMTP id s30so14305210ybi.8 for ; Fri, 29 Apr 2022 05:57:16 -0700 (PDT) X-Gm-Message-State: AOAM530v6Ue3gbSV6i7H8g4Na5pqKOF3tykwpAo2Fr2X3QNdccppWNmz o6oiW+LuM+5JPsX/pXKhkIcmbrTaZuBRZodmiMs= X-Google-Smtp-Source: ABdhPJzJnQDYZXEkQGHwyfi0PItk4HO5pnM8DyGoUJ3NQYN5FXqWNDyuxKfKWB0Cg95X8VNn3ksaaAuGt/hINK7r5hw= X-Received: by 2002:a05:6902:381:b0:648:c0b9:871c with SMTP id f1-20020a056902038100b00648c0b9871cmr15994958ybs.499.1651237035117; Fri, 29 Apr 2022 05:57:15 -0700 (PDT) MIME-Version: 1.0 From: Alessio Igor Bogani Date: Fri, 29 Apr 2022 14:56:39 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: test-pmd strange output on AF_XDP To: users@dpdk.org Content-Type: text/plain; charset="UTF-8" X-elettra-Libra-ESVA-Information: Please contact elettra for more information X-elettra-Libra-ESVA-ID: 292DC41D87.AA3DB X-elettra-Libra-ESVA: No virus found X-elettra-Libra-ESVA-From: alessio.bogani@elettra.eu X-elettra-Libra-ESVA-Watermark: 1651841838.45311@Uw9/TTUkLXc3ImfyXjR1iA X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Dear DPDK users, Sorry for my very bad English. I'm trying to test DPDK on two systems which are connected to each other with a cross cable. The first one is a generic Intel x86_64 which uses net_e1000_igb. The second one is an ARMv7 which uses af_xdp and shows a strange test-pmd output. Launching test-pmd on the Intel system using: dpdk-testpmd --no-telemetry --no-huge -l0-1 -n1 -- --port-topology=chained --forward-mode=txonly --total-num-mbufs=2048 --stats-period=1 --eth-peer=0,50:51:a9:98:d4:26 produces a reasonable output: EAL: Detected CPU lcores: 2 EAL: Detected NUMA nodes: 1 EAL: Static memory layout is selected, amount of reserved memory can be adjusted with -m or --socket-mem EAL: Detected static linkage of DPDK EAL: Multi-process socket /var/run/dpdk/rte/mp_socket EAL: Selected IOVA mode 'VA' EAL: VFIO support initialized EAL: Using IOMMU type 1 (Type 1) EAL: Ignore mapping IO port bar(2) EAL: Probe PCI driver: net_e1000_igb (8086:157b) device: 0000:01:00.0 (socket 0) Set txonly packet forwarding mode testpmd: create a new mbuf pool : n=2048, size=2176, socket=0 testpmd: preferred mempool ops selected: ring_mp_mc Configuring Port 0 (socket 0) Port 0: 00:07:32:6F:EF:0D Checking link statuses... Done No commandline core given, start packet forwarding txonly packet forwarding - ports=1 - cores=1 - streams=1 - NUMA support enabled, MP allocation mode: native Logical Core 1 (socket 0) forwards packets on 1 streams: RX P=0/Q=0 (socket 0) -> TX P=0/Q=0 (socket 0) peer=50:51:A9:98:D4:26 txonly packet forwarding packets/burst=32 packet len=64 - nb packet segments=1 nb forwarding cores=1 - nb forwarding ports=1 port 0: RX queue number: 1 Tx queue number: 1 Rx offloads=0x0 Tx offloads=0x0 RX queue: 0 RX desc=512 - RX free threshold=32 RX threshold registers: pthresh=0 hthresh=0 wthresh=0 RX Offloads=0x0 TX queue: 0 TX desc=512 - TX free threshold=0 TX threshold registers: pthresh=8 hthresh=1 wthresh=16 TX offloads=0x0 - TX RS bit threshold=0 ######################## NIC statistics for port 0 ######################## RX-packets: 11 RX-missed: 0 RX-bytes: 932 RX-errors: 0 RX-nombuf: 0 TX-packets: 67473342 TX-errors: 0 TX-bytes: 4318294500 Throughput (since last show) Rx-pps: 0 Rx-bps: 0 Tx-pps: 1420391 Tx-bps: 727240920 ############################################################################ On the ARMv7 I have launched test-pmd using: dpdk-testpmd --no-telemetry --no-huge -l0-1 -n1 --vdev net_af_xdp0,iface=eth0 -- --port-topology=chained --forward-mode=rxonly --total-num-mbufs=2048 --stats-period=1 --eth-peer=0,00:07:32:6F:EF:0D producing a strange (for me) output: EAL: Detected CPU lcores: 2 EAL: Detected NUMA nodes: 1 EAL: Static memory layout is selected, amount of reserved memory can be adjusted with -m or --socket-mem EAL: Detected static linkage of DPDK EAL: Multi-process socket /var/run/dpdk/rte/mp_socket EAL: Selected IOVA mode 'VA' Set rxonly packet forwarding mode testpmd: create a new mbuf pool : n=2048, size=2176, socket=0 testpmd: preferred mempool ops selected: ring_mp_mc Configuring Port 0 (socket 0) libbpf: elf: skipping unrecognized data section(7) .xdp_run_config libbpf: elf: skipping unrecognized data section(8) xdp_metadata libxdp: XDP flag not supported by libxdp. libbpf: elf: skipping unrecognized data section(7) xdp_metadata libbpf: prog 'xdp_dispatcher': BPF program load failed: Invalid argument libbpf: prog 'xdp_dispatcher': -- BEGIN PROG LOAD LOG -- Validating prog0() func#1... btf_vmlinux is malformed Arg#0 type PTR in prog0() is not supported yet. processed 0 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0 -- END PROG LOAD LOG -- libbpf: failed to load program 'xdp_dispatcher' libbpf: failed to load object '/usr/local/lib/bpf//xdp-dispatcher.o' libxdp: Failed to load dispatcher: Invalid argument libxdp: Falling back to loading single prog without dispatcher Port 0: 50:51:A9:98:D4:26 Checking link statuses... Done No commandline core given, start packet forwarding rxonly packet forwarding - ports=1 - cores=1 - streams=1 - NUMA support enabled, MP allocation mode: native Logical Core 1 (socket 0) forwards packets on 1 streams: RX P=0/Q=0 (socket 0) -> TX P=0/Q=0 (socket 0) peer=00:07:32:6F:EF:0D rxonly packet forwarding packets/burst=32 nb forwarding cores=1 - nb forwarding ports=1 port 0: RX queue number: 1 Tx queue number: 1 Rx offloads=0x0 Tx offloads=0x0 RX queue: 0 RX desc=0 - RX free threshold=0 RX threshold registers: pthresh=0 hthresh=0 wthresh=0 RX Offloads=0x0 TX queue: 0 TX desc=0 - TX free threshold=0 TX threshold registers: pthresh=0 hthresh=0 wthresh=0 TX offloads=0x0 - TX RS bit threshold=0 ######################## NIC statistics for port 0 ######################## RX-packets: 0 RX-missed: 7363489 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 ############################################################################ Is it the output expected? What did I do wrong? Thanks! Ciao, Alessio