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 91E84A0524; Fri, 5 Feb 2021 17:21:25 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0842D40682; Fri, 5 Feb 2021 17:21:25 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id E19C440682 for ; Fri, 5 Feb 2021 17:21:22 +0100 (CET) IronPort-SDR: BAZ29T+VclN8CLNA+I+tvUUy9lMyuXWCCR3uAxwjNlKDPTEi2HAwNVkG3O/5nDGyLx5cYGCscs Dkz+Px0qA3aA== X-IronPort-AV: E=McAfee;i="6000,8403,9885"; a="178893811" X-IronPort-AV: E=Sophos;i="5.81,155,1610438400"; d="scan'208";a="178893811" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Feb 2021 08:21:20 -0800 IronPort-SDR: UlJWMeq98vidfsFbQ1p7QHFM0mg2XTn18il8tfoQN+M1NUS+01U1yQ7sze81LUPpwnDayBbLVc tYaWtnWy8VRg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,155,1610438400"; d="scan'208";a="373437674" Received: from orsmsx606.amr.corp.intel.com ([10.22.229.19]) by orsmga002.jf.intel.com with ESMTP; 05 Feb 2021 08:21:19 -0800 Received: from orsmsx608.amr.corp.intel.com (10.22.229.21) by ORSMSX606.amr.corp.intel.com (10.22.229.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Fri, 5 Feb 2021 08:21:19 -0800 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx608.amr.corp.intel.com (10.22.229.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2 via Frontend Transport; Fri, 5 Feb 2021 08:21:19 -0800 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.106) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1713.5; Fri, 5 Feb 2021 08:21:19 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZhdCuKzfVzpi+cQwybdELxkxzJXt3gwZX+KpjJQAyuw7gczhXxG9N52GpaNf4tulWQYVe3X3q/TgPlaA4YIde3SRKYP19ubVQ5Zx5uYM2pKLPJaWCjg7ZITJEJ9J7VWW0inbVYfKsGJW6F1y5KGLu/Win5wovWNIBjh7ms8CSSdJhtTHBOh1XBZqmiSghoa/ViKXqcoE0NYa3pU/yuuu+uhoIKITvqznoicj2SE1UhL324ND+mxAnejN7pgF51FTOTG9UW3djazUrgkl1knfLe9pcFOecqS1WlbbbAJhrbCRU9lBnckq624HxKaDfRVU/Cktd81GRn3BdaK8KJ+R9Q== 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=2d1jJenbX2S+lO0Q4CoMmqY60k7744mEwjfFfvtyVIk=; b=CGnVZcoexag5sNsi3alBrf75xXaULAKsU8/BPROHlDqCjPfuM398ynP1WIIuecJFQ0GtmGNHbaOQJcFZ5BZ1RaRukBePCwVYTqyEvuTGRlpD9EmkRWDh8xOl7kLg3ukkS8yqbDJ33gNgBg23aoqBerIJ2KFOvtPCWdtUcI6/Vd8FBcAgUf6eviwWPXMVL/lj3EAM9WRxiCd20e9XS1OILLApw9HWn9p3SmZ60KV6qXxTR2oc78uzWmsQ0K3BsFoXK/AN5kCFngf1DSD2FLKQiMNShiUneHz/WElEeKbMRs+32L14rp1eOmgcTj/RtMPefdPoZJDo1/lJ7m0NdvLKzA== 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=2d1jJenbX2S+lO0Q4CoMmqY60k7744mEwjfFfvtyVIk=; b=Y3mSYygjhZmlyHiVmZYJ7EriCZpeSHNJX4TycGQn2DS0lOHc/s02SjNkJQEoGl61HgTrufO8DoqLgian1zlVN60/hZrXWU+979/KQUkibkJvsOiLNsBo/pUXtclWxdOkk4KNips44LiOGPsBRfU7seHcsfV9hTATVIH8oRej69A= Received: from BL0PR11MB3043.namprd11.prod.outlook.com (2603:10b6:208:33::19) by MN2PR11MB4711.namprd11.prod.outlook.com (2603:10b6:208:24e::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3805.19; Fri, 5 Feb 2021 16:21:18 +0000 Received: from BL0PR11MB3043.namprd11.prod.outlook.com ([fe80::d4b2:ee79:7a97:301b]) by BL0PR11MB3043.namprd11.prod.outlook.com ([fe80::d4b2:ee79:7a97:301b%5]) with mapi id 15.20.3805.027; Fri, 5 Feb 2021 16:21:18 +0000 From: "Zhang, Roy Fan" To: Ibtisam Tariq , "maxime.coquelin@redhat.com" , "Xia, Chenbo" , "Dumitrescu, Cristian" , "Singh, Jasvinder" , "Mcnamara, John" , "Pattan, Reshma" , "Ananyev, Konstantin" , "Kovacevic, Marko" CC: "dev@dpdk.org" Thread-Topic: [PATCH v4 7/7] examples/vhost_crypto: enhance getopt_long usage Thread-Index: AQHW+shHgoe7B0mDPkmureWEKpQ7YqpJwAGQ Date: Fri, 5 Feb 2021 16:21:18 +0000 Message-ID: References: <20210204073420.2421-1-ibtisam.tariq@emumba.com> <20210204073420.2421-7-ibtisam.tariq@emumba.com> In-Reply-To: <20210204073420.2421-7-ibtisam.tariq@emumba.com> Accept-Language: zh-Hans-HK, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.5.1.3 dlp-reaction: no-action dlp-product: dlpe-windows authentication-results: emumba.com; dkim=none (message not signed) header.d=none;emumba.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [95.44.220.85] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 78d95476-5d33-4fa7-7faa-08d8c9f21164 x-ms-traffictypediagnostic: MN2PR11MB4711: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4303; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: zHKtWRHlCX6Is6RO/85Ko4SC+vCW5pniJFzdbeKGmC4ewVDf1WrmiliQuzmPEn/t4FrlwWjPDd3MNbi1HZISuYcSdBXYIyDR4F8Ns6RzD1CigLfQKXriUPT49inMVHzZful6GezkE/7ur56vUsxxucX7VgBvB0kpd5robenMVhD4HaUD3mk1pcSQlGaBE2nBsfkyiMhCheyKx5AvaxGcwVF/aQe4sIj0g7gkZvcQSYT4C/6WrAlowlu+l/JUCScxT/5Nd+4Kq3aNbsEwYTpPx01cL+sG9jWwNsvvWA29KDQwFgGXNdQvxWOtnhmEFXe3Ev95YeizVgSQx7MkHlXNdSOY1iEFgimd7t+ixfzKRkln03+4Tk5pxfw22QNGJZM1hjF0Wqe7fbdBQ9tfYWV4gkF2PHCrqzWi9IGrFFaPh0qVkCXGbKJuuF6Gz1ksNAHWDi5VuAw/CMSTinDGj5dYA9FEm4RY2Jjd/phZkRkdziyg5u5TtruGqmUb620UhHXhYzpbxwIhfa+Xp3ebhCXg0CfPCwuhDtY3YzhSiOVFe9ARVInRB3PZcrBDkfUBOvJt x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BL0PR11MB3043.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(396003)(366004)(39860400002)(346002)(376002)(136003)(110136005)(76116006)(6636002)(2906002)(83380400001)(86362001)(9686003)(921005)(33656002)(71200400001)(64756008)(55016002)(53546011)(52536014)(4744005)(4326008)(6506007)(186003)(66556008)(66946007)(8676002)(5660300002)(8936002)(478600001)(316002)(26005)(66476007)(7696005)(66446008); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: =?Windows-1252?Q?JWgTFKpT4FC4cpb3OkW0iXfolw4wBnhe2RFM/ivNQrR1pjKgjzW5/ugm?= =?Windows-1252?Q?LGiDf59uMwRybrLTsJ+k2VSsrWFM8SvvDykG5Ibz1e7Y9xqu57k0V+/Y?= =?Windows-1252?Q?m4msiLuGhl64MeJibjpx25SNjWACZYPyikYuG3FcHgOXyYeitQZsonhj?= =?Windows-1252?Q?KZ5H3P94ZBT9hr737NicbbWd+TiFhDwS8hXjTsXuNK+REiQ4CXg2Kk6s?= =?Windows-1252?Q?A6We9wPutOGeWBYJ13SIzLRaZ6IpWgGBIC+82LCkiNn0DrTDqIb+pxz9?= =?Windows-1252?Q?PlAE0UkHonxgQVbED5+U/3D31hxuhpKytj61fTqZk8eNAzEzhia66GF/?= =?Windows-1252?Q?tHAF3TgIlB3vDJUDrKmV4lHbZp+VJzobwJrq6RQCX77DHxZUlq2luUpi?= =?Windows-1252?Q?H9m8MvF8CvLfenYwTDnFSlulL/BhhM7EOVksSUf78kkeHxASgwfG9ayc?= =?Windows-1252?Q?R6uoRe68qOpUK6P668qoIQMzijbvN2n/b00XEkzKcIfPO5Z3fuMmdvDk?= =?Windows-1252?Q?kSYeuBD/lIMfOFmn9WE77NTjRAunMfIcMtPXb/nX5ImHjJ1Qv93zZou9?= =?Windows-1252?Q?ozMfJQRF5wgwA+9UyjTg76eO7lw6H1p9vFb8Q+QgpJ7copveh7k1njUg?= =?Windows-1252?Q?hjo+oU+fRXI+WHnpHgj3ROTCr30YD1I5n/uHUGvfso+p4a0wuA1evIji?= =?Windows-1252?Q?flnYtkTjuLnROfS9b0aE7qAKSLBuP+Vcn3Qceq3UYq7QnI6KAPnG2lMz?= =?Windows-1252?Q?tPewSR2XwWMcv+hpA3SwSxfp8re6HFd972QYwuM0Y14lDx3Pu6+PQHeK?= =?Windows-1252?Q?LYRvN/n+iWm/n+F9Ri31vGjRm41Tj87pfjKNzTkvf8xj7g6QR6OFaCdx?= =?Windows-1252?Q?WuBYomruPfEBnII+alZPy071uXI1AO0QdZdR/JDJXZcFSanCt6qZKg7+?= =?Windows-1252?Q?4LAyUIpfruDtoHOmCv6laznBf8Qjb/RV2owWcEWaabVOLVpxKecfMZxI?= =?Windows-1252?Q?9aFKNkfrF2kNMvx8tyFHd4WQW0nZEKeUHiuXtPDljlviH0UOEyiL+OFH?= =?Windows-1252?Q?ATZ+kmVifgf1H1Jtd0NvXANwIQl14sOMLjrvAYnDxrlUWaVyiecBQNOM?= =?Windows-1252?Q?uwGRIBblIYucrJJSruY7KifRMImcRyASLYeBWy4K4lMqSqBXwE5x69M2?= =?Windows-1252?Q?qbwjbsC6O+PT7YS6us9mj3vlfY4XSP6agepCyyOup5+phq6rOTrTRDSR?= =?Windows-1252?Q?P2d/glspJXZC0qpyh37YgyK0uDRfg44kOqZg3tpAvpbLSgV8ewz5xu7w?= =?Windows-1252?Q?iDkBAjiBTBxGtEj0soWQcgx2e3tCHxMHA0oS1yGqIOK8IL4bLUqhDcpX?= =?Windows-1252?Q?pg/VIQWi6WEnLs7gvwCP/TZdQAc8me1Ctsr3qzPjNK9b45026jvPxXZU?= Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BL0PR11MB3043.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 78d95476-5d33-4fa7-7faa-08d8c9f21164 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Feb 2021 16:21:18.2715 (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: lpzZjnQ7FMo+8TnWPk+r9gfR9b3ZM3xUMa6+JVMKLPs3HkyLgYo55FYLM2eU7QDwEG+wVyZX8vY9M3fm0PmPPA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4711 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v4 7/7] examples/vhost_crypto: enhance getopt_long usage 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: Ibtisam Tariq > Sent: Thursday, February 4, 2021 7:34 AM > To: maxime.coquelin@redhat.com; Xia, Chenbo ; > Dumitrescu, Cristian ; Singh, Jasvinder > ; Mcnamara, John > ; Pattan, Reshma ; > Ananyev, Konstantin ; Kovacevic, Marko > > Cc: dev@dpdk.org; Ibtisam Tariq ; Zhang, Roy > Fan > Subject: [PATCH v4 7/7] examples/vhost_crypto: enhance getopt_long usage >=20 > Instead of using getopt_long return value, strcmp was used to > compare the input parameters with the struct option array. This > patch get rid of all those strcmp by directly binding each longopt > with an int enum. This is to improve readability and consistency in > all examples. >=20 > Bugzilla ID: 238 > Cc: roy.fan.zhang@intel.com >=20 > Reported-by: David Marchand > Signed-off-by: Ibtisam Tariq Acked-by: Fan Zhang Thank you very much!