From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id CB190A04BB; Tue, 6 Oct 2020 11:31:41 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 67A2111A4; Tue, 6 Oct 2020 11:31:40 +0200 (CEST) Received: from hqnvemgate24.nvidia.com (hqnvemgate24.nvidia.com [216.228.121.143]) by dpdk.org (Postfix) with ESMTP id 0DC561B3F3 for ; Mon, 5 Oct 2020 14:00:09 +0200 (CEST) Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate24.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Mon, 05 Oct 2020 04:58:21 -0700 Received: from HQMAIL107.nvidia.com (172.20.187.13) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 5 Oct 2020 11:57:55 +0000 Received: from NAM02-BL2-obe.outbound.protection.outlook.com (104.47.38.53) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Mon, 5 Oct 2020 11:57:55 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Tf1crJTPIenl9OcI2P9pA53wB2i39uiwFVakU4IC4NLTxnxvULjdNe7CQ4Mxy1/0QdFRSnDl4IaDZ/lcoTT3JAPQzYC7YTTQtiDt52hRV6nmgz04F3zoAcOAskyt86hb8YPXXA4JIcP0YEk1TwNl5QpD5Fd9KtnzDGGjiGEM1noQy6HKRz4Qs92yFJEzPhl8OnUf275tHQ2dec2dfxCoc3yB9lQF9UFw6TMQw6fJR7VeIH2GmScJe+ER/P+to4ORbUPQYj0Zl2vppKuVm6hTN9tB9IuTB1sC+BxkisQWW6Td90MmqpyNIZqJn85X4qqbAQG5cmvm8w9QlQ2WoKV42Q== 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=xWI4fbh7S1cz60XTs0CVOmkP6Cet5n9bXJC6ed3lJgM=; b=mtZzYpW41EusYpeiHvAQZekxY5pujEuiUEjkQXxBlY92GLd5vipAxlErUmdpHQfxY+vQeMKG+TgV+0m5vBJMZirCOxAsxzqrbNBNyQxJyTdrF0iJ3z24eU0lkWRkwDWQ84ByAbFm4KX9+WvRMosME5uXljNRrsiCL7CXgIAj0XZNk4OQ+njRNdegawrVzUhmwlUsbvDlLyb9e0cFlugfNCiU3v6lmU8ATPkuq1H78m+MBjQRy3STQhM4dkTjtfyr05y7g3X+ZJd41cz9TZt6D9jIGlH/waNTbHDwaHkDquZlEcX2ijhZtBr9YZDq5b6KmjkC5ISOAK7BnAR9N4/0Ng== 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 CH2PR12MB4246.namprd12.prod.outlook.com (2603:10b6:610:a9::18) by CH2PR12MB4088.namprd12.prod.outlook.com (2603:10b6:610:a5::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.36; Mon, 5 Oct 2020 11:57:54 +0000 Received: from CH2PR12MB4246.namprd12.prod.outlook.com ([fe80::889b:338e:b951:1ddd]) by CH2PR12MB4246.namprd12.prod.outlook.com ([fe80::889b:338e:b951:1ddd%8]) with mapi id 15.20.3433.044; Mon, 5 Oct 2020 11:57:54 +0000 From: Yuval Avnery To: NBU-Contact-Thomas Monjalon CC: Ori Kam , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v2] regex/mlx5: add dynamic memory registration to datapath Thread-Index: AQHWkmmzIii34dZAgEO8cwjwEv4gPqmH5yyAgAERVr8= Date: Mon, 5 Oct 2020 11:57:54 +0000 Message-ID: References: <1600948546-124153-1-git-send-email-yuvalav@nvidia.com>, <8431823.Zv4F04o16R@thomas> In-Reply-To: <8431823.Zv4F04o16R@thomas> 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: [212.235.20.117] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 46d1e834-c860-4623-2614-08d86925e496 x-ms-traffictypediagnostic: CH2PR12MB4088: x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-microsoft-antispam-prvs: x-ms-exchange-transport-forked: True x-ms-oob-tlc-oobclassifiers: OLM:8273; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: D4rl/N5qzSSUGaxovUdjBifJg48uHpqh7gHcSqrKB+bNSHF5j27XXPqDraw6BeBFbbWWH3Doe7VCL28IrxFPgerivej+bsJGEUxMNIUxKdVZuqifsNwtQaAW4MowuAL0tnTMbcqkdZqjMnOdrwqTToliIsxkEy8JcpnoaX850487S9xOLDhYbjWhD7ng0LEoPXigBlG4KkS4bHxTbzojwAw/OzB8A0rglrTuIMaeeCrdLOQHMxQgc3lI9xd2qWerzPsaAxJdQKkT0ezj5CE3rXw6YQqhzSSXFwaBLzoYp9CGjQcbOvyMAr3iFmutPfYakju2DAaTACINLrhvcTGy1g== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH2PR12MB4246.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(346002)(396003)(136003)(366004)(39860400002)(66476007)(86362001)(66946007)(76116006)(91956017)(66556008)(71200400001)(2906002)(8936002)(4326008)(7696005)(33656002)(186003)(53546011)(6506007)(26005)(316002)(55016002)(8676002)(66446008)(4744005)(5660300002)(478600001)(54906003)(9686003)(52536014)(6916009)(64756008); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: ewZGIV7ZGfRQrV3KhIdJqzGlzHL7COlhKxF2GUS9RJdo+qld/SWHZ+nLxvhKdx+67m+e6Q6EDKn7Gjmt1Tkhkh2Z7BsCpFOCl1WbdHiCW4OiOXLj8cPpvHcrG1Hwtn8Vr5sUV+EBtoCG9UY1kAi+MYq6qAUbeF7hHRlUbpJCLD2H0Ea4r0TXREaLCpJnW7zM/Jv8f/hf4mCPhz5OjC+rAeRvtVCGDJyHt1SwZkptF6KcI6/I+b8+/YDjxJ1HZM8Z+j4zxsMTBfARQqZzyY9wv/M6zzTH0W8H+EbgnFD6/nprzmZHhkSPvdBVMXtvjfmtyhYRCVll8xuCY+WO7yWE0MvZ90OVxxc0H4tD0fUdnu+j2DnwmQNaSy3Bq0p4FUs2mL3AuyrnGgap3I5c/RyyaBSfl1YmL9moUYsaORaLuEKGOnWtTGRRP3iHczDAiuzx2X8dmDJ0eCPI2TqaO+iydDDc8dlnZxdVEVKgo0TmJx2EuPgsFaRMwLc5o5bXrM+oWrwBCINU/dxKBEIPBGEz+W25kb/fqOC5mUXeceE6hkWXlQxSG8XKgBLzPRWApSiq93CBIkk5ECQ/qRvWVLu+50T/nViMKqtTRZOZUKZvkrYSoa1JQ26OMxLyTJQDfK6II2oqn+YdNlcVUGa2927mXA== MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4246.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 46d1e834-c860-4623-2614-08d86925e496 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Oct 2020 11:57:54.1083 (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: cb2rVwDkcqTF1CAmrZ7dKMuJe5W8eGMcV08DcvLdF87rgnh21a9eea2Gi+kwQ+VIrx3O87SYq95/RXh4YnolBA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB4088 X-OriginatorOrg: Nvidia.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1601899101; bh=xWI4fbh7S1cz60XTs0CVOmkP6Cet5n9bXJC6ed3lJgM=; h=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-microsoft-antispam-prvs:x-ms-exchange-transport-forked: 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: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=ZccSDwNsX53Tnmmgz8OIuCNhj6EHc7cpUR12DaXWCwoZDELl87aIuu2YF+oIGn7oT eLtgMryEHwOk250kmPIUA0/WaM7rACKcLWVWUAMACY6XzkyzdWcq+r1e+GEgtnM2E8 Vs6ED1bVybsDjzaXLVOxPERshz3Bq8MsCO8j9BL4if5eGTFz+asriNtTCsJnzpT/y3 Oj59Pgq+37ngMTL6xPZTgg/XSq2jmiJ6+Ybr2xgX5vD1rrOwG/UgFJBQLn4NWoel61 sLt7uT+iGqqdWXwK3gtmdooY9L8qn7hF+U16AANiZcVKYsNsQwUh79V/lynkvU6vr5 Z9/NhsicBzIhQ== X-Mailman-Approved-At: Tue, 06 Oct 2020 11:31:39 +0200 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] [PATCH v2] regex/mlx5: add dynamic memory registration to datapath X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" Fixed in version 3 ________________________________ From: Thomas Monjalon Sent: Sunday, October 4, 2020 10:38 PM To: Yuval Avnery Cc: Ori Kam ; dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v2] regex/mlx5: add dynamic memory registrat= ion to datapath Hi Yuval, > From: Yuval Avnery > > Currently job data is being copied to pre-registered buffer. > To avoid memcpy on the datapath, use dynamic memory registration. > > This change will reduce latency when sending regex jobs. The first few > jobs may have high latency due to registration, but assuming all > following mbufs will arrive from the same mempool/hugepage, there will > be no further memory registration. > > Signed-off-by: Yuval Avnery > Acked-by: Ori Kam There is a compilation issue: drivers/regex/mlx5/mlx5_regex.c:200: undefined reference to `mlx5_os_set_reg_mr_cb'