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 88E8843CFA for ; Tue, 19 Mar 2024 11:50:00 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F0ED240298; Tue, 19 Mar 2024 11:49:59 +0100 (CET) Received: from eggs.elettra.eu (eggs.elettra.trieste.it [140.105.207.10]) by mails.dpdk.org (Postfix) with ESMTP id 1128E400D5 for ; Tue, 19 Mar 2024 11:49:57 +0100 (CET) X-Envelope-From: Received: from zmp.elettra.eu (zmp.elettra.trieste.it [140.105.206.204]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by eggs.elettra.eu (Postfix) with ESMTPS id 4TzT2F6bZpzBrLN for ; Tue, 19 Mar 2024 11:47:33 +0100 (CET) Received: from zmp.elettra.eu (localhost [127.0.0.1]) by zmp.elettra.eu (Postfix) with ESMTPS id C3F7D140FEA1 for ; Tue, 19 Mar 2024 11:49:31 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zmp.elettra.eu (Postfix) with ESMTP id B336D140FEA2 for ; Tue, 19 Mar 2024 11:49:31 +0100 (CET) X-Virus-Scanned: amavis at zmp.elettra.eu Received: from zmp.elettra.eu ([127.0.0.1]) by localhost (zmp.elettra.eu [127.0.0.1]) (amavis, port 10026) with ESMTP id TFI6bqFCH0FS for ; Tue, 19 Mar 2024 11:49:31 +0100 (CET) Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) by zmp.elettra.eu (Postfix) with ESMTPSA id 9C77D140FEA1 for ; Tue, 19 Mar 2024 11:49:31 +0100 (CET) Received: by mail-pj1-f47.google.com with SMTP id 98e67ed59e1d1-29f1686ff12so1928085a91.1 for ; Tue, 19 Mar 2024 03:49:31 -0700 (PDT) X-Gm-Message-State: AOJu0YyMfY8mpZY3pGxFEePvKF0IdHWlnQkNn18U6RgZfrWReqLsQ8/T uUzgB1gu//uJz9P8adawtGIHBNX3QAGrMIhh8evuzEmFjvU4GE2Lh77ZL71OZIM/e2ocKCSVj9t 15NEi5wo+Q3eyQ/0Cq2I2nqI9FYU= X-Google-Smtp-Source: AGHT+IHVEPWrz9S83gOQsgFInk91ZItO6n7qNio5pUg48/jDXO9r3f4pdyOIQdtjclFiuHb8EX4pDZdMlPpWLz+yty0= X-Received: by 2002:a17:90a:7f91:b0:29f:be6e:6da9 with SMTP id m17-20020a17090a7f9100b0029fbe6e6da9mr3872949pjl.4.1710845369623; Tue, 19 Mar 2024 03:49:29 -0700 (PDT) MIME-Version: 1.0 From: Alessio Igor Bogani Date: Tue, 19 Mar 2024 11:48:53 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: dpdk-testpmd on 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: 4TzT2F6bZpzBrLN X-elettra-Libra-ESVA: No virus found X-elettra-Libra-ESVA-From: alessio.bogani@elettra.eu X-elettra-Libra-ESVA-Watermark: 1711450055.95157@zCiMAtZfXVY0BQzLGdqvaw 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 Hi all, I have a machine that works without a flow using DPDK 22.11.4: # dpdk-devbind.py --bind=vfio-pci 0000:15:00.0 # dpdk-devbind.py --bind=vfio-pci 0000:15:00.3 # dpdk-testpmd -a 0000:15:00.0 -a 0000:15:00.3 -- --tx-first The dpdk-testpmd utility works as expected: +++++++++++++++ Accumulated forward statistics for all ports++++++ RX-packets: 29666849 RX-dropped: 0 RX-total: 29666849 TX-packets: 29666849 TX-dropped: 0 TX-total: 29666849 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ I would like to test the same machine with XDP (libbpf 0.7.0 and libxdp 1.2.8) on the same NICs: # reboot # export LIBXDP_OBJECT_PATH=/root/libxdp (*) # ulimit -l unlimited # dpdk-testpmd --vdev net_af_xdp0,iface=enp21s0f0 --vdev net_af_xdp1,iface=enp21s0f3 -- --tx-first In this case dpdk-testpmd doesn't work: +++++++++++++++ Accumulated forward statistics for all ports++++ RX-packets: 0 RX-dropped: 0 RX-total: 0 TX-packets: 64 TX-dropped: 0 TX-total: 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++ The only suspicious part in the output of the dpdk-testpmd utility is: [...] libxdp: XDP flag not supported by libxdp. 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 'xdp-dispatcher.o' libxdp: Failed to load dispatcher: Invalid argument libxdp: Falling back to loading single prog without dispatcher [...] I made a mistake for sure but I haven't understood what yet. Do you have any suggestions for me, please? Thank you very much! Ciao, Alessio (*) This doesn't seem to have any effect I copied all file that I thought relevant in /root/libxdp: Makefile, compat.h, libxdp.c, libxdp.pc, protocol.org, xdp-dispatcher.c, xdp-dispatcher.ll, xsk_def_xdp_prog.c, xsk_def_xdp_prog.ll, xsk_def_xdp_prog_5.3.embed.o, README.org, libxdp.3, libxdp.map, libxdp.pc.template, staticobjs, xdp-dispatcher.c.in, xdp-dispatcher.o, xsk_def_xdp_prog.embed.o, xsk_def_xdp_prog.o, xsk_def_xdp_prog_5.3.ll, bpf_instr.h, libxdp.a, libxdp.mk, libxdp_internal.h, tests, xdp-dispatcher.embed.o, xsk.c, xsk_def_xdp_prog.h, xsk_def_xdp_prog_5.3.c and xsk_def_xdp_prog_5.3.o.