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 885FC4383F; Fri, 5 Jan 2024 18:40:11 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 766A94064C; Fri, 5 Jan 2024 18:40:11 +0100 (CET) Received: from mail-oo1-f47.google.com (mail-oo1-f47.google.com [209.85.161.47]) by mails.dpdk.org (Postfix) with ESMTP id 33920402CC for ; Fri, 5 Jan 2024 18:40:10 +0100 (CET) Received: by mail-oo1-f47.google.com with SMTP id 006d021491bc7-59641a03f31so272162eaf.2 for ; Fri, 05 Jan 2024 09:40:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1704476409; x=1705081209; 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=4nZOc5haGSefVnfDuMJ6vhuL9Vw4B5N/GVPyoahcwgk=; b=Ot/RHLmVxTB+PDFoEK5GiwjFtb0pi2u9TP/KQQFsx/EeGkEL0S0d7Z1hIir+UeIker gjYzkfRlfJpKq5fj9s1W3ODOwAgIIA3xCLP43+wfBeg0N2yT2KJum6WKZk6vU4f7gzPd qh74t7XFJG5BVzJtklrBP4Tbw1B5ZCqQowaCi8Y9OUwmE47Ocx/2bs1VQdrgA5OZ3bA/ 2GixD593YumCPl4ndW1gqFfkcjxvs5nOl/hlBThsWc2oRl7YO8/R1LWRD4PKnZu+P6CB ATkHe9OuebiaAaD+XWi6wlqVEPguvuaM60RLljGXYtK+C//JOTSs04f9LYYJ4TaTFxiq 4kOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704476409; x=1705081209; 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=4nZOc5haGSefVnfDuMJ6vhuL9Vw4B5N/GVPyoahcwgk=; b=EsXO7mBbZJVNwo8FCgYKdSsG3NN8Xw3vigWpC+Om8hEq5pgpBDLf9MgDnebOhMOthR h+B3ExRWts/E552f6qtpAetffPRMUHKSS14Z7Cl77DSKT6T0Pqc6wTCwrEnOMSBp4ZQp rRwTS3xHQAitVujDaalaHPJlgplXxYEWJ0tnF+wQ4KweAL54DaSpd06m9TJww/S1a2Sg eV/6Tb/dDA6TrpNWWYEyNcFtpbk1j6lkLHughKYBhuMnpCNA581jNtTPPDrvqHBsoCIw XpNlRcKxcwRA2YF57U4FYmIfQdTLqRymwUNg/5DMih5Ns3RmYVvKaJpEGyzUVgd11CK+ D3WA== X-Gm-Message-State: AOJu0YxPVJ6ek9bndmq7ElMMd4GMDsaSmF18Z0+pApq046UKHP3Wqs5G AgtJfSrGmrq3doYKkRruqmznQEwHBFVvgA== X-Google-Smtp-Source: AGHT+IGCKdxCcv5+ahJq2QK/ZOqm/5qjuH+iq4No1p8YC6irdCOmJ7iP6RUqkNqWDR/Ao2UgdZGspw== X-Received: by 2002:a05:6358:7215:b0:170:68c8:1894 with SMTP id h21-20020a056358721500b0017068c81894mr2754563rwa.64.1704476409388; Fri, 05 Jan 2024 09:40:09 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id 2-20020aa79102000000b006dab0d72cd0sm1644781pfh.214.2024.01.05.09.40.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 09:40:09 -0800 (PST) Date: Fri, 5 Jan 2024 09:40:07 -0800 From: Stephen Hemminger To: Madhuker Mythri Cc: "ferruh.yigit@amd.com" , "dev@dpdk.org" Subject: Re: [External] : Re: [PATCH] net/tap: Modified TAP BPF program as per the new Kernel-version upgrade requirements. Message-ID: <20240105094007.2cf85f1d@hermes.local> In-Reply-To: References: <20240104172756.2213-1-madhuker.mythri@oracle.com> <20240104123853.7ade1ec7@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 Fri, 5 Jan 2024 14:58:22 +0000 Madhuker Mythri wrote: > Hi Stephen, > > As part of hash calculation logic, the hash value is going beyond 32-bits and thus the eBPF verifier throws error with the 32-bit hash variable. > So, I need to modify as 64-bit hash variable to resolve the BPF verifier error. > > Here, in the code this rte_softrss_be() function is returning the hash variable, which is a 64-bit value, so modified the return type from 32-bit to 64-bit. Simple cast should do the necessary truncation.