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 2995E4233C for ; Mon, 9 Oct 2023 17:14:45 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E6532402C2; Mon, 9 Oct 2023 17:14:44 +0200 (CEST) Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) by mails.dpdk.org (Postfix) with ESMTP id 05C2C402A3 for ; Mon, 9 Oct 2023 17:14:43 +0200 (CEST) Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-1c5c91bec75so30282755ad.3 for ; Mon, 09 Oct 2023 08:14:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1696864483; x=1697469283; 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=2WvVe9WcrCcKmfQkWguAuFPIl5fsA1Tf0sKRYdg2qU8=; b=GdRCoUHxbb9ncZYC3Q49W9viq1/btpmsrLK36hdJM1abvrViosnsd0DyOPdkxXDaZc bE55WQlgkjcC2Dm+0kRekWY+3nCHTVr0vy6nWe09PRLl0vPzDajPLJJ4uoFZrsPMzaPs BNxHSoEXcLXxd3pgw1EvMOXex9XyqiG+tnW1HF+qya0VOCPfD6QTiyf8BzrjYfWgqURX s/RxDOJc/1PB0N8Y3lcJXkWlRlRNmz1Pr91jiZWK5gyWsmYDi1z9qMwVllDb/2wiUZy9 /w+9RtwS52w3T5v7N0MXCCF7B+iVkepZSzseLdV+DvBao0WfeowqnJnwwhXcMnx7pN0o TyzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696864483; x=1697469283; 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=2WvVe9WcrCcKmfQkWguAuFPIl5fsA1Tf0sKRYdg2qU8=; b=T/BgnCzZ70X1xDAcDrGb24WIOrFx8mwx9pyIAznxFx76qKAMcid9QASvp7T7XTEVMd V7sDupL3nv7tGT/4YEtfWmOssB82mkwUcPEpKGSwjiX7PLD1RCN5EhQ5sfc919N8OFlI CDYliLRId7qBtLQVr/IPqd80LU5FXpjqF7rqZu552pZGAi0hbKs8+zxS99kZjpDzOahP fCZaRfRi5b9dpKExIdpUfpzMc4NGvuYvAUzM9loXnlhpVN4qKkIL+HhnGyXJNeINa4q3 OouLvZnWb00L4uNPFr7k1LrExPAbQHJoDFZ7BQwu6Xjrp+NCnYqfu1Yukqhh3r6sDNR8 Spfw== X-Gm-Message-State: AOJu0Yz3HAH16B4XmefkO7Ea50DS/mK3rYxw/83qRWgXkQYHFuh2QL7m qe2OehavTSlQLpMJkW0P9KQdCis+F5CjUIRmA9Y= X-Google-Smtp-Source: AGHT+IF52w5LtD9yi3zk1EymlYHw5P6/dHsho+N1nRPHJa8qDJeqlI0lmfz0Ky+JwfGICNnk4m34QQ== X-Received: by 2002:a17:902:ecc8:b0:1c4:4a4d:cda with SMTP id a8-20020a170902ecc800b001c44a4d0cdamr16085291plh.15.1696864482926; Mon, 09 Oct 2023 08:14:42 -0700 (PDT) Received: from hermes.local (204-195-126-68.wavecable.com. [204.195.126.68]) by smtp.gmail.com with ESMTPSA id n17-20020a170902e55100b001c0de73564dsm9669060plf.205.2023.10.09.08.14.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 08:14:42 -0700 (PDT) Date: Mon, 9 Oct 2023 08:14:40 -0700 From: Stephen Hemminger To: Kouilakonda Anudattu Cc: "users@dpdk.org" Subject: Re: net/tap: eBPF failed to load BPF section and failed to create flows for TAP device Message-ID: <20231009081440.6b6ec0c3@hermes.local> In-Reply-To: References: 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 Mon, 9 Oct 2023 07:04:49 +0000 Kouilakonda Anudattu wrote: > I'm adding some additional details to provide more context. I'm encountering this issue on Azure/Hyper-V platform with the existing DPDK-22.11.1 tap_bpf_insns.h byte-code. > > > Regards, > Anudattu. > > From: Kouilakonda Anudattu > Sent: Monday, October 9, 2023 9:48 AM > To: users@dpdk.org > Subject: [External] : net/tap: eBPF failed to load BPF section and failed to create flows for TAP device > > Hi All, > > > With the latest Oracle EL9 with DPDK 22.11.1 version, I modified the RSS eBPF C program and generated the structure of a C array in the 'tap_bpf_insns.h' file. > This array is in eBPF bytecode instructions format. However, even with new bytecode eBPF failed to load TAP PMD with the following error: > > rss_add_actions(): Failed to load BPF section 'l3_l4' (7): Argument list too long. > net_failsafe: Failed to create a flow on sub_device 1." > > > Currently we are using below kernel: > 5.15.0 #9 SMP PREEMPT > x86_64 GNU/Linux > > > How to resolve these errors ? You need to debug the TAP device with either gdb or adding printfs. Did you see the modified build instructions? https://patchwork.dpdk.org/project/dpdk/patch/20230722163259.4304-1-stephen@networkplumber.org/