From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 2DE9D2030 for ; Tue, 18 Jul 2017 12:11:33 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga105.jf.intel.com with ESMTP; 18 Jul 2017 03:11:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,377,1496127600"; d="scan'208";a="1152649410" Received: from irsmsx109.ger.corp.intel.com ([163.33.3.23]) by orsmga001.jf.intel.com with ESMTP; 18 Jul 2017 03:11:25 -0700 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.133]) by IRSMSX109.ger.corp.intel.com ([169.254.13.187]) with mapi id 14.03.0319.002; Tue, 18 Jul 2017 11:11:24 +0100 From: "De Lara Guarch, Pablo" To: "Trahe, Fiona" , "Kusztal, ArkadiuszX" , "dev@dpdk.org" CC: "Griffin, John" , "Jain, Deepak K" Thread-Topic: [PATCH] crypto/qat: fix handle device-agnostic session Thread-Index: AQHS/x3ZY+K8FVZR9kG3WQS3z7sCe6JZLs8AgAAvPpA= Date: Tue, 18 Jul 2017 10:11:24 +0000 Message-ID: References: <1500310635-13180-1-git-send-email-arkadiuszx.kusztal@intel.com> <348A99DA5F5B7549AA880327E580B43589237C7D@IRSMSX101.ger.corp.intel.com> In-Reply-To: <348A99DA5F5B7549AA880327E580B43589237C7D@IRSMSX101.ger.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 10.0.102.7 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] 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 10:11:34 -0000 > -----Original Message----- > From: Trahe, Fiona > Sent: Tuesday, July 18, 2017 9:22 AM > To: Kusztal, ArkadiuszX ; dev@dpdk.org > Cc: De Lara Guarch, Pablo ; Griffin, John > ; Jain, Deepak K > Subject: RE: [PATCH] crypto/qat: fix handle device-agnostic session >=20 >=20 >=20 > > -----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 > > > > 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. > > > > Fixes: b3bbd9e5f265 ("cryptodev: support device independent sessions") > > > > Signed-off-by: Arek Kusztal > Acked-by: Fiona Trahe Applied to dpdk-next-crypto. Thanks, Pablo