From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 73D4E3253 for ; Tue, 18 Jul 2017 10:21:54 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Jul 2017 01:21:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,377,1496127600"; d="scan'208";a="1196696084" Received: from irsmsx152.ger.corp.intel.com ([163.33.192.66]) by fmsmga002.fm.intel.com with ESMTP; 18 Jul 2017 01:21:52 -0700 Received: from irsmsx155.ger.corp.intel.com (163.33.192.3) by IRSMSX152.ger.corp.intel.com (163.33.192.66) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 18 Jul 2017 09:21:51 +0100 Received: from irsmsx101.ger.corp.intel.com ([169.254.1.242]) by irsmsx155.ger.corp.intel.com ([169.254.14.182]) with mapi id 14.03.0319.002; Tue, 18 Jul 2017 09:21:51 +0100 From: "Trahe, Fiona" To: "Kusztal, ArkadiuszX" , "dev@dpdk.org" CC: "De Lara Guarch, Pablo" , "Griffin, John" , "Jain, Deepak K" Thread-Topic: [PATCH] crypto/qat: fix handle device-agnostic session Thread-Index: AQHS/x3Zv8NWcn9rEkCO1A4feoMm1aJZP0hQ Date: Tue, 18 Jul 2017 08:21:50 +0000 Message-ID: <348A99DA5F5B7549AA880327E580B43589237C7D@IRSMSX101.ger.corp.intel.com> References: <1500310635-13180-1-git-send-email-arkadiuszx.kusztal@intel.com> In-Reply-To: <1500310635-13180-1-git-send-email-arkadiuszx.kusztal@intel.com> Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMDgzMTQxZmMtZjhmMS00ZDAzLTlmYTktN2U1Mzk2YzdhZDYyIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6IjJsR3B5ZjNTc1wvXC8rdHhySUd2d3FKdzlNdTViVUs1U2ErZkl6SWhlb1FcL0U9In0= x-ctpclassification: CTP_IC dlp-product: dlpe-windows dlp-version: 10.0.102.7 dlp-reaction: no-action x-originating-ip: [163.33.239.181] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] crypto/qat: fix handle device-agnostic session 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, 18 Jul 2017 08:21:55 -0000 > -----Original Message----- > From: Kusztal, ArkadiuszX > Sent: Monday, July 17, 2017 5:57 PM > To: dev@dpdk.org > Cc: Trahe, Fiona ; De Lara Guarch, Pablo ; > Griffin, John ; Jain, Deepak K ; Kusztal, ArkadiuszX > > Subject: [PATCH] crypto/qat: fix handle device-agnostic session >=20 > Older generations of QuickAssist hardware > may not support all algorithms supported by newer > generations. When sessions were specific to the device > this only needed to be handled on session creation. > With device-agnostic sessions, a session created > for a newer device may get routed to an older device which > can't support it. > This patch adds an enum to define QAT device generations > and uses this to detect and handle the above case on the > data path. > It also renames the capabilities structures and #defines > to match the generation names and adds the generation > to the device table in the documentation. >=20 > Fixes: b3bbd9e5f265 ("cryptodev: support device independent sessions") >=20 > Signed-off-by: Arek Kusztal Acked-by: Fiona Trahe