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 75FDE43D05 for ; Wed, 20 Mar 2024 17:24:16 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2EBD94114B; Wed, 20 Mar 2024 17:24:16 +0100 (CET) Received: from mail-pg1-f179.google.com (mail-pg1-f179.google.com [209.85.215.179]) by mails.dpdk.org (Postfix) with ESMTP id 55B8540ED3 for ; Wed, 20 Mar 2024 17:24:14 +0100 (CET) Received: by mail-pg1-f179.google.com with SMTP id 41be03b00d2f7-5d3912c9a83so3721994a12.3 for ; Wed, 20 Mar 2024 09:24:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1710951853; x=1711556653; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=RJOvlj1O55A8mC4QKbgcXOGcTIPsEHzVe0dIN7qywzk=; b=P9uPU6DOJbsLmL/qf1Hjb2muQqDhbI4ClOgkRDpQnN/+z7NT5gQsLiBEWUT1PnMeJm YgyxuzREP7Yty6DdhC5Mfe2u4nv6Cb5+OmcnOdY3MOvIGgFf4+szd5x6Wg/xSdaQkJrU sLWUswOKLgTV+wdhabuys0X0wLYXvHf0qvThKuZL1yvtc15pj+SSMR5j9J1U6U+42MxI ow5/2E3kUlyIcnKPrwJa16DKmW0A142Iw5dDV3RPSnQ4nZla/b8ppmWEa83TorS+OeaA eFR63WBTBGWwIf0Ztlkjr8nqI/vMY+G6CjeRHeYw/lvdpF7soZGaMIrdDpfg7ML/oRyu fffA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710951853; x=1711556653; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RJOvlj1O55A8mC4QKbgcXOGcTIPsEHzVe0dIN7qywzk=; b=WXO1IeJ0KiVfVvxnNuxFZizT8DFEBKJqIfQ/fOJtmwPgnKiVrIKHlz8XJYdiltq5Aq YlPJ2nITcOwGHqwoqUaHRw2u/ko3xBqqkbLIFcogsG8QJxJO48yTW5WfQv8sYZQyq6RL YLtj69peCNJbRMwXlgd3mZZW8jzmmft1Oi8R2nAYabNYrqob0QgTPk+Cx4QhEHFjBkxh jcUbcIRTXiXd+FhPvMXQRakrw5TxqDSWhG8zj9Xhucx2TrKMDZXJcmmPdRNnyvNZKR/w DMSMTactK7y7cGGt5z+zFJUHa9mBU3CYFcLd/3r+4sAggVOxn0f61jzoILyLFxIPse1w 4sKQ== X-Gm-Message-State: AOJu0YyfjqIpNZ3ubxCxiVyJzPCpGpnJiOlqPr9kMpGQFWSyE0TK6/MG GO7Bx1vuJ71RqBpwXZDT63A+JWhFnmjgsb9wRT2mA+nPvT1ojwzgHkc10kyJ2cQ= X-Google-Smtp-Source: AGHT+IFaKFYkQ0/d38B1zMiad35NjhJe2DfSCBZzRyw4nrjpf0DPehF2eK5/s/6ZfIVf+z3BdU9Uow== X-Received: by 2002:a05:6a20:d485:b0:1a1:87a9:5caa with SMTP id im5-20020a056a20d48500b001a187a95caamr20652515pzb.29.1710951853323; Wed, 20 Mar 2024 09:24:13 -0700 (PDT) Received: from hermes.local (204-195-123-203.wavecable.com. [204.195.123.203]) by smtp.gmail.com with ESMTPSA id r4-20020aa78b84000000b006e5f754646csm11731418pfd.139.2024.03.20.09.24.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 09:24:12 -0700 (PDT) Date: Wed, 20 Mar 2024 09:24:09 -0700 From: Stephen Hemminger To: Alessio Igor Bogani Cc: users@dpdk.org, Anuj Mittal Subject: Re: dpdk-testpmd on XDP Message-ID: <20240320092409.4e223a23@hermes.local> In-Reply-To: References: <20240319090747.16a3b28d@hermes.local> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 On Wed, 20 Mar 2024 08:22:05 +0100 Alessio Igor Bogani wrote: > Stephen, > > Thanks for your reply! > > On Tue, 19 Mar 2024 at 17:07, Stephen Hemminger > wrote: > > > > On Tue, 19 Mar 2024 11:48:53 +0100 > > Alessio Igor Bogani wrote: > > > > > 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 > > > [...] > > > > What distribution and kernel version? > > Custom distribution (Yocto Kirkstone) using 5.10.184.All parts > (kernel, DPDK, libbpf, xdp-tools) are built (cross-compiled) from > source. Then you need to build bpf tools from the same kernel directory and use them in the DPDK build. The problem is that DPDK build uses pkg-config to get the XDP and BPF library versions. That probably won't work as expected with this type of Yocto build.