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 2C23BA0524; Sun, 14 Mar 2021 11:05:51 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8F83316092A; Sun, 14 Mar 2021 11:05:41 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 4035840141 for ; Thu, 11 Mar 2021 20:38:09 +0100 (CET) IronPort-SDR: Vp33v55lGV0rG1WDsfVgXkaQGy0vimPQkVV/jWOGvs9A0rkZBYZrrShJRyIY9lNia5N6gawuiV OQtDBqYQv8vA== X-IronPort-AV: E=McAfee;i="6000,8403,9920"; a="208555110" X-IronPort-AV: E=Sophos;i="5.81,241,1610438400"; d="scan'208,217";a="208555110" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Mar 2021 11:36:27 -0800 IronPort-SDR: YzluvIZGMpt4wz7LLMRwxVYolxLZbV6SjoRvMpAdv6emanPHknbUs2wxEqhPnxgVfmC97qTz9H 2iBxNJF27ldw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,241,1610438400"; d="scan'208,217";a="377465931" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmsmga007.fm.intel.com with ESMTP; 11 Mar 2021 11:36:27 -0800 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Thu, 11 Mar 2021 11:36:26 -0800 Received: from fmsmsx604.amr.corp.intel.com (10.18.126.84) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Thu, 11 Mar 2021 11:36:26 -0800 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2 via Frontend Transport; Thu, 11 Mar 2021 11:36:26 -0800 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.173) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2106.2; Thu, 11 Mar 2021 11:36:25 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mlivBb6uYb3Gt3f0HQLD3gRPlA5bEW60nxuF6YE1d7yAi2bdwN3DftRuc3LN7DFbxhYWmernCz4Ns6kkBfHmHpWiW/xtIZo6HqHXDrXojRuXE1l+ZDXVoOdVV4kcgMfVcOvoKjHVjBDa0VZQhMCdZedXlE12gi/ymxLi5D3gMAFaoSrHoKfyV+OLzvDm9Am/s08TPlS+SEbLAf5Zqe2Hs6hR10zlIhr+AjDS8sA3GORakNtlsBGsWGveGkxqrgZ1R0Q7gGD8L6gSysBFZsYBiXHKo448U45xXYBuiSKjX9QIIVp2vzuLiHUUN0h7SwhSYTy7etGDmWETOEpKzBtUfA== 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=CckYXtIaUlk31EHtxKJlqYMNN5Aa0NdhGexX7hkgrms=; b=JMTtwqR6dweSblO5/h1PDeZ5wu7IAQ90ljA+n2H70rs4/DWBThp1HOtZ5q0BsubFc32rtm0kmsSq+oN5CfqAgaJMP5J1WOWT9afX8QLhS8DGslaxirUZN8e7CWDI8tS/5TgKd4bbdJGaAhxzVx+qAy3/mQj0utP8EEAv7N9O/SsULTgjx2NNTgpzYqFBxVBM6P+b2HZgrI6Wcq06BXS0zh0AOBWipN41etTQn7H5q3RpcUsG+W5oN0avBEeW75fsSLdKlDfonSLrVplieqyzhrb3TacTTxrJSAenCKUXHib9YqA9mBTQfPoizfTYtAwgMLvagC4ka43qSUQ6iBhxfg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CckYXtIaUlk31EHtxKJlqYMNN5Aa0NdhGexX7hkgrms=; b=BjME8uS+OWP3m1XMH4ZDpr8YoZUld5GC/DVy1tUrcbddzarvZO2B7OpBlV54Lqh+/P9sRKpnFfN27Yh3cqpvaE/jZeQlncSv6pCN2rjOCkJH8ZR/ZElsJklIsjGRhM+Lv8gpMo/IukFIunE7EusSEZB2F7LrJxsGtOr9QQtXeNs= Received: from BYAPR11MB3831.namprd11.prod.outlook.com (2603:10b6:a03:b0::22) by SJ0PR11MB5072.namprd11.prod.outlook.com (2603:10b6:a03:2db::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.27; Thu, 11 Mar 2021 19:36:24 +0000 Received: from BYAPR11MB3831.namprd11.prod.outlook.com ([fe80::9899:571c:34ca:713b]) by BYAPR11MB3831.namprd11.prod.outlook.com ([fe80::9899:571c:34ca:713b%7]) with mapi id 15.20.3912.030; Thu, 11 Mar 2021 19:36:24 +0000 From: "Luse, Paul E" To: "dev@dpdk.org" Thread-Topic: Issue/Question with multi-process and CryptoDev using AESNI_MB Thread-Index: AQHXFq0EzXXbyX7BQkuMhXcCU3oVzQ== Date: Thu, 11 Mar 2021 19:36:23 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=intel.com; x-originating-ip: [2600:8800:1604:6500:d487:997e:1884:8add] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b57effaf-2649-4655-f937-08d8e4c4f48a x-ms-traffictypediagnostic: SJ0PR11MB5072: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: phuaaYcOLwe7nhyyGxcJd6tijnizr9RJRAEC4nM+5FpqeXh2KTKrZ5xeSJI6Bobvkwq5azJSbIqd8MzilKRw3zZbhJp9Nk7aCK5ln9OVvQxKtv+wrPSQdO9T5hLCir/It4Dn91uPt9gIIoNH1w/+Lq/OTrenuN1NyptwYJ98YCqAUmJZePSX8sChwrusFTfSw9ZotTqKJ0PsYnkxktZ5E7GEEpW3w5xK3yjrDJXffhM3diBoikM88P+frd9VNc0nJYoTu/TquxWP3Nu2+rzGQDwCGVLJ7N1k3/KkjsHxddDuPj6bLPr5DhdQS2cWB5pwtmQ0oY+WGS15AlW9xMiV1Cw2t2Qy7iH4oiYpOIrsa+3JCCfhfqVKq83P/zcfWfb5u6+r58q13Xs2yNrWOxa3ChFKKudRntBGaICSXEY6I9+9yI+3rKM2iZusPXfNKJY6fZT4Ew5ylyB89OtqaEi12zolVRgtCoONklo7oDrhnRefonmCBzFBVgJkBAjkFQ+JKMlmRgv4oB5jV9yrD4MqRw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR11MB3831.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(396003)(346002)(136003)(376002)(39860400002)(366004)(33656002)(6506007)(186003)(316002)(9686003)(66946007)(83380400001)(86362001)(2906002)(66476007)(76116006)(66556008)(66446008)(5660300002)(478600001)(6916009)(52536014)(64756008)(71200400001)(9326002)(8936002)(8676002)(55016002)(7696005); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: =?Windows-1252?Q?KmAo803jT9GUNZEQWKbWBeo+4HUOCvoXDnSEYWfdcvXW+Kv2/BMAnYeF?= =?Windows-1252?Q?eahz3sl88HQZm3DPDkgrMPIYHjr9UNNDvsEKEOBxjDAL+zdpB6p/nQcN?= =?Windows-1252?Q?gKaxhgVTTXn+Y2Ha0U/4Hji4QpNeA++EKafePES6aQPOtL+8JeVDE6ex?= =?Windows-1252?Q?IFOI+GUWk9w6vzeVlPS3vqqWqXhRIal09uRYcu0iqd2zr6cCAcQfRsft?= =?Windows-1252?Q?P9y1alTlixWNqabOfMUGD1Tz76s4T+M2rJJsmyEj+hSOcGf/Tg03GhqL?= =?Windows-1252?Q?zYnTyZbCdS1M5r7kDzvpV2CqRIqjFy6z9gxZCNVZ759qwJD+IGC+BP7f?= =?Windows-1252?Q?kV7tB8u/JGb1/V2A0eH9eli7ZlVdlNOu5QDsAaM7KpM7hqBl+QOsPe+o?= =?Windows-1252?Q?MjMLbT5s1mGEScOZNs9hMjJuWPYAIE9ZSk6UmVF4yFJQcYkKRpMUL8Hm?= =?Windows-1252?Q?xZFJoH2ow4Psq3h3x7POZP/OGwXrT0rGHTk/P5/BCD7ViDLRYd5h8ba+?= =?Windows-1252?Q?WCfejifS2cC6DVwS3rP6kZEFiUsK9QHrBDO1YGiMVNxUcs6ld58mRvY3?= =?Windows-1252?Q?r6RtmDr+tkhhx9+kXr+4a17CfBlMgQURNFDA33X3zQJxl2uXxbxFVUWj?= =?Windows-1252?Q?iYB/PVF3Ja8dWHo+DGlg0CXa92aAlL5GTsjkp/sStpzVpIAOXUgTojyO?= =?Windows-1252?Q?RZtboYCusu0hTPiAf6wEgEUcw4afM6OCiVRMM/knTDJd7xAnog0l49Bw?= =?Windows-1252?Q?8bhN18DC9PCV1NtCvYlmTDJUvGPnal+0RdpWDuG6VUZgKULo6TUk4lpR?= =?Windows-1252?Q?zxNF8meld0FPUvbhwxoiKazL7Su1QJvUnxdxCP/Ry9JFf/lJEciQurQS?= =?Windows-1252?Q?pFCPwc3FcvfksJ8lKC7agL+rJxDjjE9mbuA2AfZo1CnFSghU62hh6p1j?= =?Windows-1252?Q?CzKkWU1b+ujrrDr2D7Rd0uBAlCw7ym9p0V4kWRTw54UDvnwMrLe3oA65?= =?Windows-1252?Q?aBplF0suZmbMCyT5GAm0DlP2pZR6gjnxzHMOo+Bw40oTskzRcuFdo99v?= =?Windows-1252?Q?+GXBkngC928moDrrHGDU2sJceOJUtQEIxEIuvPvRZ7Ij68E5kZeUTF4X?= =?Windows-1252?Q?XuxBJanCOYNuIlnrSn0Wrb17kKT5YAJ7jNIPaFRBL4r/mzIZifz5xduD?= =?Windows-1252?Q?/BOJIIVuZKJq/ZQfHZfx3e6AacCbynSGWBRXoR3D9KDMD8wF4/aq3nHA?= =?Windows-1252?Q?0ygwbQVPWdAl1WQw48aM69BLBf6nHN1ENd9aR/w6AI7Dd4Gmcm1CnqAR?= =?Windows-1252?Q?TdfOQ/LWZ2DjEdGjU2+w3q2cEd3OvkdM31EIHHcblh+84STKJXYCLlsg?= =?Windows-1252?Q?GZwMFAjDaCCJxJJpzwhy58Ca0NIrK0TI4PQcxo62axqcH9aM3evYKOVD?= =?Windows-1252?Q?4sbaJqkA62aWo0Mo5ACTqFaDVd7vQE4MYpmQvA9Vn32IqcnJgoqAHkvc?= =?Windows-1252?Q?VUyM1kdFf2Bg7PLfsFdJOgY/+FO68w=3D=3D?= x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR11MB3831.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b57effaf-2649-4655-f937-08d8e4c4f48a X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Mar 2021 19:36:23.8587 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: MG6UuLYRNpQ3TozALzum+azZ4Cz3agd643kAmVfGZLgChsB7061CrCBBJII2nEECyOxBiDo0mcH7FuuSrZVnmQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR11MB5072 X-OriginatorOrg: intel.com X-Mailman-Approved-At: Sun, 14 Mar 2021 11:05:37 +0100 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: [dpdk-dev] Issue/Question with multi-process and CryptoDev using AESNI_MB 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" Hi All, I'm having an issue with the following scenario with SPDK-based application= s built w/DPDK using CryptoDev in a primary/secondary process setup. Primary Process: An application that does crypto and properly initializes a= esni_mb Secondary Process: An application that does not use crypto so does not init= ialize aesni_mb What I'm seeing: 1) Primary Process: Initializes normally 2) Secondary Process: At DPDK initialization time rte_eal_init()->rte_bus_s= can()->vdev_scan() Is called in that order and then in vdev_scan() there's a block of code= that sends a msg to the primary process to get device names that it's initialized so the secondary ends= up adding the aesni device and initializing it. 3) Process 2: Exits but because this SPDK application did not initialize cr= ypto, it does not call rte_vdev_uninit() so on exit gets several memory leaks from al= locations made during DPDK=92s initialization of aesni, for example, alloc_mb_mgr= () It seems as though the secondary side should be tearing down aesni_mb assum= ing that it was not the one who called rte_cryptodev_pmd_create() but I am fairly ne= w to these code sequences so am looking for some advice on what makes sense here to ad= dress the issue. thanks Paul