From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0086.outbound.protection.outlook.com [104.47.38.86]) by dpdk.org (Postfix) with ESMTP id D40DC2B97 for ; Thu, 13 Oct 2016 15:37:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=k0Xv9PGmgP1i/gophsG6f1SEeSknU77vVp0Km94GVoA=; b=WnF77M/RHs2WIpLtAt7VrEIB6KfQ/BRovBrjUovXSwIYOedUbTmWYC7YL77Jg/a7UOEbVvRS0ntceTuMU8IUuhf9yLWJw7wJPqSrnJZ6PdXnsOg8NRI0cw4GHhcfNGMYzGRCgKkRg3wDG91QfTEJ0e8znjS+MzOtuokujnzFZOM= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@cavium.com; Received: from localhost.localdomain (122.166.183.255) by BN3PR0701MB1720.namprd07.prod.outlook.com (10.163.39.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.639.5; Thu, 13 Oct 2016 13:37:08 +0000 Date: Thu, 13 Oct 2016 19:06:45 +0530 From: Jerin Jacob To: Hemant Agrawal CC: Message-ID: <20161013133644.GA8096@localhost.localdomain> References: <1471964080-29958-1-git-send-email-hemant.agrawal@nxp.com> <1476384425-11787-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1476384425-11787-1-git-send-email-hemant.agrawal@nxp.com> User-Agent: Mutt/1.6.2 (2016-07-01) X-Originating-IP: [122.166.183.255] X-ClientProxiedBy: BM1PR01CA0049.INDPRD01.PROD.OUTLOOK.COM (10.163.199.21) To BN3PR0701MB1720.namprd07.prod.outlook.com (10.163.39.19) X-MS-Office365-Filtering-Correlation-Id: 75c4bc89-ce29-4670-5657-08d3f36e0832 X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1720; 2:rcCYQOGF9hGyz8cc0fup6UfPWpfbnkxx6ruu9PZf4MHTr2b/ZIxIcbsaJ1fH2MLuWpUs/6vRPs5qIVGisOtzFwdiKefpHqa0MKfPdgVYb0lLIYRoXCiAp2+4JDcPwQSC7bnDyk9+Xb5xeEmKb07xLbuE2I9rMoWsPKNXxXRq8uVQio3vdBO79tejpO5h7mGM; 3:2fKoP0yUpy4zKLcmJwoRNZb8w1wy4s1UFBxdz9+k2DldRbpE3Lbr7VuBXvBhFjARUUTPv5wyYlMMUWesIl/2UOphl0LIvv99kRU0JQ6U+0d0YYfKdbFm/nLeZOKU+cqd X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN3PR0701MB1720; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1720; 25:cn/8idpWr31PPDB+TcfSNTNpqZIF/fiNzrZLvnSujY1zw6V7V0djVXy3ddPNX2LHlZQvw/iVM9nK4RvnTYyB5YfziUFGfdpgxMp7Zch4TZ1F4lP1fQSHAvvvpDIRB7VQa513k4dea7e9fF369jeXoaI+1SwrvFO8qPM/Ra+faxsItr5PAFYXNvrHrOQ2ihJoWI/cp/b0mAqJn9E9lv3QmNl+rflm7+RvgShkTBUxUxBZJU6H+WGxatn8vDwZ4waemScF/+LODgDzOBpOguEo+VJW2uy7N6G9VP+XyckyjogDQjPiebC46apdVdt2VJRP16MwleJnUr5SkZc+OmsonMWGwnqQVQq7EG5Vmu7pIg/7jSmk8ymykkCelWftiHWb4Zz6ogNQ18J0ZwN2cowumTMAsn5t1s9017spLbrZnUfW7lWb2a8vWSplXINNRSM6LB5RTSKp8fnX5WOOhgNFuH5SVt+rnrDoVgAHGhQt1DKr20/LxUhaQVSrGQ1IeS50hEuTtzzsvw/cENQReqIPsd3F17llnmtdG6ihWMZ/fhllCXp0NP/R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kKwfEvajvwe2NnEqoSmkooCrOI7Xa70eTnLqVQ5sKu0x8ip5xMCNKM+0= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046); SRVR:BN3PR0701MB1720; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0701MB1720; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1720; 4:o4uIMv/ygwoFKK8ZFvYnvUY2WZbK+OOhdyp3te3Ow7+MzQ4OewjjQmKa3Ewudp765MtTU7F+p1Nazx3IMinZhsNb47lnJZtAG7KkIrLsbXpurQ7Zy+QrLXArvv057SatLjOMjm3FuUpen3/rD5NqpVuoSTjuKGF48JWUJXbkezdWwDw6JnlmiwcI034GPh++MsLkTFJ2SDas+1Y5ohn4BMYfVBcH9eA41MhPUreVOXMU+GP3pqgtEEsvXqJPPX3mgikJetTAtVJulNmZGy873oeU917ljLZzyFLQzQgXBMTdedgqUSISHi/u5opJCt5OygjEGBbQv8yz7ukJrPSskG9X/tcqnQRGlo4BDjZrO+aBq5i1xMC2pLqj7n4Rsb+RxgeNFdBig54le88t3SyFJFcDUfqI43gUfi9Mwz4KIaK02ujARI/s9gqr9sFWL7kR X-Forefront-PRVS: 0094E3478A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6069001)(7916002)(24454002)(199003)(189002)(68736007)(5660300001)(54356999)(97756001)(76176999)(8666005)(189998001)(575784001)(33656002)(46406003)(7736002)(50986999)(7846002)(23726003)(9686002)(305945005)(81156014)(92566002)(83506001)(8676002)(81166006)(50466002)(3846002)(110136003)(97736004)(105586002)(19580395003)(66066001)(1076002)(19580405001)(6116002)(77096005)(61506002)(47776003)(106356001)(4001350100001)(42186005)(6666003)(6916009)(101416001)(42882006)(2950100002)(2906002)(586003)(4326007)(18370500001)(7059030)(7756004); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR0701MB1720; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR0701MB1720; 23:y2E/TzW8dCvxcs440cwV9lelWqM5YHiZuySOHbU?= =?us-ascii?Q?nrhAiRgcph/9b8E424jkKHQdJqUrFIvMSO1wyt9YyZIvx3nDLZ0PIvUdzzX5?= =?us-ascii?Q?QPLnRPzlOLOrQL4QI+vdcU59FhHlMuSPOqLa1X615tZEYDGkCGu9NquU/KlR?= =?us-ascii?Q?b0Axa6FZEXu/BW+EMlDnygZev9PvyN7AQTKtK4mkhgpZwk0/aTYNYVMhHsTH?= =?us-ascii?Q?lk+VX65lqRmKeWUMDAsJ+oKmSH9JlC5yUzCmmAO7o9QiMdN54mMfSMHS2s7G?= =?us-ascii?Q?GTJfgvxa5yDn24G7ZFz2QXhLz5F1cmBVQ9uaJ1b0kFrIr6ZNCQZtZuB2gJk9?= =?us-ascii?Q?RHgKTxhyWNHaN24CvFEtref4AJQ5vwPETVNODHKCL8PyZ6qruvsLSPMQ4DfR?= =?us-ascii?Q?zijB8W9mJaoXR4sojH0fy3kk9tZWHNgtv/pF8Vkv314lQDGAELKfioJ9Ejnu?= =?us-ascii?Q?jVeDnVg8YXsRwu5YNIxPoYA64Jxlzo6CSfAMz+okufmkr6p1Qz543Gs5a+32?= =?us-ascii?Q?kYoF6Sb360a4MqqsAv/ouvaJrGDM6vC5ymwfL636z+hbsk87yGXsQRvKJ3S8?= =?us-ascii?Q?svB5UGhI3+nUjh/EsWG8RE8sKrGwMde6IYMQfQYsKD52XrRzd5agRmah2WAB?= =?us-ascii?Q?owOUOpwXQWH6ZYUtOj6hfWLTd8W6s4shICdyxn5wBSQTvm4D/PIRJi191dVn?= =?us-ascii?Q?1YPTdKUmwpxTLjIW9Js1lkacIYeSY3iRr8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nyMUEkT1tsrnPOzdmuLeyZXwNJIw=; 5:Z9vMj13TyYTM2Tlo4LPqZDfUkyKUA69qRW/rAuZC+Y/6vjIXoarS7WPfN0C/5R6ySLOe7/ZkXo9FCJnOVzp/BgV4ObayVdfblJeFpeqXFURfNtI9E0CSKOff91snm+GdAWf42KUw8w3b+a3mWNCzvA==; 24:c3Kf4o1laxhuZ1FebOaL7UNVIos1eWSrpUxrdzAcZ+bhBla8pFw+TKEtFYbdMybam2BNAcF+Be/M+tY272t0VNRMUAfK3mM5wKQk6AaGXV8=; 7:W2nc8jb+lGfbMgtEzhZAP2LPxVIgs68qwkYkEOdOpA7C+t03L9BtaImgNB99i+1o608ODIB+B49OE+heckLXdG2LUsmmYvFGUhuihkxPh66ngoQhz8zf0S0c8HKOZLxPDFRRva72fpPXgD6sQLCTQHmnqa9EwO4ArT08fnKtDsV5l/yt9IosPxxq6Zb28yiIVETjbNZk0FDxvM9Jxnije51nbu3ZGHuS595L1uZhc6w3g0NWq0ViiIX/aaEoJYg03T9uGb0lj3EVX+Smhr1x/up8dC1UPY0MXSt4A+1ZRpAWMBETWV6bgJBiRD3NLY/pG/rbwZqar0i/CyNB7fxx7w== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Oct 2016 13:37:08.5479 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0701MB1720 Subject: Re: [dpdk-dev] [PATCH v2] examples/l3fwd: em: use hw accelerated crc hash function for arm64 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2016 13:37:13 -0000 On Fri, Oct 14, 2016 at 12:17:05AM +0530, Hemant Agrawal wrote: > if machine level CRC extension are available, offload the > hash to machine provide functions e.g. armv8-a CRC extensions > support it > > Signed-off-by: Hemant Agrawal > Reviewed-by: Jerin Jacob > --- > examples/l3fwd/l3fwd_em.c | 24 ++++++++++++++---------- > 1 file changed, 14 insertions(+), 10 deletions(-) > > diff --git a/examples/l3fwd/l3fwd_em.c b/examples/l3fwd/l3fwd_em.c > index 89a68e6..d92d0aa 100644 > --- a/examples/l3fwd/l3fwd_em.c > +++ b/examples/l3fwd/l3fwd_em.c > @@ -57,13 +57,17 @@ > > #include "l3fwd.h" > > -#ifdef RTE_MACHINE_CPUFLAG_SSE4_2 > +#if defined(RTE_MACHINE_CPUFLAG_SSE4_2) && defined(RTE_MACHINE_CPUFLAG_CRC32) The will evaluate as FALSE always. Please change to logical OR operation here. ie #if defined(RTE_MACHINE_CPUFLAG_SSE4_2) || defined(RTE_MACHINE_CPUFLAG_CRC32) > +#define EM_HASH_CRC 1 > +#endif