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 72070A0561 for ; Mon, 1 Mar 2021 08:34:48 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 66E0E22A2CA; Mon, 1 Mar 2021 08:34:48 +0100 (CET) Received: from hqnvemgate25.nvidia.com (hqnvemgate25.nvidia.com [216.228.121.64]) by mails.dpdk.org (Postfix) with ESMTP id 26B3D4014E; Mon, 1 Mar 2021 08:34:45 +0100 (CET) Received: from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Sun, 28 Feb 2021 23:34:45 -0800 Received: from HQMAIL105.nvidia.com ([172.20.161.6]) by hqpgpgate102.nvidia.com (PGP Universal service); Sun, 28 Feb 2021 23:34:45 -0800 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Sun, 28 Feb 2021 23:34:45 -0800 Received: from HKMAIL102.nvidia.com (10.18.16.11) by HQMAIL105.nvidia.com (172.20.187.12) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 1 Mar 2021 07:34:44 +0000 Received: from HKMAIL103.nvidia.com (10.18.16.12) by HKMAIL102.nvidia.com (10.18.16.11) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 1 Mar 2021 07:30:33 +0000 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.175) by HKMAIL103.nvidia.com (10.18.16.12) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Mon, 1 Mar 2021 07:30:33 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=L7gIzBMC8huH2vD45JiuuqCPxl3KL8iyvrBSYVxHuREDzjKqdqo5ttBKHpNFcXBhEP45ufQXceNiZDJBCNnuBVTBo2L00T9VoK4IFLP0Y32kCEeHmSOdEVktQ8HCIFEEQ3aCVf9mu468YbbQPEaJjQy1yOBx+ntCB+DDJkuwy31t583/HDSMzmCdcC57ahoBOFotHHNQJG/sdxP3732EQN0xtDZhMz3YuRA+Zb1ApTxRoRLU3f+DrGrlk04Y5HMCmIe4HcT6JIs3tpW6oYlrrHzhyvKPyfCEMr56FDZGjo+N14hOEK/SE6+sY7WtrE91bB5Q88Ft3T90Cix0KjHKhA== 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-SenderADCheck; bh=f7YTT47EkuTHLQ0zzPA+feWe8G8sbl3vI0Y5IUPwYZ0=; b=Grw9wVLlhY3++1b61jwNVQzsMNbdUijHQnQy5ttwniX1C/lJlg5ppTDXunbAwSfzPG3yatTSdFN0OsYI47Ly91U5i9IlOpTHvyPeK7+uLZtoeodVQ7+LpRbFYVMK7ve9ZLduBEMBx3rHP4dwnrGT2/LuVE3dgyE/nfuXmAtuFNDhMWpf12unytX24EPOKGJnpZvXfa+Xu5I4oKCLlZUWpVkzzOpcsahRgYcYDmy/1Sl9b9kfINAZJDcVxrVwk1Om3kLCcpzyuskn93AQLdc1KoCA/agRB0Pj88oTCFfgjtt5fF0LXypbE3bdMeA20E459Da20tjI7P56zppswcDhpg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none Received: from MW2PR12MB2492.namprd12.prod.outlook.com (2603:10b6:907:8::19) by MW3PR12MB4458.namprd12.prod.outlook.com (2603:10b6:303:5d::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3890.24; Mon, 1 Mar 2021 07:30:29 +0000 Received: from MW2PR12MB2492.namprd12.prod.outlook.com ([fe80::99f2:8567:2f9e:c351]) by MW2PR12MB2492.namprd12.prod.outlook.com ([fe80::99f2:8567:2f9e:c351%4]) with mapi id 15.20.3890.028; Mon, 1 Mar 2021 07:30:29 +0000 From: Matan Azrad To: NBU-Contact-Thomas Monjalon , "dev@dpdk.org" CC: "ncopa@alpinelinux.org" , "stable@dpdk.org" , Slava Ovsiienko , "Xueming(Steven) Li" , Maxime Coquelin Thread-Topic: [PATCH v5 15/17] vdpa/mlx5: replace pthread functions unavailable in musl Thread-Index: AQHXC6NpY9Futg4T7ky4qinzDjEPLapuwgpA Date: Mon, 1 Mar 2021 07:30:29 +0000 Message-ID: References: <20190313170657.16688-1-ncopa@alpinelinux.org> <20210225182250.1149592-1-thomas@monjalon.net> <20210225182250.1149592-16-thomas@monjalon.net> In-Reply-To: <20210225182250.1149592-16-thomas@monjalon.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: monjalon.net; dkim=none (message not signed) header.d=none;monjalon.net; dmarc=none action=none header.from=nvidia.com; x-originating-ip: [109.67.16.141] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 5c875f73-1c7a-4c2b-59f0-08d8dc83e3df x-ms-traffictypediagnostic: MW3PR12MB4458: x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-header: ProcessedBy-CMR-outbound x-ms-oob-tlc-oobclassifiers: OLM:5236; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: jKmY+JzvCK3XmjEAH0PCbc4tjNT/GgLx+IM/A4EDiPiMQgoRBd/AsDLD14lzfxmguTobQqBTJa/P3YsWpL6J8GAdyiI8bEy/Oo9bM95qi37SG7uVtnaf2mayl1gteQzQgplWO0Z2ST4uoRaoxreCX7z+x2edo8079yhofsJvPovUlXYmLRcglOM+nmXk3Qb9R1D/AsPkz0atPIlV0DQVkqznIeANW+JjDGAp1zN/NE1fHobHsogReUvhysR2jZDPkQ83xQKSOLmyhKeUwXasZ5Fd8ncMeUHoUFSa6Jj/i7oxbcAXmsY3OwJ6SwBdfKrMVcs6DbZUAq67y+B1/thFDNCzCmuFogpfYnYYnO8EgL2z+Fppfc2JRL3qGw5sH19vu7QREz/XFSvMU5qZaGtRZxRvQ1GDSslFVXJmEjkLCX8GrGYBWGvL3rRJD48vvbX5Y3EIY3YaCHqzDJ330/tS1fsGFO9A7O4PjCVSWoDqq9XbCjcNpy/p4fNe7E2q7lcJw+va2p9K9z92kCSgKCclVg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MW2PR12MB2492.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(376002)(346002)(396003)(366004)(39860400002)(478600001)(110136005)(9686003)(54906003)(4326008)(2906002)(86362001)(4744005)(8676002)(6506007)(76116006)(316002)(55016002)(8936002)(5660300002)(66446008)(52536014)(66476007)(186003)(71200400001)(64756008)(66556008)(33656002)(66946007)(26005)(7696005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?EEzdYjUsDbJMR4Qj7m5sgWCDxlADbjLdrIVZcAJILqaT+3yla5dDO+x000n0?= =?us-ascii?Q?Tu4f1S8fHSIpPZ0q78R2f2AwwzUmunumM3OZklU3GJklnX5Pr2Hj7TT/hO2z?= =?us-ascii?Q?6iKkUaZFXDZqUQgA547ro5GSUV3CvwjfZQrHklXtiAaun7tYqmdQ4M4jfweW?= =?us-ascii?Q?/CJIx+w8xYbd4AuWGh8++vfpSb4cnPCmCOLsQXoKdJaU0wVTDmvdwLQzyC3s?= =?us-ascii?Q?6UAFoviO9hPIX5od6LAIc+3UzHFD9HsAICdm9/NyiIVANkWgJMlnWv0/6Vpp?= =?us-ascii?Q?cEtrX4kt2K2kylyg01YKIWpaOEeRw9qXawfZAyxYdZMOftCburuWpYfWseIx?= =?us-ascii?Q?Yb01njDUt+k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OG6YvjBMDY8LZ?= =?us-ascii?Q?ab05UmgP/42mb5GuiSHaPXx3kFz8xmakSJ6a5ueuUKU85ZVRzvpdFklIjNRI?= =?us-ascii?Q?9kSNkap1T/gqDwOco6HbpIVI?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW2PR12MB2492.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5c875f73-1c7a-4c2b-59f0-08d8dc83e3df X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Mar 2021 07:30:29.4077 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: FIgT8+tIVbUdmtaUNwfICzObX6oDb3vK/YK5wJixv982qoiY6zWnAVeYbJWaY2pByrNhF9NpE1aGijP6fYskew== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR12MB4458 X-OriginatorOrg: Nvidia.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1614584085; bh=f7YTT47EkuTHLQ0zzPA+feWe8G8sbl3vI0Y5IUPwYZ0=; h=X-PGP-Universal:ARC-Seal:ARC-Message-Signature: ARC-Authentication-Results:From:To:CC:Subject:Thread-Topic: Thread-Index:Date:Message-ID:References:In-Reply-To: Accept-Language:Content-Language:X-MS-Has-Attach: X-MS-TNEF-Correlator:authentication-results:x-originating-ip: x-ms-publictraffictype:x-ms-office365-filtering-correlation-id: x-ms-traffictypediagnostic:x-ld-processed: x-ms-exchange-transport-forked:x-microsoft-antispam-prvs:x-header: x-ms-oob-tlc-oobclassifiers:x-ms-exchange-senderadcheck: x-microsoft-antispam:x-microsoft-antispam-message-info: x-forefront-antispam-report:x-ms-exchange-antispam-messagedata: Content-Type:Content-Transfer-Encoding:MIME-Version: X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-AuthSource: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-originalarrivaltime: X-MS-Exchange-CrossTenant-fromentityheader: X-MS-Exchange-CrossTenant-id:X-MS-Exchange-CrossTenant-mailboxtype: X-MS-Exchange-CrossTenant-userprincipalname: X-MS-Exchange-Transport-CrossTenantHeadersStamped:X-OriginatorOrg; b=IsSHuihCDwSP1muO3fnL2PMiUaY70F5FS+xLeU4mhwl2v1c6fF/ZRBuzBO3txsU3x dsKW+10N7qxD48n4lGN8chl1moEC/yX83qa//Il8cab2ZJ2CIE9hf6Kl2kN4GMUUEc gB3S2ALuiEf0e8KqRWRgCe8eivNLR2zyWZEdyOERJIYqL1/UK0TWStjLcTjvvvh1jP C7IIRVIpYAQNoaHCBnZvZfBg/Aez08WJXeG/L+j4cx1mmm7UUuL8X53BOKgu1/gaAe mNH82z0ouXrcWq+Clk4wbu4SFXuZWGi4E4kBDTKmd7+TR89Gt2Ob/GuukiQVej5Ziz q+28NGhX8Vu9A== Subject: Re: [dpdk-stable] [PATCH v5 15/17] vdpa/mlx5: replace pthread functions unavailable in musl X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" From: Thomas Monjalon > 1/ The function pthread_yield() does not exist in musl libc, and can be r= eplaced > with sched_yield() after including sched.h. >=20 > 2/ The function pthread_attr_setaffinity_np() does not exist in musl libc= , and > can be replaced with pthread_setaffinity_np() after pthread_create(). >=20 > Fixes: b7fa0bf4d5c6 ("vdpa/mlx5: fix polling threads scheduling") > Fixes: 5cf3fd3af4df ("vdpa/mlx5: add CPU core parameter to bind polling > thread") > Cc: stable@dpdk.org >=20 > Signed-off-by: Thomas Monjalon Acked-by: Matan Azrad