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 891F2438E0; Tue, 16 Jan 2024 17:43:50 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1C6BE40278; Tue, 16 Jan 2024 17:43:50 +0100 (CET) Received: from mail-pg1-f173.google.com (mail-pg1-f173.google.com [209.85.215.173]) by mails.dpdk.org (Postfix) with ESMTP id 50D97400D6 for ; Tue, 16 Jan 2024 17:43:48 +0100 (CET) Received: by mail-pg1-f173.google.com with SMTP id 41be03b00d2f7-5cedfc32250so4666218a12.0 for ; Tue, 16 Jan 2024 08:43:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1705423427; x=1706028227; 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=5GEG1yxuDLWiSCMMekErgYIqLpXRHxACrxmo67drKnQ=; b=BC8lZ3dbV+I7+SfmlbeBrFCbicCYdS3IgfGuJ7IKw65c0R5u4EVmcYH8Tq4vXPX8FM KmEx57oBMFlc/prmGnI1Y3047BT1Pnu8I3lum19IF4rv7nAMKH2E1OhEW6CzqkGXpjHm 79NEKjywdGyhjDWblI4zJlsQIZppTB0WBIRAcWfpp9uXkL/jW5ceAQe0wsQ+Dp343jtc i21MKxivvIUm7KtHn/X8tLbjBJP/On0ohWzmVHYuswwtfrg6uzj42bWVlKBRiq9RT5tf KeD45GZxM4JDZXO8p2ToezZy2ghkOI/WJd+IOkJYLhL5N5O+B3IVLFOMVbeXzOb1+Fze lwpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705423427; x=1706028227; 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=5GEG1yxuDLWiSCMMekErgYIqLpXRHxACrxmo67drKnQ=; b=Ux9n0vIE5WpCEFwbauKrTZ2CuYUlbPeDtFTbsrEQRnZ/7T75vEZ3+QmH6YwCR7iaJV 5s1TI9qgmsLcECwWs9GK/BsEEkG3FqYEyFBoUmfChvoUL3N3p2ywccpahYqRjahxRpwq MP6Aetm39jRzzlJHUDdJkQkMxMxN4FGh/9fcp5Y4QEFFO1X+hNGqGU/RFuse+McgK/Se Y+vJx+a6bzyFAJcsR+05wfi5bv4p0XQosQkKU3d2srDv9dZFrLi0AJnq/ujCYG7/S8ee x5sIN6YuhjNP/Nnbv7HafH/Ia+8GEDhjRZg3uT5Uax8Jt+kh0wTd/6I4yBbajgyG/igX XNNw== X-Gm-Message-State: AOJu0YzQxh17x/UXz1rexHvvUiV5a11X/4HufJbSNyP8sr9uCAvw9jPp t6HOBI0U/qdIPBP1P+6cWMKVUN+mofhJ1A== X-Google-Smtp-Source: AGHT+IESZnclkxI5if4YkoCKhIHKQqzUZ1hgzP5Ke4uQu8QYtShSepvttv35IJ3Pl8z3gGn1aNwGmg== X-Received: by 2002:a05:6a20:d90c:b0:19a:bc44:ec02 with SMTP id jd12-20020a056a20d90c00b0019abc44ec02mr2704498pzb.105.1705423427500; Tue, 16 Jan 2024 08:43:47 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id u24-20020aa78498000000b006d97f80c4absm9470019pfn.41.2024.01.16.08.43.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 08:43:47 -0800 (PST) Date: Tue, 16 Jan 2024 08:43:45 -0800 From: Stephen Hemminger To: Madhuker Mythri Cc: "dev@dpdk.org" , "ferruh.yigit@amd.com" Subject: Re: [External] : Re: [PATCH] net/tap: Modified TAP BPF program as per the Kernel-version upgrade requirements. Message-ID: <20240116084345.4bb401a6@hermes.local> In-Reply-To: References: <20240112134821.2067-1-madhuker.mythri@oracle.com> <20240112084131.1786113c@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 Sat, 13 Jan 2024 17:50:19 +0000 Madhuker Mythri wrote: > With the original code BPF verifier throws error, due to undefined array access and thus could failed to load the BPF instructions onto the Kernel. > For safe execution on the Kernel, the array access with such undefined value throws error. > > So, came up with this loop which has Max-queues as limit. > > Thanks, > Madhuker, The result of x & 15 is always going to be less than 16. The Oracle BPF verifier modifications are junk if it can figure that out.