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 85CB443C2C; Wed, 28 Feb 2024 18:27:43 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2173942D35; Wed, 28 Feb 2024 18:27:40 +0100 (CET) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2065.outbound.protection.outlook.com [40.107.243.65]) by mails.dpdk.org (Postfix) with ESMTP id 7460B41101 for ; Wed, 28 Feb 2024 18:27:37 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EF1VvD9f10KITwIn0Q9IkozUQ/TGiV1bem/nw7zmgUKs2nXl+O30/nCXMn+9xrneBZJHdq5TkUNPUCl/UW5cNG09eyK1ovKI0gmGQMqTH1TNYPcQeJTvDeuCyQiIQ9FkcoZaFPQIfJBzdKdolaa2jNRJTHtHGKjF+L24KwbsW/VCBw254mBlG85Npx/VTjrWPym2ylH8XIpQRYZ3MU+vU5+JO6oqTJOkBuiioXaEcBoLX0CHDY7RDEb8elZuagNd7KYTD343YkZ03oBfK3vEZvkNDhbeiuZHymh3zp9HqmJqMmsr7elyqxBvzjAM/LP5dTIfY6VGt6UOZnScfEr2YA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=1W9mJBUEIg7/5QfWNw1XjtyJMQ1FcUWf8YqMGU/BP70=; b=FejTeiSz+g8cdtgx9Mob/m70LpV6CCAR5yoqOiHXwTkN0Map6dczvEYvJMzYymYtvWxuGT0V4K3UdLrm7ecgGwaaS03ehwK4K4J9A+DNEUFLECpVydMo7yIEQBxN7pvqmK5F8DlR836U9n+q3oLx7IX1BVpMGli2lozzbzWV1XwwY+RAG/gz3LOhUU1UlEr9fPfnIcoevY3m8iDpFQWhHw+g5nRY8HoCXhrO+HkBrG/Xl7vbYc4lzR+UupONTS3vZRNfFzLub6XDxa4PFk9zuDl3q9/kHo9GFiJulLsGlMf4QmLSkFbmhoJ2sqAXRLQU47Mg4AoaQIcYG34eDOrb4A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1W9mJBUEIg7/5QfWNw1XjtyJMQ1FcUWf8YqMGU/BP70=; b=qXM+dGw3AWAZPtSoJLqmGtYjqSR+sbNO5gM9LBa1YiF2DNewhIBNGR7Ryo/WmOOFhvRBhN3jONnLKHob6FVRkuprEb2vU3EKmrQPv8ykK0VYvYuhSAA4V5qdc1+3u6GzE53d/lQHXv/hNTSX2uNZE6dF/rqHO4l+RgmdCRK9Beg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) by CH3PR12MB8904.namprd12.prod.outlook.com (2603:10b6:610:167::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.39; Wed, 28 Feb 2024 17:27:35 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::3ec7:6339:1c14:c529]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::3ec7:6339:1c14:c529%5]) with mapi id 15.20.7316.039; Wed, 28 Feb 2024 17:27:35 +0000 Message-ID: <519644f4-cba9-46ba-a50c-51a7d1b4a79c@amd.com> Date: Wed, 28 Feb 2024 17:27:31 +0000 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 4/7] net/tap: rewrite the RSS BPF program Content-Language: en-US To: Stephen Hemminger Cc: dev@dpdk.org, Luca Boccassi References: <20240130034925.44869-1-stephen@networkplumber.org> <20240208190827.332368-1-stephen@networkplumber.org> <20240208190827.332368-5-stephen@networkplumber.org> <20240209180948.1fc905ee@hermes.local> From: Ferruh Yigit Autocrypt: addr=ferruh.yigit@amd.com; keydata= xsFNBGJDD3EBEAC/M7Tk/DfQSmP1K96vyzdhfSBzlCaGtcxNXorq4fALruqVsD3oi0yfyEz9 4YN8x7py0o9EL8ZdpOX0skc0AMCDAaw033uWhCn0GLMeGRKUbfOAPvL6ecSDvGD7CJIO9j0J eZUvasBgPdM/435PEr9DmC6Ggzdzt8IuG4PoLi5jpFSfcqxZFCCxLUDEo/w0nuguk2FTuYJg B2zEZ4JTBZrw7hIHiFh8D8hr6YA6a5uTofq1tr+l048lbtdFUl8TR0aIExVzE4Z8qKZlcE+9 RQaewjK5Al1jLE4sHdmd3GN+IvgDF3D/fLsi25SKJDeGSdeHkOmaX0qGeM4WKIfU6iARRCiQ N3AmBIxZ/A7UXBKLaOyZ+/i3sE6Wb53nrO4i8+0K2Qwyh6LjTeiJAIjYKN43ppxz3DaI+QwQ vI+uyHr4Gg0Da9EPPz/YyKauSeOZCfCB5gIfICO0j6x0SCl8uQ2nLpjxcZkf0gjcwUzP3h+S 3x6NfDji9YEij0zczW/dcSpGgZ6vsFpPrtnP9ZXy6J53yp0kJtOJoOlkEFFdU2yCZnCDseum CoudmGLZVvS0/DzHDJejq+3kK3FDGktZBOxZIIpal+nFqS7lVgOZc4+huVv3jyhzoAUOEyXA XK5j6o7g8STUY+z33QNnHpdLvecMwuzmvqy0jR54yAbZ64mB9QARAQABzSNGZXJydWggWWln aXQgPGZlcnJ1aC55aWdpdEBhbWQuY29tPsLBlwQTAQgAQQIbAwULCQgHAgYVCgkICwIEFgID AQIeAQIXgA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LKBH dZUMTzME5PFCXJIZ83qkZQ795MTe2YScp9dIV7fsS5tpDwIs7BZNVM1l3NAdK+DLHqNxKuyO 8Zk= In-Reply-To: <20240209180948.1fc905ee@hermes.local> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO2P265CA0278.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:a1::26) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|CH3PR12MB8904:EE_ X-MS-Office365-Filtering-Correlation-Id: d03f764a-1298-479f-6dad-08dc38828d9d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zk4Qh0JV8txb4M9vZwle59AMs3cDYptWDUshEjDCHYMA2BSberPOHFyngVw+S3OJRj/8tKYkK0aKvZ8hXeZQf3iJfd88OAK4UHqu3VkBhBxZHVgXl5jpXOtjeR6JOEqOZGN2nF8+/VVvQpXV0s2PBPncnSw4z5QHcd8vpI2b5qEynWVY7+HE87DTEG89X3oBVZ2fdFCLLBynvY/SEVJsqkQEFuyXAupQGVhtv4Ou//fZ3txW6a5GUUo56T+L79ZGQYYycC+lQEk+8IkIqvHo2soLoqg+hmr5qQ36CwJJtHLEfs3I7ES/FnPsW9kCedZZYjNgX2fa3mAopZzy/tXm5+2Xm3pDeFfQU4b6hEBoNMcWjx/4ApurGYlatNfG4Tj8tB0M7fun3uZr/4EdprBIMysR/kN4bi/k/Zk1VpjLxARefR+dBTkip87Fg7VDS1vECChzI69ssFONaprJzVWKC1qQRTwHUZ1EqcP0oaJDiLyFtN9dDhiFFOgyCxBnYnS3Ka/GN1Rz+vXgKr78iSFKOO47QBAoJ5bRE5fSrB/3MtiNU3o5d6rMJ90NMADe3iWFCPYJAoi3QXrx4qsifdYpaWEgSorA1z2xB157TAZGTrvi+GrHdmRnv8eXdqDu4b8CBZ/T9WWnCrXBRrU/I1FGigfb6UlwpEOQXVxQOYjdZXk= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH2PR12MB4294.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(230273577357003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?b2wvMHNHVlVoNHlsOXExM2xLT0ExcnczSm5BM014ekE3SmNrWUVKalNZK1Yy?= =?utf-8?B?eW5jcXFvdnNIc3U5Rm9HT1FhSXVwbllIMFNkbHJBZmZaT09RakpmM084TEtm?= =?utf-8?B?Z2pmaUVFRzdLeE9SMDkyUkkxZmlKQTRxaC9DUzUzZE9rZVh1Z0RtQnFCWDM2?= =?utf-8?B?QzJjb1l5TVZpcE92MS85QUxkMzhqd0JqOGxKMngrcGZhOXFpQlc5MWozZTdM?= =?utf-8?B?MEZueTFvWnkwVzBoSWM4ODA4d2kvYzRzeVhReGxWdnJ5emtMcnF1d3I1R2Jx?= =?utf-8?B?bUcrMlBqWGVOS01TbzJucm1DcGcrNGdDRkl3dGQ1OHMyb0RRZ3FzY082Wk1x?= =?utf-8?B?bTQrN2FXK2tvcmwvYTZyRW1PZFliRjRKamVod2JqUjl4T0FSMnR3ME53OFZF?= =?utf-8?B?bnh1ekZEU09Ja1VIeDRPVFk4dThtQW83LzFLaGErZ1NJeHZsUWhDTVZJd1R5?= =?utf-8?B?eW5kUWl6SFdxT3hFSlFjdXE1aEQrdkcxOWdSVUcraUhqV1gvT3JibERFOVFv?= =?utf-8?B?ZE9yV1d2cjJGS01aZzdIU0tabkdoVmtreHArbElETHlPVVBlS2dNNnJ3aDRH?= =?utf-8?B?Z2g1VTZMZnVPUTFCZnV6Y0hLcG5aVE4rTXZNbWRLdmc5bGFMSittMWNidXZV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QTZpZFp0M1pQVDUz?= =?utf-8?B?c3hZbWxuSlFkTnM5VlVXRktmRUV1c2w0V3lFbDJsMjZOa3AyNXM1NkZXdWNq?= =?utf-8?B?YkNuV1lXSWdWNk5LWit6SnFBQlFNQTRqWkRxdDhVQTdGTkluYmtKT3pTWmhP?= =?utf-8?B?VVRKcmFiSnBzOU1wS1c4d3dBbWFqbU8rSHEwWWRZZFQ0WUJ4L2VXS1RNVCs1?= =?utf-8?B?NzN3UFVGQ0RZU3VKZlY1UlN2Z2JWME1kNFFUR2FwbGx3czllczRRUHpKMFQy?= =?utf-8?B?K2RPejdOaHNXUWluMmlNY1hpaUpGWmxrSlU3clhndGpyTGFHMGZGVDgyT2M2?= =?utf-8?B?VzFjb3VQQi9tVjNhOUh5eXJrQzQraDhYeGF2VWlheVk1Zk15SXIzdjZ1Z1Z6?= =?utf-8?B?MjNQRGxmY1RFbnlnMTAza29DYTc5ZzdteFd6bjZHUjRSTFpqWUpIcEpzRjh6?= =?utf-8?B?MnZhTnVpY3c1dis1RFBsWUVmM1V6UU83RDlsUUdKb2VKd1RnWHRxSVBPVkJ1?= =?utf-8?B?cG1uemdiY1cxN2ZMa0hVeDV0bkFLZ2t3QmJmbnlVQmpFRmFjVzJCQlBKOGJY?= =?utf-8?Q?Ssw1Ub2LeR1z1pQ6LPOeGgYvn?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: d03f764a-1298-479f-6dad-08dc38828d9d X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Feb 2024 17:27:35.4495 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: IasA5UWkBWDNWbdbAV8pLuBlJb0S9HfHg40mjkfz6u+mAU4FtO6f22svwUqmy8xx X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB8904 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 2/10/2024 2:09 AM, Stephen Hemminger wrote: > On Sat, 10 Feb 2024 00:54:15 +0000 > Ferruh Yigit wrote: > >> On 2/8/2024 7:05 PM, Stephen Hemminger wrote: >>> Rewrite the BPF program used to do queue based RSS. >>> Important changes: >>> - uses newer BPF map format BTF >>> - accepts key as parameter rather than constant default >>> - can do L3 or L4 hashing >>> - supports IPv4 options >>> - supports IPv6 extension headers >>> - restructured for readability >>> >>> The usage of BPF is different as well: >>> - the incoming configuration is looked up based on >>> class parameters rather than patching the BPF. >>> - the resulting queue is placed in skb rather >>> than requiring a second pass through classifier step. >>> >>> Note: This version only works with later patch to enable it on >>> the DPDK driver side. It is submitted as an incremental patch >>> to allow for easier review. Bisection still works because >>> the old instruction are still present for now. >>> >>> Signed-off-by: Stephen Hemminger >> >> <...> >> >>> diff --git a/drivers/net/tap/bpf/meson.build b/drivers/net/tap/bpf/meson.build >>> new file mode 100644 >>> index 000000000000..f2c03a19fd4d >>> --- /dev/null >>> +++ b/drivers/net/tap/bpf/meson.build >>> @@ -0,0 +1,81 @@ >>> +# SPDX-License-Identifier: BSD-3-Clause >>> +# Copyright 2024 Stephen Hemminger >>> + >>> +enable_tap_rss = false >>> + >>> +libbpf = dependency('libbpf', required: false, method: 'pkg-config') >>> +if not libbpf.found() >>> + message('net/tap: no RSS support missing libbpf') >>> + subdir_done() >>> +endif >>> + >>> +# Debian install this in /usr/sbin which is not in $PATH >>> +bpftool = find_program('bpftool', '/usr/sbin/bpftool', required: false, version: '>= 5.6.0') >>> +if not bpftool.found() >>> + message('net/tap: no RSS support missing bpftool') >>> + subdir_done() >>> +endif >>> >> >> I am getting following build error: >> ' >> drivers/net/tap/bpf/meson.build:13:10: ERROR: Command `/usr/sbin/bpftool >> --version` failed with status 2. >> ' >> >> There is a '/usr/sbin/bpftool' file but it is a script and gives >> following message when run: >> "WARNING: bpftool not found for kernel 6.5.0-15" >> >> This is with "Ubuntu 22.04.3 LTS" >> >> >> Overall thanks for fixing tap BPF support. > > Just set up an equivalent Ubuntu VM 22.04 VM and made sure all packages > were up to date. > > Looks like Ubuntu borked the packaging of bpftool. > Maybe Luca has some insight. > > shemminger@ubuntu-22-04:~/dpdk$ sudo apt install libbpf-dev bpftool > Reading package lists... Done > Building dependency tree... Done > Reading state information... Done > Package bpftool is a virtual package provided by: > linux-nvidia-6.2-tools-common 6.2.0-1003.3~22.04.1 > linux-lowlatency-hwe-6.5-tools-common 6.5.0-17.17.1.1.1~22.04.1 > linux-hwe-6.5-tools-common 6.5.0-17.17~22.04.1 > linux-hwe-6.2-tools-common 6.2.0-39.40~22.04.1 > You should explicitly select one to install. > I can make it work but it can hit others too, we need something that detects this condition and disables tap/bpf.