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 2B09543DFA; Thu, 4 Apr 2024 17:31:03 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AD8C04064A; Thu, 4 Apr 2024 17:31:02 +0200 (CEST) Received: from mail-il1-f171.google.com (mail-il1-f171.google.com [209.85.166.171]) by mails.dpdk.org (Postfix) with ESMTP id 3C612402E8 for ; Thu, 4 Apr 2024 17:31:01 +0200 (CEST) Received: by mail-il1-f171.google.com with SMTP id e9e14a558f8ab-368a360bb1aso6463795ab.0 for ; Thu, 04 Apr 2024 08:31:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1712244660; x=1712849460; 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=3LMSRH/k3ghE1obJS8IKpYHqAQ6rBPz/SVR0VDxL5Vo=; b=By25CVTscKJywteLrwRbkgBwl0pjU42YpoTq2CxpUJblODmeAa+FAKwWDIdbL905h7 CGSPdVJzoIIz73qtIBOY9d87otEK3VDK+lR1kNviuf7Gm25RvJJ+Hz7068pRQgAwj7mi dBxz7DmDlpxvArsBLPWOsf5h9aRuywojy/x/0i9hBDihmeQ5kHZPDXOvm6cbxho9O+/4 Ce3E29cPQRe1DLaxUgi+Lt+EqhqEJVDAJpASsEfohrczed+VJVHlKT77makJ3qK9DEjC cEivcHHJJEd3oAUW5Csq4ACkG93DiLG2xVjtJG6vz4ft4DZ/y38VaK6nJ8sjxgrpkYfI /KrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712244660; x=1712849460; 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=3LMSRH/k3ghE1obJS8IKpYHqAQ6rBPz/SVR0VDxL5Vo=; b=dYIcA7/Xkeh/TJWPmC0ouV3OHBEeC0A9WQX0+LhQ+XHKq9y9R8IgjMlM72ep8ACnY9 C59V3n8JRiUxDkLBkXFHDAY5vqYX92GaFDJ2+6j+lwujZwBiA8lZcfRY2fhO0MTGEoM6 sx/T+du6hE+aZQU/ROow5IXCtmON6LeL+23S/G1eo4c8gBS4Ec+r3Un40JBvmctnBjMM 3B9g1qmpYSCrFHINXsxM2w10M2K5fQKsHBDp8NSdcWEpgq2aua1TucvIqtLAaJEe7k1g XnF+U47XwIMZ8aQ3CiR3zR7rIyJM+74yJf2TBB3MNmfbDJiqlSP+L5sfzovTPllpsWUy p7cg== X-Gm-Message-State: AOJu0YyhTDDrhfjuorsxpXo7J7yrVaQGfrp4fCD7bfWQ03vSIWOmMXI/ 98nOeAKqG+Mq4kdnvY379TugyAgE0XjgwOxlXjE6dqCcDUcCZUqY5lOwtNpTrkWoOtZfC2rYPOB Ij7E= X-Google-Smtp-Source: AGHT+IEDMXn7cNQD+jT1aqQO08VBoddMdnbOedoBjKulqHy4E3d/wc/tKiegaGLLz7AZ2sTVxNCdIg== X-Received: by 2002:a05:6e02:1c2a:b0:369:b39e:3d67 with SMTP id m10-20020a056e021c2a00b00369b39e3d67mr3037114ilh.29.1712244660381; Thu, 04 Apr 2024 08:31:00 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id x8-20020a63f708000000b005dc1edf7371sm13561767pgh.9.2024.04.04.08.31.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 08:31:00 -0700 (PDT) Date: Thu, 4 Apr 2024 08:30:58 -0700 From: Stephen Hemminger To: Luca Boccassi Cc: dev@dpdk.org Subject: Re: [PATCH v5 7/8] net/tap: use libbpf to load new BPF program Message-ID: <20240404083058.1fc6884d@hermes.local> In-Reply-To: References: <20240130034925.44869-1-stephen@networkplumber.org> <20240402171751.138324-1-stephen@networkplumber.org> <20240402171751.138324-8-stephen@networkplumber.org> <8794e9c209bc8b3888ef19452b1cfd3d3c48b9b3.camel@debian.org> <20240403085523.706151b6@hermes.local> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 On Wed, 3 Apr 2024 22:19:20 +0100 Luca Boccassi wrote: > On Wed, 3 Apr 2024 at 16:55, Stephen Hemminger > wrote: > > > > On Wed, 03 Apr 2024 12:50:35 +0100 > > Luca Boccassi wrote: > > > > > Using bpftool to generate the header at build time is a bit icky, > > > because it will look at sysfs on the build system, which is from the > > > running kernel. But a build system's kernel might be some ancient LTS, > > > and even be a completely different kconfig/build/distro from the actual > > > runtime one. > > > > One other option would be to ship a pre-built skeleton file. > > Which is what the method the old code did. > > But that creates an implied dependency on the developers machine build environment. > > That's what the distro-provided vmlinux.h should help with - by > #include'ing that, it should be possible to build a co-re bpf program, > no other artifacts needed. You can try it out locally by generating it > from the local running kernel on your dev machine: > > bpftool btf dump file /sys/kernel/btf/vmlinux format c > vmlinux.h What about Ubuntu with borked installation of bpftool?