From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id D6FE5A69 for ; Tue, 24 Apr 2018 11:28:20 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Apr 2018 02:28:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,322,1520924400"; d="scan'208";a="218936332" Received: from irsmsx152.ger.corp.intel.com ([163.33.192.66]) by orsmga005.jf.intel.com with ESMTP; 24 Apr 2018 02:28:18 -0700 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.155]) by IRSMSX152.ger.corp.intel.com ([169.254.6.253]) with mapi id 14.03.0319.002; Tue, 24 Apr 2018 10:28:18 +0100 From: "De Lara Guarch, Pablo" To: "Daly, Lee" , "dev@dpdk.org" CC: "Tucker, Greg B" , "Jain, Deepak K" , "Trahe, Fiona" Thread-Topic: [PATCH v3 03/11] compress/isal: add basic pmd ops Thread-Index: AQHT1lEGWi0YEiSPakqZXsyXotaOtKQPr+YA Date: Tue, 24 Apr 2018 09:28:17 +0000 Message-ID: References: <1523038388-29964-1-git-send-email-lee.daly@intel.com> <1523972132-6894-1-git-send-email-lee.daly@intel.com> <1523972132-6894-4-git-send-email-lee.daly@intel.com> In-Reply-To: <1523972132-6894-4-git-send-email-lee.daly@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZDc5ODZlY2QtMWE4OC00NjE0LTg1Y2MtMjJmYTdmZDkwODZhIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6IjZxUVwvXC9VNHhLRytrZE5NRHBXUWp3NHJsVkYrc200ckxjR1E2THV0UFp6dz0ifQ== x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.200.100 dlp-reaction: no-action x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v3 03/11] compress/isal: add basic pmd ops 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: , X-List-Received-Date: Tue, 24 Apr 2018 09:28:21 -0000 > -----Original Message----- > From: Daly, Lee > Sent: Tuesday, April 17, 2018 2:35 PM > To: dev@dpdk.org > Cc: De Lara Guarch, Pablo ; Tucker, Greg = B > ; Jain, Deepak K ; Trah= e, > Fiona ; Daly, Lee > Subject: [PATCH v3 03/11] compress/isal: add basic pmd ops >=20 > Signed-off-by: Lee Daly > --- > drivers/compress/isal/isal_compress_pmd_ops.c | 62 > +++++++++++++++++++++-- > drivers/compress/isal/isal_compress_pmd_private.h | 12 +++++ > 2 files changed, 69 insertions(+), 5 deletions(-) >=20 > diff --git a/drivers/compress/isal/isal_compress_pmd_ops.c > b/drivers/compress/isal/isal_compress_pmd_ops.c > index cff05b4..ee1ee48 100644 > --- a/drivers/compress/isal/isal_compress_pmd_ops.c > +++ b/drivers/compress/isal/isal_compress_pmd_ops.c > @@ -2,18 +2,70 @@ > * Copyright(c) 2018 Intel Corporation > */ >=20 > +#include > #include >=20 > +#include "isal_compress_pmd_private.h" > + > +static const struct rte_compressdev_capabilities isal_pmd_capabilities[]= =3D { > + RTE_COMP_END_OF_CAPABILITIES_LIST() > +}; > + > +/** Configure device */ > +static int > +isal_comp_pmd_config(struct rte_compressdev *dev __rte_unused, > + struct rte_compressdev_config *config __rte_unused) { > + return 0; > +} > + > +/** Start device */ > +static int > +isal_comp_pmd_start(__rte_unused struct rte_compressdev *dev) { > + return 0; > +} > + > +/** Stop device */ > +static void > +isal_comp_pmd_stop(__rte_unused struct rte_compressdev *dev) { } > + > +/** Close device */ > +static int > +isal_comp_pmd_close(__rte_unused struct rte_compressdev *dev) { > + return 0; > +} > + > +/** Get device info */ > +static void > +isal_comp_pmd_info_get(struct rte_compressdev *dev __rte_unused, > + struct rte_compressdev_info *dev_info) { > + if (dev_info !=3D NULL) { > + dev_info->capabilities =3D isal_pmd_capabilities; > + dev_info->feature_flags =3D RTE_COMPDEV_FF_CPU_AVX512 | > + RTE_COMPDEV_FF_CPU_AVX2 | > + RTE_COMPDEV_FF_CPU_AVX | > + RTE_COMPDEV_FF_CPU_SSE; > + } > +} > + > + > + > + Remove extra blank lines.