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 1442843DED; Wed, 3 Apr 2024 17:55:27 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C76B44025C; Wed, 3 Apr 2024 17:55:26 +0200 (CEST) Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) by mails.dpdk.org (Postfix) with ESMTP id BE12D40144 for ; Wed, 3 Apr 2024 17:55:25 +0200 (CEST) Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-1e28856ed7aso12142915ad.0 for ; Wed, 03 Apr 2024 08:55:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1712159725; x=1712764525; 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=spmrPJAN6Zly1NflxhHXb8+akhCnRu9SJ5Yr7njnH0U=; b=XyUHGQW9CDRI+MrQmP0a/9BjDrOCwDbzYGZ4jNqB6QnTcxQoN5n7vAoNxDgr5ISpTv Vu+CL/2BfpZY6uRPCZwui7ovuMuhU3hKMu4QYnf6fIIrsDYZtAa/RD3sA3PhNBbLE+li loG0uHpzpzKjRBAqAF8WE/3QhR6PAFW1ZfgydZD0Cpf/O9m5rf0pdY0TmSPlq/6QplDe WFv10pfdc4VtUsumiUV96xYkPvDL25HKxLbSq1w1RwpdH49RbzGOy8DOO8EtBOVzXXa9 czPDm3iF/YH/xXtn1jV+WW6AwxP6E24I9kJGwJB9R0KQPu2dZ+5abhdLXERi3lNFqpEB uibw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712159725; x=1712764525; 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=spmrPJAN6Zly1NflxhHXb8+akhCnRu9SJ5Yr7njnH0U=; b=hGAs1uBRhY8/HRpH93gJCvSIwABwQOdtd10EDoqrj1HfHkyb8v8vFLNc2KmsDeodbv b+fMzB8Fu2h7F2dUAaa7k05WFl7t7Xvq4FYwNNtXq/82oPPThucFhenKOA588RB5NTXW +g1k2dycovrtViRkrZdf8k1o/WOk1OEGXqDdXleRsrsmhIg55RrJl4iI6O1rFfyOvEOF WFjNu4UMGp48j9/0vJMKJ7+YsoMwPr+ib0eLBqELpLwa4sqMrG5dE9tkwXidZsB9sf1j 7G0pN3ylg7pOs+RHWXosLjFLed8KPO1gOZJhx2PmKQgh5SbcPLrWuxAxWl6b73Xwq0gp 5eFA== X-Gm-Message-State: AOJu0YyO/j4qVDyFc0WO70MWNmlLXrsBvSBgLB/JrPlF4PuG+eyHecrQ izAkNc63UF0DynxnwYFOM4FjN3OpMa5vryLZmGsIJv8svfCFdLZERhVHraIKFKw= X-Google-Smtp-Source: AGHT+IGJQZiJzdd88sI+F1rEgqV9Z/C5iD5ahCYw29ZA0bfzrqeJ0k9HB0o4geI1BrUIdW4swZ2lQQ== X-Received: by 2002:a17:903:2344:b0:1e2:6165:80cd with SMTP id c4-20020a170903234400b001e2616580cdmr3143825plh.38.1712159724951; Wed, 03 Apr 2024 08:55:24 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id e14-20020a170902784e00b001e010c1628fsm13655785pln.124.2024.04.03.08.55.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 08:55:24 -0700 (PDT) Date: Wed, 3 Apr 2024 08:55:23 -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: <20240403085523.706151b6@hermes.local> In-Reply-To: <8794e9c209bc8b3888ef19452b1cfd3d3c48b9b3.camel@debian.org> References: <20240130034925.44869-1-stephen@networkplumber.org> <20240402171751.138324-1-stephen@networkplumber.org> <20240402171751.138324-8-stephen@networkplumber.org> <8794e9c209bc8b3888ef19452b1cfd3d3c48b9b3.camel@debian.org> 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, 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.