From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-f195.google.com (mail-pg1-f195.google.com [209.85.215.195]) by dpdk.org (Postfix) with ESMTP id CC68F1B419 for ; Fri, 4 Jan 2019 01:25:40 +0100 (CET) Received: by mail-pg1-f195.google.com with SMTP id j10so16701225pga.1 for ; Thu, 03 Jan 2019 16:25:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=v/rLvC0ftg2mjTZvPIcuqOeqSgDO/ULP1VThkXalRxE=; b=yjl0Za6riPQ3GJ4YmwMQYGTLoT65SvyNGv1F2A4Buw4SKPyWTzLufF3lMRACi8pRBK 7AedHVmykAB5RPyj6St9BnDWKrTUDGUR7aIk5w4BPaA8i5vdZ8a/Cdf2UPFXvJWsljk6 yoBXgRM8FM3PUtoLD6Z1cx8kzVYsh4oxwhDxwmmPz41AOEP6xnFLu/c3/4f8iEFLjfUL B9r0oBXgb7TT+ODDcWqUO0GKD7oxvHwFUxNLhd2rT2bqPWaXIILuQD/f9MiV3HB+Dlv8 zRzVjJyFx/enxqSVnMHW5pVnc+L0MR582pF0DxM6Bt/3jZYHR5mdjXK78hXhE+yeOMgT 3g0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=v/rLvC0ftg2mjTZvPIcuqOeqSgDO/ULP1VThkXalRxE=; b=hu4UzIqWeinybLCIz4gWYpRVLFL6CdOvNLcOn3fufQd2zDc6iYc4zrzdUn0Vg2Gbzh DX8JFzIJtkIcQvhNec+58V4C5/FMSUR3H9z17Li8qUnsWguS8IF0g8U0hdRanMuQ/PSq MvNX36vtObDi1inLfROo+3iCrRYo9qQSCZtL3y8hanc3s2z+kxnXarYzAzOvxCGLuB6p t6fVKKeGb0B20Ypeh+X0d15rOpXOIU1HgeqqXHcod8U3GABqfarE6GsI0xjE27o0siHf 8Hd00D5S6nMpwPqozeORs5yX/mTtyrjXTI+VsMnwdhuG2anqYG7JDVmYMldZowhCupVO LuMw== X-Gm-Message-State: AA+aEWa+/rJwIkKbNgoGLR4ccTB9I/j2T/crU2X/tiPIWWdkEMv0zHrV z+QeoTw74xPA1EZtX/7O/xQ5Kw== X-Google-Smtp-Source: AFSGD/Uov9/fio1LRX9VoLmOTHhJPmY/pdmiEaZ7AkiJRpgDf0c5D8PSQo4XtX/4mIdYG1GCwtRTEg== X-Received: by 2002:a62:1542:: with SMTP id 63mr50613704pfv.230.1546561539734; Thu, 03 Jan 2019 16:25:39 -0800 (PST) Received: from hermes (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id v9sm81269456pfe.49.2019.01.03.16.25.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 03 Jan 2019 16:25:39 -0800 (PST) Date: Thu, 3 Jan 2019 16:25:37 -0800 From: Stephen Hemminger To: Konstantin Ananyev Cc: dev@dpdk.org, akhil.goyal@nxp.com Message-ID: <20190103162537.54bd1647@hermes> In-Reply-To: <1546546586-22009-2-git-send-email-konstantin.ananyev@intel.com> References: <1546010263-16257-2-git-send-email-konstantin.ananyev@intel.com> <1546546586-22009-2-git-send-email-konstantin.ananyev@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v6 01/10] cryptodev: add opaque userdata pointer into crypto sym 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: Fri, 04 Jan 2019 00:25:41 -0000 On Thu, 3 Jan 2019 20:16:17 +0000 Konstantin Ananyev wrote: > Add 'uint64_t opaque_data' inside struct rte_cryptodev_sym_session. > That allows upper layer to easily associate some user defined > data with the session. > > Signed-off-by: Konstantin Ananyev > Acked-by: Fiona Trahe > Acked-by: Mohammad Abdul Awal > Acked-by: Declan Doherty > Acked-by: Akhil Goyal > --- > lib/librte_cryptodev/rte_cryptodev.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/lib/librte_cryptodev/rte_cryptodev.h b/lib/librte_cryptodev/rte_cryptodev.h > index 4099823f1..009860e7b 100644 > --- a/lib/librte_cryptodev/rte_cryptodev.h > +++ b/lib/librte_cryptodev/rte_cryptodev.h > @@ -954,6 +954,8 @@ rte_cryptodev_enqueue_burst(uint8_t dev_id, uint16_t qp_id, > * has a fixed algo, key, op-type, digest_len etc. > */ > struct rte_cryptodev_sym_session { > + uint64_t opaque_data; > + /**< Opaque user defined data */ > __extension__ void *sess_private_data[0]; > /**< Private symmetric session material */ > }; This will cause ABI breakage.