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 C9287A04B5; Mon, 11 Jan 2021 21:05:47 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4C657140CC1; Mon, 11 Jan 2021 21:05:47 +0100 (CET) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2125.outbound.protection.outlook.com [40.107.220.125]) by mails.dpdk.org (Postfix) with ESMTP id 6E10B140CB5 for ; Mon, 11 Jan 2021 21:05:45 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NO7BzskapPuwFkd2f5SE4OGe2V34nN371fZlEmNJyMFyVQGs6RFdMFbzk1vhMmPCS2aCoZb8dgFuUe6p/gIRicAO1JnPs/UXj2CNn7cAwhyIwBpk5E49NhrSACm6o2zsRTdo7NiWcgxrWT/CuGtNSJ3S0o8o+zcjtkG5Mzf3yGxEK1roe+2D9cpRwrhTLQor5D3qn3EjCUtdmQkWQtuSPE0OrT9IB7U4noaPhlgzdJj1kKkCeRhXOcpC8KP2BCIDYFTuB5Nee8dX+xIMjcjrE/J0ondoXTRWn4HGrx1gAARj2/eutYlCHdAt89YZuTrGDQITjHwE+dbH74ilkes9Hg== 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=abtq//3Ybe6gHH69ObHiDI+5oyW6WRTBpDSdKw5qvpc=; b=Jwu1zWjn55he+FeZn7uqZ6kMs4RfSwk/6yU18MnUIElMBO5wnEveV1P4c5/vu16US4ItnKKme/0VCGT/JwPW4H4AoMutIMYSxp4p5ZxIPdMSSW2WY6m4ONvmXdgKPsEx7D9Hq1zyWYn92od+OsVRWOntyY6cXMY9czpXLZjM2oaLxGkHFsi8f3Iq63jIagz1toAUhRpzoUqxFVGLXfgMw3HhRQsgI8aD7ZQl1tHINGA3+38/oUtqqTGW6vBAYEg4SoSGEQrhLIFWAE1mMX313VidAW+oExZtu4+ZcJXXt69EZ2calAHY0I3p/37waFLk87LgiaUtHXzMhqA/e126xw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=abtq//3Ybe6gHH69ObHiDI+5oyW6WRTBpDSdKw5qvpc=; b=ZmBVjlySDDgcm/K9pH/xjFrGC86U5fOqVtJufvLo4y3D0Sc+UrNlzO1RyLEUJchSSVCirBkDWCLSiWIQsuHOg/2Da98wolEnA58HnswKChzPWGJ4RYxBcK0zJAZRm/9LcOQJH/IDBJd9dBf8Aw1VJRrnVwEkmY8PQMElw2/G4/A= Received: from (2603:10b6:910:8d::25) by CY4PR21MB1572.namprd21.prod.outlook.com (2603:10b6:910:8a::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.3; Mon, 11 Jan 2021 20:05:43 +0000 Received: from CY4PR2101MB0801.namprd21.prod.outlook.com ([fe80::ad13:4bfe:666c:d28b]) by CY4PR2101MB0801.namprd21.prod.outlook.com ([fe80::ad13:4bfe:666c:d28b%8]) with mapi id 15.20.3784.003; Mon, 11 Jan 2021 20:05:43 +0000 From: Khoa To To: Tal Shnaiderman , "dev@dpdk.org" CC: thomas , "matan@nvidia.com" , "rasland@nvidia.com" , "ophirmu@nvidia.com" Thread-Topic: [EXTERNAL] [dpdk-dev] [PATCH v3] mlx5: split multi-threaded flows per OS Thread-Index: AQHW5PY9KXO20bIcjUeYI3A2yBNGPqoi33nA Date: Mon, 11 Jan 2021 20:05:43 +0000 Message-ID: References: <20201227202114.8716-1-talshn@nvidia.com> <20210107130827.9252-1-talshn@nvidia.com> In-Reply-To: <20210107130827.9252-1-talshn@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=779688a2-e284-4d5f-912d-16147b13e976; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ContentBits=0; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=true; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Method=Standard; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=Internal; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2021-01-11T20:02:33Z; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; authentication-results: nvidia.com; dkim=none (message not signed) header.d=none;nvidia.com; dmarc=none action=none header.from=microsoft.com; x-originating-ip: [67.170.72.207] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: ede61d36-1749-4cef-d61d-08d8b66c46d2 x-ms-traffictypediagnostic: CY4PR21MB1572: x-ld-processed: 72f988bf-86f1-41af-91ab-2d7cd011db47,ExtAddr x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3631; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: qL3qyGv08clJ7RCUrPdQ9a/BZPCCVCUG49U0VyBCiou12zx4SUaxqHL88JGIR1j/i2QsrPw8G0YwOuBF02k4PNEkW67nAq2wjLqcGzpoSikuZ6fKRuoJuIF1v1KtXMJCUG3z6eU4DNkcByP8QXcllnUqVu24iORLFfMnwzr7h90jeuSrPkFf/iwhuRIxDFLcKLAyhunEh21I5WMc5IPLPS/RwSnmKFCkcQil7daRReiTFlvmuW3KBHTv6WmJ+dj6EbB5We10u4FKUJD536AX6ehTSBMJkP1SJbsehbb9dN3i4sRa0iOEAg5k0v5AbZOvXks45VYjKMqve8SmeAOoG5TizVU+GeIyCumA1v9xJybwfol8QVmDA6s0DyTtQJts8Yphu8vNkzHM2BSz7sIXKA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CY4PR2101MB0801.namprd21.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(39860400002)(396003)(136003)(346002)(376002)(86362001)(66946007)(9686003)(83380400001)(55016002)(53546011)(316002)(110136005)(4326008)(26005)(186003)(54906003)(33656002)(6506007)(71200400001)(478600001)(66476007)(82950400001)(82960400001)(10290500003)(8676002)(8990500004)(52536014)(5660300002)(7696005)(8936002)(76116006)(2906002)(66556008)(64756008)(66446008); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?THkG8mE76mzI4AQMdqm/iCp0jM14ViQWgQhmLxI1J/fNaFOU/izt53K/df14?= =?us-ascii?Q?+727X2f+KazwIRRKai/K0p2QRlwJQkBTOf/9jCyf69IYf6GJzmKdm9mcx7Kz?= =?us-ascii?Q?kjfClNdM91BLwsQXRFKjcFxzEKRJUVxOBa7e/Pub8PktSzCG8Hlo0inLKpyj?= =?us-ascii?Q?CQSixRjSseLi/AUY5l+F/VBXeGwq4TdXLrd/pL8SHAV5M/FovNa8x2cav3uE?= =?us-ascii?Q?wLjGWsPGNlpdMRzFUTK7ztUv9HumRz8PPrs2MdAYMYfISXRgHmfbWhEENGQB?= =?us-ascii?Q?CBgVwV5lXev6F0eHb62CoMb4bytOUWmTFwh4qh9b+6FxQ1QyD6zhLmJZiXl3?= =?us-ascii?Q?QerwlRqc0RILv7Ac2IsK4YIwmcsatCUxbIUlsOpGaxQSsCwCjiP7FpZfJiqv?= =?us-ascii?Q?N3EIY6RAFuwqUVZH8p7ULoxPKB2ZITz5sdLs2j8oi7ivGAi405L4+n4CJFCa?= =?us-ascii?Q?JJo/iX6K1prarwD7VisGY+9VMEpBPRNvy0hcm1H3k8/jPq4h3S7GLr+9JgfU?= =?us-ascii?Q?h1kw99DpT4L4Oyaat5LtEEDVL+ovpFj277urStew3rGOnzVWiugp0TXi/Oog?= =?us-ascii?Q?lz1vdgQkogOilpqfWsL66W64f+qgILgD3vcF1XpfSV2saVBJt0c48DfQ4elW?= =?us-ascii?Q?rgQdw54bgWfl7trasp42Po9AmX0c3jdLwSZPH4VMX0xiv+1H97NpPtpY07hO?= =?us-ascii?Q?kuKj4ndMPzt9FkHqI0mugn0A6/oVJTSIycEfx3y7vfimqnP/f7JcwYQS4F8O?= =?us-ascii?Q?cz8LxpFKV3ykYVWwpNpwJu0IaYDCeFBhbo5lEjdT2T7m+pp+7JTfm5ijR1JX?= =?us-ascii?Q?lbW7X4o2LKD9ZIUEBz///KyoD75zofzyWqiHUrv5R1MALbhr/DAFEzqZK8cy?= =?us-ascii?Q?j3zEhifoXbqVyyyNNjBuXlH7oJ+8VAAIT4Ra3iiHMyCz2QpsCsboGYhMsuha?= =?us-ascii?Q?JqG0Ely4YjyqFlS1RtoHMZMW0ONo78dKn8iQ4cgzyGo=3D?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CY4PR2101MB0801.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: ede61d36-1749-4cef-d61d-08d8b66c46d2 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Jan 2021 20:05:43.2501 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: QTc5WyifyT78Jg8SDXuC/iEUnWKlaCtNrNkBLLNv5PGGs3dl1laINkTUl7kPF/lxMz1TU+lE24LobUC9jdL44XpT1+LG7p7EbE0KUkqbfes= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR21MB1572 Subject: Re: [dpdk-dev] [EXTERNAL] [PATCH v3] mlx5: split multi-threaded flows per OS 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 Sender: "dev" > -----Original Message----- > From: dev On Behalf Of Tal Shnaiderman > Sent: Thursday, January 7, 2021 5:08 AM > To: dev@dpdk.org > Cc: thomas ; matan@nvidia.com; > rasland@nvidia.com; ophirmu@nvidia.com > Subject: [EXTERNAL] [dpdk-dev] [PATCH v3] mlx5: split multi-threaded flow= s > per OS >=20 > multi-threaded flows feature uses pthread function pthread_key_create > but for Windows the destruction option in the function is unimplemented. >=20 > to resolve it Windows will implement destruction mechanism to cleanup > mlx5_flow_workspace object for each terminated thread. >=20 > Linux flow will keep the current behavior. >=20 > Signed-off-by: Tal Shnaiderman > Acked-by: Matan Azrad > --- > Depends-on: series-14562 ("support generic threading functions") > v2: fix style issues > v3: adjust to new API, remove nl from EOFs. > --- > --- > drivers/net/mlx5/linux/meson.build | 1 + > drivers/net/mlx5/linux/mlx5_flow_os.c | 38 +++++++ > drivers/net/mlx5/mlx5.c | 8 ++ > drivers/net/mlx5/mlx5_flow.c | 29 +----- > drivers/net/mlx5/mlx5_flow.h | 10 ++ > drivers/net/mlx5/windows/mlx5_flow_os.c | 178 > ++++++++++++++++++++++++++++++++ > 6 files changed, 240 insertions(+), 24 deletions(-) Acked-by: Khoa To =20