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 F2A3E46054; Mon, 13 Jan 2025 13:27:27 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9C73740A80; Mon, 13 Jan 2025 13:27:27 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 7317A402A7 for ; Mon, 13 Jan 2025 13:27:25 +0100 (CET) Received: from pps.filterd (m0431383.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 50DC8YkF024510; Mon, 13 Jan 2025 04:27:24 -0800 Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2175.outbound.protection.outlook.com [104.47.59.175]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 4452jyr0tr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 13 Jan 2025 04:27:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=flT4fifTXMTyWOY3gDbzGHMR1V+dRuRr5yBY3wEhiz3uDnEvmC766eJ1sCgJHgQuPwGO7He0pbRz/BA1ERdyMN8gBD5GnlWVyeYnYJ2WHmokAiUEDpG63EG7+MraeXYrtFVQzL/hc3mIApl5rt90EWJdO/aaitWF2rs8shnwe880N0Lysu/NXi2qH4M+09jIMrwtjbqQQKNpXlt9zFuyVtBVSvycoSkZCkT/JDy3rwwTBVY6RgBplGyioBPnj8DbuZEuXOiuqmgNYIVkdw3mPyHP3xLqqA6vWiKi0JPRMQDE46l3k9bHmexkMBKJb5U+SQSG0Cbh46ACZcQElu9qLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=8+A0iqiOapvX/6rb5BS3LsvtbMLtuaDPVSDuECwhMBs=; b=I+eWN+WeZ0e9fDmjxGm1gYjCsnU8KsIMoFOUaZLTj5DT8MsawzdTF2c2nfvP8LyFswYUGgC5y+iy4wFRcxQnC5XzjGSFwg4BGZPdu0n/dKQf5pnY4OLajO16E3DMDkgjIKVkYQadXKKYwD/qZn1+9ZmNWIkZXZ9WaSg/O9D5ZFfEsA+CbwHRgKnQcLpkon/sQkhsGB4vn3Q0Q+39OgTJMxzvxpOlBlgDcB1igAWYvW9hvH6QAj2x/Ucf26VK9t8B6qqyK8i1DgOGRvtUMYtiZkoooupQOAKgGG0O7xXTck4xTawFlIXDrCu07B2yozguoO16OyGrwvobwwmP+8o2JQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8+A0iqiOapvX/6rb5BS3LsvtbMLtuaDPVSDuECwhMBs=; b=dqqGlvvFOojfEuOOK2QO0ARh/ZXhpl5sf4ZU/EZ3gWm/w8xN52TVr6U36MU26wXt85McXoEEHImSKSA4hg0Zzui6GxKTHoXxGILGKe+SUpo8zsKrT64g6A08oNV/Tcu1IBggrjKYO3XTVbY3wzHLICF51nGu0FnlbFrHiYWePNY= Received: from BY3PR18MB4785.namprd18.prod.outlook.com (2603:10b6:a03:3cc::18) by DM4PR18MB4271.namprd18.prod.outlook.com (2603:10b6:5:396::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8335.18; Mon, 13 Jan 2025 12:27:21 +0000 Received: from BY3PR18MB4785.namprd18.prod.outlook.com ([fe80::4f9f:e101:dad7:c576]) by BY3PR18MB4785.namprd18.prod.outlook.com ([fe80::4f9f:e101:dad7:c576%4]) with mapi id 15.20.8335.017; Mon, 13 Jan 2025 12:27:21 +0000 From: Jerin Jacob To: Luka Jankovic CC: "dev@dpdk.org" , "mattias.ronnblom@ericsson.com" Subject: RE: [EXTERNAL] [RFC v4 1/1] eventdev: add atomic queue to test-eventdev app Thread-Topic: [EXTERNAL] [RFC v4 1/1] eventdev: add atomic queue to test-eventdev app Thread-Index: AQHbZbUqFHTZJrIoMkCX4x29mTvhBbMUoWNw Date: Mon, 13 Jan 2025 12:27:21 +0000 Message-ID: References: <5f83763833a2bcbaeea2730b982edeb5c2010f74.camel@ericsson.com> <20250113121733.2384990-1-luka.jankovic@ericsson.com> In-Reply-To: <20250113121733.2384990-1-luka.jankovic@ericsson.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BY3PR18MB4785:EE_|DM4PR18MB4271:EE_ x-ms-office365-filtering-correlation-id: 905d036f-1c86-490e-2fc2-08dd33cda0d6 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|376014|366016|1800799024|7053199007|38070700018; x-microsoft-antispam-message-info: =?us-ascii?Q?J/83AnBfyBj6cBBKcNUUYbgip9q4VLGuSrnoBLP2yimxJrcHJgXboj7u+j5k?= =?us-ascii?Q?un62GyIbNo71V9o7Pkn0H4+sDBHK4ekWI7tG1q5q1qlQwtuiL7hBLi627Hp3?= =?us-ascii?Q?SMIiyUF0OYM1QQeTy45OMp/enDj5piPitaArUDVoRibxys9gm6MaWWggduus?= =?us-ascii?Q?l2fHLtNULrGwgomSul1HtN0WFfNoAKOLBiZJxFe1eNqcCrbemO40A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KD9+BCPZzT3U11mcZfUwq5kXu?= =?us-ascii?Q?wUKXKoqaQMEVn2xl4BCMj4MT4EyL06U/AaEtsUxKG7fikjfiRYCFbDBDziRJ?= =?us-ascii?Q?+tk9SJaIbrEE6FQqQrtoGiVo9UD4DDqR7WKeP8msbnz3CUAFzj8FfnKGeLp9?= =?us-ascii?Q?M92rqe+sBJBYuMOTPRaIunlm+3UhJsLV/wWLgwguI2BEExBEg3asa4zamVAS?= =?us-ascii?Q?xTRZeHOPnb+IcJA65FQKu68FOT6Hk+YBKI5NVfRM7UBModPRyXaG0M4Oq79v?= =?us-ascii?Q?iD5GaTk6TSgIzgoikGLvvh7P/+ky/u0Hr6KWs5PWGEivNHRF+A=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BY3PR18MB4785.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(366016)(1800799024)(7053199007)(38070700018); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?SDUWd4MYwu14vjHbgXx0Eiz12oaefDKlmb9kc8souKpE5Th+HuCgZQgXMQDU?= =?us-ascii?Q?Mu6K9vqqpQ9A25crxziNQ5ucEt1dt6WvajHXBP3j7jBiJB6BeXgZhyz5Jqwt?= =?us-ascii?Q?InqCKwiBscyj9BKR3BsUVEJuIju7v11Tgephtj/INulJoBzYMJn49wRFKJV0?= =?us-ascii?Q?OX8a/nMlXjDrdkDr9jc4R2XrOihzj6jfxLQo0JGJLLV8ZMiXvYZ+Rn0BFdLd?= =?us-ascii?Q?b2rXz/NqZkbIJjkbS9RL/EQeEip5xFP2IFd7xiy0xOAXm3RonczLRJ/m0S9t?= =?us-ascii?Q?+qFY4tzAfyTFA7vTcYv1YazDxI9/lwSF9jAIORt/SirUI4gvp6NDugF7Ui0a?= =?us-ascii?Q?BJPnU8Q7um0ZyIjS5ucCL+/1mB6waCOhFi5OZvvih9nShTQQY4FqTmS/05wa?= =?us-ascii?Q?4AOfhnk5H19DVulpI9Bn444/cBnzj8VyysST2G3MfpdJCXTBL5zFoFYiNyVi?= =?us-ascii?Q?ORCzo+vqnvnvfQNclbApBB1BGmTNdYXNjmc2Ezg+fjF1XYNqePk6yDVxSw+T?= =?us-ascii?Q?+KSCakjjHnx77PiUCoDQIjjTBQUSGGEwweZpSG63CxOsVWAc/AJt43Cbeo2n?= =?us-ascii?Q?9MFKWQAy4HQtRrtmjOPZnc1JnsxQotgY467qXy4wdlaNT24ZS9Pbw9n6kuFK?= =?us-ascii?Q?xlnCFAZAU42JzpYYdwbR24wK7Zw6OTRL12A/LtZpoySHE7rhDMzvuMJq9yBy?= =?us-ascii?Q?X0ys5qymC6kWKjXAKRyns6x7o2QCz3J486s9vSxcwotbtD0OmgkSCl60ql9y?= =?us-ascii?Q?4TZrMlYJRsP/QF/s1iUXeSY8blP+3XIMbdV2llXt61uovLWNBiTK4+aiFAkB?= =?us-ascii?Q?w5qdfltG2n4pn+H3VpIbgtqbKPZeiap9NOCX+b74JCuYtoUidInQXilqtBG2?= =?us-ascii?Q?4flexGzOziMDrNjVegnYm6TSvrB1QEcofY0ca0LGaFDxl6KPWvIU84Gm+2vX?= =?us-ascii?Q?8Q68uy70c3rSZesIdWm+BhcScnsO7oKFs1tloGXxajKvMrImwZFf9kNCFOCa?= =?us-ascii?Q?bSikguz+Owm1o236a4+oukgBszY722dB9imj0YAVRcsXI8eShfhjw0HuFOdx?= =?us-ascii?Q?JK01+oC4dSz1R5Ll+8e+GvmZvmpzLgH8YeUJSGqaKVPIuQUpnTudS2YFUrpl?= =?us-ascii?Q?XlIhqoTkjEvOHxiNqtaSdUkH+d33lTWr1VdXGxX5Boeyce4db2fOc4juEg+f?= =?us-ascii?Q?ZMggbNAhpFr3nq0kutcDhLb+brtDcCVmvJO3N9STdxMcQx8KDG0cxPz6rxQ7?= =?us-ascii?Q?GcMlwUy/4Be8zHgBcylNq8Vehr216XMD/4qdg8evM7fWrv/dlsXL7b2VtagG?= =?us-ascii?Q?B2yc6ldu1Y9nAOqcYgM2IRisNptY+c3LhfCGx3SpYcGOzHCANAK9lAddt5WO?= =?us-ascii?Q?gXLkmpBqg0hjLKY0nYVydytoIGOAopnF7ByQw2N4ODSJHtblr0sn18sX/B9+?= =?us-ascii?Q?TOO9aaZpF5fJm0OEbjnsTTvvHQEMzYC2WBKGEGDwkNCh5a5cRKNzcRmjjNs5?= =?us-ascii?Q?uPr8aZGLlEB6yvYc8ePkEgXms/yHHSjKJgjBV4TinHvTiz91bGTEjaS21vLD?= =?us-ascii?Q?o+rqqljFXEc6SSetZ/M=3D?= MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BY3PR18MB4785.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 905d036f-1c86-490e-2fc2-08dd33cda0d6 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Jan 2025 12:27:21.5890 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: C67U47TaSTmooniYdCxU1jox96Se8nMcCDmHi9HN4iUT5v5jpTK1YASn8R9IAmtfSXmhO8Xh9//d0sGvPSDI2A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR18MB4271 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: BTmT70AnO7tOPRX2gFxCh8PV839Nnrrr X-Proofpoint-ORIG-GUID: BTmT70AnO7tOPRX2gFxCh8PV839Nnrrr X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.687,Hydra:6.0.235,FMLib:17.0.607.475 definitions=2020-10-13_15,2020-10-13_02,2020-04-07_01 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 > -----Original Message----- > From: Luka Jankovic > Sent: Monday, January 13, 2025 5:48 PM > To: luka.jankovic@ericsson.com > Cc: dev@dpdk.org; mattias.ronnblom@ericsson.com > Subject: [EXTERNAL] [RFC v4 1/1] eventdev: add atomic queue to test-event= dev > app >=20 > Add an atomic queue test based on the order queue test that exclusively u= ses > atomic queues. This makes it compatible with event devices such as the > distributed software eventdev. The test detects if port maintenance is re= quired. > To verify atomicity,=20 > Add an atomic queue test based on the order queue test that exclusively u= ses > atomic queues. > This makes it compatible with event devices such as the distributed softw= are > eventdev. >=20 > The test detects if port maintenance is required. >=20 > To verify atomicity, a spinlock is set up for each combination of queue a= nd flow. > It is taken whenever an event is dequeued for processing and released when > processing is finished. > The test will fail if a port attempts to take a lock which is already tak= en. >=20 > Signed-off-by: Luka Jankovic > --- > v4: > * Fix code style issues. > * Remove unused imports. > v3: > * Use struct to avoid bit operations when accessing event u64. > * Changed __rte_always_inline to inline for processing stages. > * Introduce idle timeout constant. > * Formatting and cleanup. >=20 > v2: > * Changed to only check queue, flow combination, not port, queue, flow. > * Lock is only held when a packet is processed. > * Utilize event u64 instead of mbuf. > * General cleanup. > --- > app/test-eventdev/evt_common.h | 9 + > app/test-eventdev/meson.build | 1 + > app/test-eventdev/test_atomic_queue.c | 412 Please update doc/guides/tools/testeventdev.rst