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 5B64EA0519; Fri, 3 Jul 2020 17:16:46 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3A7EF1DBED; Fri, 3 Jul 2020 17:16:46 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 8E6E11DBE5 for ; Fri, 3 Jul 2020 17:16:42 +0200 (CEST) IronPort-SDR: 1LWnfMbkvdXgzY1BdqJjZ+Z01AJms+LfWUiFET7Z8IWazsWOqew37jYb6VE2RRB9FfyBkmr4GW AF5N9GCF1QTA== X-IronPort-AV: E=McAfee;i="6000,8403,9671"; a="232023361" X-IronPort-AV: E=Sophos;i="5.75,308,1589266800"; d="scan'208";a="232023361" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jul 2020 08:16:40 -0700 IronPort-SDR: J22jCaPxB9oabfAQ8RVSk0wuB1FwqbQvSCCXq9Xeed4z+bE437JuYoJAu5FRhTgMC9zFZOkOsU eDAhlYb1xVVg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,308,1589266800"; d="scan'208";a="304606488" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga004.fm.intel.com with ESMTP; 03 Jul 2020 08:16:40 -0700 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 3 Jul 2020 08:16:38 -0700 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Fri, 3 Jul 2020 08:16:34 -0700 Received: from FMSEDG001.ED.cps.intel.com (10.1.192.133) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Fri, 3 Jul 2020 08:16:34 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.105) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 3 Jul 2020 08:16:35 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Nje5svxyvQ2OwCizgJxh8qnARz1FGnRDOV9hUUnLxYmhoG/3PDqfXjv45oe48K4NvxyTmP/sKmwxDhVLa3/jyX3OITKkrOmMu3X0qkcnoyjZ/x3wSf3yypGvpHwRTGoWA/Tu2L7bQL5myL5yLC/qHbX9u0a0X1BKt1mu8Olkdb/c2V0L+tcbfoozHrXwLiTiD2aETToJRN5mcHvt+oF2he77Aaj/+Juh12tlIxv57s6Vf+qFnR5nXQVwZFi+Lch1+TjVTxazphec0RbYtoXx1U48WNn05bzlx2PtpkuYEjYy1DyKgrLFUTncB9mconpRlmcVEYHfypWLos5QtuThyw== 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=Y5aLfyqAY+6uR+pXE3w28kL/P0qlAQa+bHlQwO2LgzQ=; b=Htkvgk/oVflzOtLL/0P8w61svWQND/gybwnJxJ0Bw8YDv5SghHihXYinGhhVZvOp9RsyOAetSzrOwUYEoHJ8FeEACG7PMXOSRHjpDJjSNI9+4a9O/ZSO9ZZm2pwRb/YUCXVX2gsStFw4ie+ENaF/WXF9d3rDmJ3dO+m48jPwXJELNT8MUHaPN+cwT4vRx2TiBfwkl9Vq/krMFltVXkzin/6MifkmejbSYIz8ent1Irzg275r+bIo/XXvpDis3putYArA69TpCGaoCwP0qnlZOFUfnVFzVnrwWBX/mtt1KfAqhVTWDnVIpqvIE3zjKx1Mov6Dh2/r/PWIhi8MBKJOig== 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=Y5aLfyqAY+6uR+pXE3w28kL/P0qlAQa+bHlQwO2LgzQ=; b=R1j4QPhgtwm9tpuFntbO8y2Km0ydvWX/dlWk3G7BbK2Ow3i8Cls23/9iNmRf+QLSBnIpNyC5lcON3PBD0WyQMKTXJjtNDCLwxyg9EmK4Xgxkr9sYREatKAB0fmlvHTgKmqY5nnMpLF8ipE+XEyZJY01mx5XPfjxUK7mkL3WXXvc= Received: from SN6PR11MB2880.namprd11.prod.outlook.com (2603:10b6:805:58::15) by SN6PR11MB2832.namprd11.prod.outlook.com (2603:10b6:805:5b::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.21; Fri, 3 Jul 2020 15:16:31 +0000 Received: from SN6PR11MB2880.namprd11.prod.outlook.com ([fe80::ec8b:8f35:800d:13f4]) by SN6PR11MB2880.namprd11.prod.outlook.com ([fe80::ec8b:8f35:800d:13f4%3]) with mapi id 15.20.3153.023; Fri, 3 Jul 2020 15:16:31 +0000 From: "Trahe, Fiona" To: Akhil Goyal , "dev@dpdk.org" , "Burakov, Anatoly" CC: "Trahe, Fiona" , "Kusztal, ArkadiuszX" Thread-Topic: [PATCH v2] examples: add multi process crypto application Thread-Index: AQHWSjMwecxHv4FoZkCTnVOV6D+GrKj0ueUAgADOJACAAHLoIA== Date: Fri, 3 Jul 2020 15:16:30 +0000 Message-ID: References: <20200624142344.3152-1-arkadiuszx.kusztal@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.2.0.6 authentication-results: nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.198.151.173] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 75c740f8-6983-4ca1-1a06-08d81f6410c2 x-ms-traffictypediagnostic: SN6PR11MB2832: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-forefront-prvs: 045315E1EE x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: U7xGMo3UrYgNcwoWItSuG7hZr7poXI27sKBuirIikVSTC69K0S134CKaRswdR8Qg/kzw2FtfRPaTv0h0KQ7pQle3hzq8/CxCIB0mj1WAD2pkHIkhKIh0c+H4WusUrNh45IutACvMabzXgg0n2sHODkFkSK64Uez9Eb1zj3bpCX7aFd9+Z1wh/F5Mt34UlbgaSMbnL8ZzaqfRQ+6dAzi4+74wkS7XaWP61TfAqXd24FNl4RPzi4tk8HFyN+sJMo0ZXS1GOWZW4M32Axc+NoBxm+sklHClJbSy6v9FIgqZLED6YQDXnVqd6j0JtB5zF5HBOot2VrXzEWcyJky9FE/GBuerABncRL9NUUsPKw43i+u/lgUCclG2aBOtr/dahRDs x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB2880.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(366004)(376002)(346002)(136003)(396003)(39860400002)(83380400001)(8936002)(4326008)(478600001)(316002)(33656002)(5660300002)(54906003)(110136005)(107886003)(2906002)(52536014)(9686003)(55016002)(8676002)(7696005)(53546011)(6506007)(86362001)(66446008)(64756008)(66556008)(66946007)(76116006)(6636002)(71200400001)(26005)(66476007)(186003)(21314003); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: ANs5BD63N0ezl+oY/PJmamfHLkXyCDmUj3cVkcCtVS4daGfl55BKU+5TxGlVSjUZcyLbGgAnPEHce5clssNFArmyUtfi6zSoonGtfogtOcJFjg17DEL3UfACDW0iOMGydUd/0z9SF92WJ7id5Xqi9wVMqrnkH9UcM0QHm0NDbTTconH/X166VpabSwM3pAW9hCP7qYlTAyRLAe1V2yKF8G8B2ENe8id59h5PzwlDLbpsX0wrla8f5RQ5woQjNhbLSdJxN9iv9rbqj3OvDpzhcl5tCrXyYTxZ1hVFC6rDkQ915vjMy39vagLadotv3a4O43/koOSkfIv1MRwwh5PyeMnEqItELSWxM1OnDNIhKGukaqOATVrG97BJsMKPP38MImweSMeF/KudGuDNnpemQI6hjEirfTboarVab9yvTHV+vtBG8+pV1/FMuGp3+diJ+/LVGuVK5FM7JJKumHs2wUJ1l7Q4JPErJmrzHLzgPSbJQELy1s1iv9zBecpWhGyF 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: SN6PR11MB2880.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 75c740f8-6983-4ca1-1a06-08d81f6410c2 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Jul 2020 15:16:30.7704 (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: pAKU3Z1L2mQ72xt9TuOFDU98C5hEeFGJ3MqN3VSU1c1grn5MuoaTkZujtJXLExySyid+xd4P4fdvCfGo2R2UIQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR11MB2832 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v2] examples: add multi process crypto application 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" Hi Akhil, Arek, > -----Original Message----- > From: Kusztal, ArkadiuszX > Sent: Friday, July 3, 2020 8:48 AM > To: Akhil Goyal ; dev@dpdk.org; Trahe, Fiona ; Burakov, > Anatoly > Subject: RE: [PATCH v2] examples: add multi process crypto application //// > > Shouldn't this be part of examples/multi_process? [Fiona] Yes, good idea - we can move in there. (pending agreement on another comment below) > > Can we split this patch in some logical way so that it can be reviewed = easily? [Fiona] yes, patch will be split in v3 > > What are the expected results out of this app. Can we have some logs in= this > > doc? > [Arek] - yes we will add (soon we will send v3), example output would loo= k something like that: [Fiona] I agree it would be good to have expected output, but think there's= too much noise in=20 pasting in the whole output. I'd suggest to trim to something like: Scenario: enqueue only in primary process, dequeue in a secondary Commands: - Xxx primary - Xxx secondary Expected output will include text like: On Primary: > USER1: - Starting PRIMARY process > USER1: - Configure Device id 2 > USER1: Created qp 1 on dev 2 > USER1: Initialized session =3D 0 > USER1: Initialized session =3D 1 > USER1: Configuring vector 0, using session 0 > USER1: Start enqueuing packets on dev 2 qp 1 > USER1: Enqueuing / (liveness symbol keeps changing until Ctrl-C is in= put) > USER1: STATS: Enqueued on dev 2 =3D 16337024 On Secondary: > USER1: - Starting SECONDARY process > USER1: Found Device id 2 > USER1: Found qp 1 on dev 2 > USER1: Start dequeueing packets on dev 2 qp 1 > USER1: Dequeuing / (liveness symbol keeps changing until Ctrl-C is in= put) > USER1: STATS: Dequeued on dev 2 =3D 16337024 Note, the STATS will be in sync if the process enqueuing is stopped before = the process dequeueing, in other cases they may differ. > > > > This multi process app is only taking care of crypto queues while othe= rs are > > for NICs. > > Is it not worth to have crypto+NIC multi process app instead of this ap= p? > [Arek] - initially main purpose was to check PMD behavior when: > 1) configure cryptodev, sessions, queues and do enqueue/dequeue from anot= her different processes > 2) run enqueue/dequeue from different processes on the same queue pair. > If it can be done with one app I think it is ok. > > I believe most common usecases of crypto are with network traffic. > > Can we modify l2fwd-crypto for multi process? [Fiona] Yes, it would be a good idea to do that sample app too. However this app allows standalone validation of cryptodev lib and PMDs, running in multiple processes, without introducing dependencies on ethdev APIs, traffic generator, NIC, etc. I think this is useful as is. One consideration is whether it would be better to treat this as a test too= l and move to the test directory - as you're right, it's not showing a typical complete application, just allowing to play around with the crypt= o part. My preference is to move to under the examples/multi-process, but up to you= .