Show a patch.

GET /api/patches/41813/
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 41813,
    "url": "http://patches.dpdk.org/api/patches/41813/",
    "web_url": "http://patches.dpdk.org/patch/41813/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk"
    },
    "msgid": "<20180628005304.26544-16-pablo.de.lara.guarch@intel.com>",
    "date": "2018-06-28T00:53:03",
    "name": "[v3,15/16] cryptodev: rename PMD symmetric session API",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "e5737d80c90fe6b4ce75732e556b838206f6e574",
    "submitter": {
        "id": 9,
        "url": "http://patches.dpdk.org/api/people/9/",
        "name": "De Lara Guarch, Pablo",
        "email": "pablo.de.lara.guarch@intel.com"
    },
    "delegate": {
        "id": 22,
        "url": "http://patches.dpdk.org/api/users/22/",
        "username": "pdelarag",
        "first_name": "Pablo",
        "last_name": "de Lara Guarch",
        "email": "pablo.de.lara.guarch@intel.com"
    },
    "mbox": "http://patches.dpdk.org/patch/41813/mbox/",
    "series": [
        {
            "id": 286,
            "url": "http://patches.dpdk.org/api/series/286/",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=286",
            "date": "2018-06-28T00:52:48",
            "name": "Cryptodev API changes for 18.08",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/286/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/41813/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/41813/checks/",
    "tags": {},
    "headers": {
        "X-Mailman-Version": "2.1.15",
        "X-ExtLoop1": "1",
        "Errors-To": "dev-bounces@dpdk.org",
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Mailer": "git-send-email 2.14.4",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 0CD221B3B9;\n\tThu, 28 Jun 2018 11:00:16 +0200 (CEST)",
            "from mga18.intel.com (mga18.intel.com [134.134.136.126])\n\tby dpdk.org (Postfix) with ESMTP id BEF231B1EF\n\tfor <dev@dpdk.org>; Thu, 28 Jun 2018 10:59:55 +0200 (CEST)",
            "from orsmga002.jf.intel.com ([10.7.209.21])\n\tby orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t28 Jun 2018 01:59:54 -0700",
            "from silpixa00399466.ir.intel.com (HELO\n\tsilpixa00399466.ger.corp.intel.com) ([10.237.223.220])\n\tby orsmga002.jf.intel.com with ESMTP; 28 Jun 2018 01:59:41 -0700"
        ],
        "References": "<20180608220234.10170-1-pablo.de.lara.guarch@intel.com>\n\t<20180628005304.26544-1-pablo.de.lara.guarch@intel.com>",
        "X-Amp-File-Uploaded": "False",
        "X-BeenThere": "dev@dpdk.org",
        "Message-Id": "<20180628005304.26544-16-pablo.de.lara.guarch@intel.com>",
        "X-IronPort-AV": "E=Sophos;i=\"5.51,282,1526367600\"; d=\"scan'208\";a=\"70667213\"",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "Precedence": "list",
        "From": "Pablo de Lara <pablo.de.lara.guarch@intel.com>",
        "X-Original-To": "patchwork@dpdk.org",
        "List-Post": "<mailto:dev@dpdk.org>",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "In-Reply-To": "<20180628005304.26544-1-pablo.de.lara.guarch@intel.com>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "To": "declan.doherty@intel.com, akhil.goyal@nxp.com,\n\tshally.verma@caviumnetworks.com, ravi1.kumar@amd.com,\n\tjerin.jacob@caviumnetworks.com, roy.fan.zhang@intel.com,\n\tfiona.trahe@intel.com, tdu@semihalf.com, jianjay.zhou@huawei.com",
        "Delivered-To": "patchwork@dpdk.org",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "Date": "Thu, 28 Jun 2018 01:53:03 +0100",
        "Cc": "dev@dpdk.org,\n\tPablo de Lara <pablo.de.lara.guarch@intel.com>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "Subject": "[dpdk-dev] [PATCH v3 15/16] cryptodev: rename PMD symmetric session\n\tAPI"
    },
    "content": "The PMD specific API to configure, clear and\nobtain session private size is renamed, including\nthe word _sym_ to clarify that it is API\nfor symmetric sessions, so there will not be any\nconflicts for asymmetric and other type of sessions\nin the future.\n\nSigned-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>\n---\n drivers/crypto/aesni_gcm/aesni_gcm_pmd.c       |  6 +++---\n drivers/crypto/aesni_gcm/aesni_gcm_pmd_ops.c   | 18 ++++++++---------\n drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c     |  8 ++++----\n drivers/crypto/aesni_mb/rte_aesni_mb_pmd_ops.c | 18 ++++++++---------\n drivers/crypto/armv8/rte_armv8_pmd.c           |  6 +++---\n drivers/crypto/armv8/rte_armv8_pmd_ops.c       | 18 ++++++++---------\n drivers/crypto/ccp/ccp_crypto.c                | 28 +++++++++++++-------------\n drivers/crypto/ccp/ccp_pmd_ops.c               | 18 ++++++++---------\n drivers/crypto/ccp/rte_ccp_pmd.c               |  4 ++--\n drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c    | 20 +++++++++---------\n drivers/crypto/dpaa_sec/dpaa_sec.c             | 20 +++++++++---------\n drivers/crypto/kasumi/rte_kasumi_pmd.c         |  6 +++---\n drivers/crypto/kasumi/rte_kasumi_pmd_ops.c     | 18 ++++++++---------\n drivers/crypto/mvsam/rte_mrvl_pmd.c            |  2 +-\n drivers/crypto/mvsam/rte_mrvl_pmd_ops.c        | 18 ++++++++---------\n drivers/crypto/null/null_crypto_pmd.c          |  6 +++---\n drivers/crypto/null/null_crypto_pmd_ops.c      | 18 ++++++++---------\n drivers/crypto/openssl/rte_openssl_pmd.c       |  6 +++---\n drivers/crypto/openssl/rte_openssl_pmd_ops.c   | 18 ++++++++---------\n drivers/crypto/qat/qat_sym.c                   |  2 +-\n drivers/crypto/qat/qat_sym.h                   |  2 +-\n drivers/crypto/qat/qat_sym_pmd.c               |  6 +++---\n drivers/crypto/qat/qat_sym_session.c           |  6 +++---\n drivers/crypto/scheduler/scheduler_pmd_ops.c   | 14 ++++++-------\n drivers/crypto/snow3g/rte_snow3g_pmd.c         |  6 +++---\n drivers/crypto/snow3g/rte_snow3g_pmd_ops.c     | 18 ++++++++---------\n drivers/crypto/virtio/virtio_cryptodev.c       | 10 ++++-----\n drivers/crypto/virtio/virtio_rxtx.c            |  2 +-\n drivers/crypto/zuc/rte_zuc_pmd.c               |  6 +++---\n drivers/crypto/zuc/rte_zuc_pmd_ops.c           | 18 ++++++++---------\n lib/librte_cryptodev/rte_cryptodev.c           | 11 +++++-----\n lib/librte_cryptodev/rte_cryptodev_pmd.h       | 10 ++++-----\n 32 files changed, 184 insertions(+), 183 deletions(-)",
    "diff": "diff --git a/drivers/crypto/aesni_gcm/aesni_gcm_pmd.c b/drivers/crypto/aesni_gcm/aesni_gcm_pmd.c\nindex 03917f220..16f6d64cc 100644\n--- a/drivers/crypto/aesni_gcm/aesni_gcm_pmd.c\n+++ b/drivers/crypto/aesni_gcm/aesni_gcm_pmd.c\n@@ -127,7 +127,7 @@ aesni_gcm_get_session(struct aesni_gcm_qp *qp, struct rte_crypto_op *op)\n \tif (op->sess_type == RTE_CRYPTO_OP_WITH_SESSION) {\n \t\tif (likely(sym_op->session != NULL))\n \t\t\tsess = (struct aesni_gcm_session *)\n-\t\t\t\t\tget_session_private_data(\n+\t\t\t\t\tget_sym_session_private_data(\n \t\t\t\t\tsym_op->session,\n \t\t\t\t\tcryptodev_driver_id);\n \t} else  {\n@@ -149,8 +149,8 @@ aesni_gcm_get_session(struct aesni_gcm_qp *qp, struct rte_crypto_op *op)\n \t\t\tsess = NULL;\n \t\t}\n \t\tsym_op->session = (struct rte_cryptodev_sym_session *)_sess;\n-\t\tset_session_private_data(sym_op->session, cryptodev_driver_id,\n-\t\t\t_sess_private_data);\n+\t\tset_sym_session_private_data(sym_op->session,\n+\t\t\t\tcryptodev_driver_id, _sess_private_data);\n \t}\n \n \tif (unlikely(sess == NULL))\ndiff --git a/drivers/crypto/aesni_gcm/aesni_gcm_pmd_ops.c b/drivers/crypto/aesni_gcm/aesni_gcm_pmd_ops.c\nindex e24453a7e..72a63b924 100644\n--- a/drivers/crypto/aesni_gcm/aesni_gcm_pmd_ops.c\n+++ b/drivers/crypto/aesni_gcm/aesni_gcm_pmd_ops.c\n@@ -252,14 +252,14 @@ aesni_gcm_pmd_qp_count(struct rte_cryptodev *dev)\n \n /** Returns the size of the aesni gcm session structure */\n static unsigned\n-aesni_gcm_pmd_session_get_size(struct rte_cryptodev *dev __rte_unused)\n+aesni_gcm_pmd_sym_session_get_size(struct rte_cryptodev *dev __rte_unused)\n {\n \treturn sizeof(struct aesni_gcm_session);\n }\n \n /** Configure a aesni gcm session from a crypto xform chain */\n static int\n-aesni_gcm_pmd_session_configure(struct rte_cryptodev *dev __rte_unused,\n+aesni_gcm_pmd_sym_session_configure(struct rte_cryptodev *dev __rte_unused,\n \t\tstruct rte_crypto_sym_xform *xform,\n \t\tstruct rte_cryptodev_sym_session *sess,\n \t\tstruct rte_mempool *mempool)\n@@ -288,7 +288,7 @@ aesni_gcm_pmd_session_configure(struct rte_cryptodev *dev __rte_unused,\n \t\treturn ret;\n \t}\n \n-\tset_session_private_data(sess, dev->driver_id,\n+\tset_sym_session_private_data(sess, dev->driver_id,\n \t\t\tsess_private_data);\n \n \treturn 0;\n@@ -296,17 +296,17 @@ aesni_gcm_pmd_session_configure(struct rte_cryptodev *dev __rte_unused,\n \n /** Clear the memory of session so it doesn't leave key material behind */\n static void\n-aesni_gcm_pmd_session_clear(struct rte_cryptodev *dev,\n+aesni_gcm_pmd_sym_session_clear(struct rte_cryptodev *dev,\n \t\tstruct rte_cryptodev_sym_session *sess)\n {\n \tuint8_t index = dev->driver_id;\n-\tvoid *sess_priv = get_session_private_data(sess, index);\n+\tvoid *sess_priv = get_sym_session_private_data(sess, index);\n \n \t/* Zero out the whole structure */\n \tif (sess_priv) {\n \t\tmemset(sess_priv, 0, sizeof(struct aesni_gcm_session));\n \t\tstruct rte_mempool *sess_mp = rte_mempool_from_obj(sess_priv);\n-\t\tset_session_private_data(sess, index, NULL);\n+\t\tset_sym_session_private_data(sess, index, NULL);\n \t\trte_mempool_put(sess_mp, sess_priv);\n \t}\n }\n@@ -326,9 +326,9 @@ struct rte_cryptodev_ops aesni_gcm_pmd_ops = {\n \t\t.queue_pair_release\t= aesni_gcm_pmd_qp_release,\n \t\t.queue_pair_count\t= aesni_gcm_pmd_qp_count,\n \n-\t\t.session_get_size\t= aesni_gcm_pmd_session_get_size,\n-\t\t.session_configure\t= aesni_gcm_pmd_session_configure,\n-\t\t.session_clear\t\t= aesni_gcm_pmd_session_clear\n+\t\t.sym_session_get_size\t= aesni_gcm_pmd_sym_session_get_size,\n+\t\t.sym_session_configure\t= aesni_gcm_pmd_sym_session_configure,\n+\t\t.sym_session_clear\t= aesni_gcm_pmd_sym_session_clear\n };\n \n struct rte_cryptodev_ops *rte_aesni_gcm_pmd_ops = &aesni_gcm_pmd_ops;\ndiff --git a/drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c b/drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c\nindex bb647f736..0d6597924 100644\n--- a/drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c\n+++ b/drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c\n@@ -458,7 +458,7 @@ get_session(struct aesni_mb_qp *qp, struct rte_crypto_op *op)\n \tif (op->sess_type == RTE_CRYPTO_OP_WITH_SESSION) {\n \t\tif (likely(op->sym->session != NULL))\n \t\t\tsess = (struct aesni_mb_session *)\n-\t\t\t\t\tget_session_private_data(\n+\t\t\t\t\tget_sym_session_private_data(\n \t\t\t\t\top->sym->session,\n \t\t\t\t\tcryptodev_driver_id);\n \t} else {\n@@ -480,8 +480,8 @@ get_session(struct aesni_mb_qp *qp, struct rte_crypto_op *op)\n \t\t\tsess = NULL;\n \t\t}\n \t\top->sym->session = (struct rte_cryptodev_sym_session *)_sess;\n-\t\tset_session_private_data(op->sym->session, cryptodev_driver_id,\n-\t\t\t_sess_private_data);\n+\t\tset_sym_session_private_data(op->sym->session,\n+\t\t\t\tcryptodev_driver_id, _sess_private_data);\n \t}\n \n \tif (unlikely(sess == NULL))\n@@ -658,7 +658,7 @@ static inline struct rte_crypto_op *\n post_process_mb_job(struct aesni_mb_qp *qp, JOB_AES_HMAC *job)\n {\n \tstruct rte_crypto_op *op = (struct rte_crypto_op *)job->user_data;\n-\tstruct aesni_mb_session *sess = get_session_private_data(\n+\tstruct aesni_mb_session *sess = get_sym_session_private_data(\n \t\t\t\t\t\t\top->sym->session,\n \t\t\t\t\t\t\tcryptodev_driver_id);\n \ndiff --git a/drivers/crypto/aesni_mb/rte_aesni_mb_pmd_ops.c b/drivers/crypto/aesni_mb/rte_aesni_mb_pmd_ops.c\nindex 6eb37a5bf..02f1b6a48 100644\n--- a/drivers/crypto/aesni_mb/rte_aesni_mb_pmd_ops.c\n+++ b/drivers/crypto/aesni_mb/rte_aesni_mb_pmd_ops.c\n@@ -518,14 +518,14 @@ aesni_mb_pmd_qp_count(struct rte_cryptodev *dev)\n \n /** Returns the size of the aesni multi-buffer session structure */\n static unsigned\n-aesni_mb_pmd_session_get_size(struct rte_cryptodev *dev __rte_unused)\n+aesni_mb_pmd_sym_session_get_size(struct rte_cryptodev *dev __rte_unused)\n {\n \treturn sizeof(struct aesni_mb_session);\n }\n \n /** Configure a aesni multi-buffer session from a crypto xform chain */\n static int\n-aesni_mb_pmd_session_configure(struct rte_cryptodev *dev,\n+aesni_mb_pmd_sym_session_configure(struct rte_cryptodev *dev,\n \t\tstruct rte_crypto_sym_xform *xform,\n \t\tstruct rte_cryptodev_sym_session *sess,\n \t\tstruct rte_mempool *mempool)\n@@ -555,7 +555,7 @@ aesni_mb_pmd_session_configure(struct rte_cryptodev *dev,\n \t\treturn ret;\n \t}\n \n-\tset_session_private_data(sess, dev->driver_id,\n+\tset_sym_session_private_data(sess, dev->driver_id,\n \t\t\tsess_private_data);\n \n \treturn 0;\n@@ -563,17 +563,17 @@ aesni_mb_pmd_session_configure(struct rte_cryptodev *dev,\n \n /** Clear the memory of session so it doesn't leave key material behind */\n static void\n-aesni_mb_pmd_session_clear(struct rte_cryptodev *dev,\n+aesni_mb_pmd_sym_session_clear(struct rte_cryptodev *dev,\n \t\tstruct rte_cryptodev_sym_session *sess)\n {\n \tuint8_t index = dev->driver_id;\n-\tvoid *sess_priv = get_session_private_data(sess, index);\n+\tvoid *sess_priv = get_sym_session_private_data(sess, index);\n \n \t/* Zero out the whole structure */\n \tif (sess_priv) {\n \t\tmemset(sess_priv, 0, sizeof(struct aesni_mb_session));\n \t\tstruct rte_mempool *sess_mp = rte_mempool_from_obj(sess_priv);\n-\t\tset_session_private_data(sess, index, NULL);\n+\t\tset_sym_session_private_data(sess, index, NULL);\n \t\trte_mempool_put(sess_mp, sess_priv);\n \t}\n }\n@@ -593,9 +593,9 @@ struct rte_cryptodev_ops aesni_mb_pmd_ops = {\n \t\t.queue_pair_release\t= aesni_mb_pmd_qp_release,\n \t\t.queue_pair_count\t= aesni_mb_pmd_qp_count,\n \n-\t\t.session_get_size\t= aesni_mb_pmd_session_get_size,\n-\t\t.session_configure\t= aesni_mb_pmd_session_configure,\n-\t\t.session_clear\t\t= aesni_mb_pmd_session_clear\n+\t\t.sym_session_get_size\t= aesni_mb_pmd_sym_session_get_size,\n+\t\t.sym_session_configure\t= aesni_mb_pmd_sym_session_configure,\n+\t\t.sym_session_clear\t= aesni_mb_pmd_sym_session_clear\n };\n \n struct rte_cryptodev_ops *rte_aesni_mb_pmd_ops = &aesni_mb_pmd_ops;\ndiff --git a/drivers/crypto/armv8/rte_armv8_pmd.c b/drivers/crypto/armv8/rte_armv8_pmd.c\nindex db0d8a2a9..9d15fee53 100644\n--- a/drivers/crypto/armv8/rte_armv8_pmd.c\n+++ b/drivers/crypto/armv8/rte_armv8_pmd.c\n@@ -502,7 +502,7 @@ get_session(struct armv8_crypto_qp *qp, struct rte_crypto_op *op)\n \t\t/* get existing session */\n \t\tif (likely(op->sym->session != NULL)) {\n \t\t\tsess = (struct armv8_crypto_session *)\n-\t\t\t\t\tget_session_private_data(\n+\t\t\t\t\tget_sym_session_private_data(\n \t\t\t\t\top->sym->session,\n \t\t\t\t\tcryptodev_driver_id);\n \t\t}\n@@ -526,8 +526,8 @@ get_session(struct armv8_crypto_qp *qp, struct rte_crypto_op *op)\n \t\t\tsess = NULL;\n \t\t}\n \t\top->sym->session = (struct rte_cryptodev_sym_session *)_sess;\n-\t\tset_session_private_data(op->sym->session, cryptodev_driver_id,\n-\t\t\t_sess_private_data);\n+\t\tset_sym_session_private_data(op->sym->session,\n+\t\t\t\tcryptodev_driver_id, _sess_private_data);\n \t}\n \n \tif (unlikely(sess == NULL))\ndiff --git a/drivers/crypto/armv8/rte_armv8_pmd_ops.c b/drivers/crypto/armv8/rte_armv8_pmd_ops.c\nindex 5e8a5a292..ae03117ea 100644\n--- a/drivers/crypto/armv8/rte_armv8_pmd_ops.c\n+++ b/drivers/crypto/armv8/rte_armv8_pmd_ops.c\n@@ -267,14 +267,14 @@ armv8_crypto_pmd_qp_count(struct rte_cryptodev *dev)\n \n /** Returns the size of the session structure */\n static unsigned\n-armv8_crypto_pmd_session_get_size(struct rte_cryptodev *dev __rte_unused)\n+armv8_crypto_pmd_sym_session_get_size(struct rte_cryptodev *dev __rte_unused)\n {\n \treturn sizeof(struct armv8_crypto_session);\n }\n \n /** Configure the session from a crypto xform chain */\n static int\n-armv8_crypto_pmd_session_configure(struct rte_cryptodev *dev,\n+armv8_crypto_pmd_sym_session_configure(struct rte_cryptodev *dev,\n \t\tstruct rte_crypto_sym_xform *xform,\n \t\tstruct rte_cryptodev_sym_session *sess,\n \t\tstruct rte_mempool *mempool)\n@@ -302,7 +302,7 @@ armv8_crypto_pmd_session_configure(struct rte_cryptodev *dev,\n \t\treturn ret;\n \t}\n \n-\tset_session_private_data(sess, dev->driver_id,\n+\tset_sym_session_private_data(sess, dev->driver_id,\n \t\t\tsess_private_data);\n \n \treturn 0;\n@@ -310,17 +310,17 @@ armv8_crypto_pmd_session_configure(struct rte_cryptodev *dev,\n \n /** Clear the memory of session so it doesn't leave key material behind */\n static void\n-armv8_crypto_pmd_session_clear(struct rte_cryptodev *dev,\n+armv8_crypto_pmd_sym_session_clear(struct rte_cryptodev *dev,\n \t\tstruct rte_cryptodev_sym_session *sess)\n {\n \tuint8_t index = dev->driver_id;\n-\tvoid *sess_priv = get_session_private_data(sess, index);\n+\tvoid *sess_priv = get_sym_session_private_data(sess, index);\n \n \t/* Zero out the whole structure */\n \tif (sess_priv) {\n \t\tmemset(sess_priv, 0, sizeof(struct armv8_crypto_session));\n \t\tstruct rte_mempool *sess_mp = rte_mempool_from_obj(sess_priv);\n-\t\tset_session_private_data(sess, index, NULL);\n+\t\tset_sym_session_private_data(sess, index, NULL);\n \t\trte_mempool_put(sess_mp, sess_priv);\n \t}\n }\n@@ -340,9 +340,9 @@ struct rte_cryptodev_ops armv8_crypto_pmd_ops = {\n \t\t.queue_pair_release\t= armv8_crypto_pmd_qp_release,\n \t\t.queue_pair_count\t= armv8_crypto_pmd_qp_count,\n \n-\t\t.session_get_size\t= armv8_crypto_pmd_session_get_size,\n-\t\t.session_configure\t= armv8_crypto_pmd_session_configure,\n-\t\t.session_clear\t\t= armv8_crypto_pmd_session_clear\n+\t\t.sym_session_get_size\t= armv8_crypto_pmd_sym_session_get_size,\n+\t\t.sym_session_configure\t= armv8_crypto_pmd_sym_session_configure,\n+\t\t.sym_session_clear\t= armv8_crypto_pmd_sym_session_clear\n };\n \n struct rte_cryptodev_ops *rte_armv8_crypto_pmd_ops = &armv8_crypto_pmd_ops;\ndiff --git a/drivers/crypto/ccp/ccp_crypto.c b/drivers/crypto/ccp/ccp_crypto.c\nindex 3ce0f39f3..19ae9153d 100644\n--- a/drivers/crypto/ccp/ccp_crypto.c\n+++ b/drivers/crypto/ccp/ccp_crypto.c\n@@ -1566,7 +1566,7 @@ ccp_perform_hmac(struct rte_crypto_op *op,\n \tvoid *append_ptr;\n \tuint8_t *addr;\n \n-\tsession = (struct ccp_session *)get_session_private_data(\n+\tsession = (struct ccp_session *)get_sym_session_private_data(\n \t\t\t\t\t op->sym->session,\n \t\t\t\t\t ccp_cryptodev_driver_id);\n \taddr = session->auth.pre_compute;\n@@ -1739,7 +1739,7 @@ ccp_perform_sha(struct rte_crypto_op *op,\n \tvoid *append_ptr;\n \tuint64_t auth_msg_bits;\n \n-\tsession = (struct ccp_session *)get_session_private_data(\n+\tsession = (struct ccp_session *)get_sym_session_private_data(\n \t\t\t\t\t op->sym->session,\n \t\t\t\t\tccp_cryptodev_driver_id);\n \n@@ -1828,7 +1828,7 @@ ccp_perform_sha3_hmac(struct rte_crypto_op *op,\n \tuint32_t tail;\n \tphys_addr_t src_addr, dest_addr, ctx_paddr, dest_addr_t;\n \n-\tsession = (struct ccp_session *)get_session_private_data(\n+\tsession = (struct ccp_session *)get_sym_session_private_data(\n \t\t\t\t\t op->sym->session,\n \t\t\t\t\tccp_cryptodev_driver_id);\n \n@@ -1968,7 +1968,7 @@ ccp_perform_sha3(struct rte_crypto_op *op,\n \tuint32_t tail;\n \tphys_addr_t src_addr, dest_addr, ctx_paddr;\n \n-\tsession = (struct ccp_session *)get_session_private_data(\n+\tsession = (struct ccp_session *)get_sym_session_private_data(\n \t\t\t\t\t op->sym->session,\n \t\t\t\t\tccp_cryptodev_driver_id);\n \n@@ -2036,7 +2036,7 @@ ccp_perform_aes_cmac(struct rte_crypto_op *op,\n \tphys_addr_t src_addr, dest_addr, key_addr;\n \tint length, non_align_len;\n \n-\tsession = (struct ccp_session *)get_session_private_data(\n+\tsession = (struct ccp_session *)get_sym_session_private_data(\n \t\t\t\t\t op->sym->session,\n \t\t\t\t\tccp_cryptodev_driver_id);\n \tkey_addr = rte_mem_virt2phy(session->auth.key_ccp);\n@@ -2188,7 +2188,7 @@ ccp_perform_aes(struct rte_crypto_op *op,\n \tphys_addr_t src_addr, dest_addr, key_addr;\n \tuint8_t *iv;\n \n-\tsession = (struct ccp_session *)get_session_private_data(\n+\tsession = (struct ccp_session *)get_sym_session_private_data(\n \t\t\t\t\t op->sym->session,\n \t\t\t\t\tccp_cryptodev_driver_id);\n \tfunction.raw = 0;\n@@ -2276,7 +2276,7 @@ ccp_perform_3des(struct rte_crypto_op *op,\n \tuint8_t *iv;\n \tphys_addr_t src_addr, dest_addr, key_addr;\n \n-\tsession = (struct ccp_session *)get_session_private_data(\n+\tsession = (struct ccp_session *)get_sym_session_private_data(\n \t\t\t\t\t op->sym->session,\n \t\t\t\t\tccp_cryptodev_driver_id);\n \n@@ -2379,7 +2379,7 @@ ccp_perform_aes_gcm(struct rte_crypto_op *op, struct ccp_queue *cmd_q)\n \tphys_addr_t digest_dest_addr;\n \tint length, non_align_len;\n \n-\tsession = (struct ccp_session *)get_session_private_data(\n+\tsession = (struct ccp_session *)get_sym_session_private_data(\n \t\t\t\t\t op->sym->session,\n \t\t\t\t\t ccp_cryptodev_driver_id);\n \tiv = rte_crypto_op_ctod_offset(op, uint8_t *, session->iv.offset);\n@@ -2546,7 +2546,7 @@ ccp_crypto_cipher(struct rte_crypto_op *op,\n \tint result = 0;\n \tstruct ccp_session *session;\n \n-\tsession = (struct ccp_session *)get_session_private_data(\n+\tsession = (struct ccp_session *)get_sym_session_private_data(\n \t\t\t\t\t op->sym->session,\n \t\t\t\t\t ccp_cryptodev_driver_id);\n \n@@ -2584,7 +2584,7 @@ ccp_crypto_auth(struct rte_crypto_op *op,\n \tint result = 0;\n \tstruct ccp_session *session;\n \n-\tsession = (struct ccp_session *)get_session_private_data(\n+\tsession = (struct ccp_session *)get_sym_session_private_data(\n \t\t\t\t\t op->sym->session,\n \t\t\t\t\tccp_cryptodev_driver_id);\n \n@@ -2654,7 +2654,7 @@ ccp_crypto_aead(struct rte_crypto_op *op,\n \tint result = 0;\n \tstruct ccp_session *session;\n \n-\tsession = (struct ccp_session *)get_session_private_data(\n+\tsession = (struct ccp_session *)get_sym_session_private_data(\n \t\t\t\t\top->sym->session,\n \t\t\t\t\tccp_cryptodev_driver_id);\n \n@@ -2711,7 +2711,7 @@ process_ops_to_enqueue(struct ccp_qp *qp,\n \tb_info->head_offset = (uint32_t)(cmd_q->qbase_phys_addr + cmd_q->qidx *\n \t\t\t\t\t Q_DESC_SIZE);\n \tfor (i = 0; i < nb_ops; i++) {\n-\t\tsession = (struct ccp_session *)get_session_private_data(\n+\t\tsession = (struct ccp_session *)get_sym_session_private_data(\n \t\t\t\t\t\t op[i]->sym->session,\n \t\t\t\t\t\t ccp_cryptodev_driver_id);\n \t\tswitch (session->cmd_id) {\n@@ -2787,7 +2787,7 @@ static inline void ccp_auth_dq_prepare(struct rte_crypto_op *op)\n \tint offset, digest_offset;\n \tuint8_t digest_le[64];\n \n-\tsession = (struct ccp_session *)get_session_private_data(\n+\tsession = (struct ccp_session *)get_sym_session_private_data(\n \t\t\t\t\t op->sym->session,\n \t\t\t\t\tccp_cryptodev_driver_id);\n \n@@ -2863,7 +2863,7 @@ ccp_prepare_ops(struct ccp_qp *qp,\n \n \tfor (i = 0; i < min_ops; i++) {\n \t\top_d[i] = b_info->op[b_info->op_idx++];\n-\t\tsession = (struct ccp_session *)get_session_private_data(\n+\t\tsession = (struct ccp_session *)get_sym_session_private_data(\n \t\t\t\t\t\t op_d[i]->sym->session,\n \t\t\t\t\t\tccp_cryptodev_driver_id);\n \t\tswitch (session->cmd_id) {\ndiff --git a/drivers/crypto/ccp/ccp_pmd_ops.c b/drivers/crypto/ccp/ccp_pmd_ops.c\nindex 1cb944406..6984913f1 100644\n--- a/drivers/crypto/ccp/ccp_pmd_ops.c\n+++ b/drivers/crypto/ccp/ccp_pmd_ops.c\n@@ -755,13 +755,13 @@ ccp_pmd_qp_count(struct rte_cryptodev *dev)\n }\n \n static unsigned\n-ccp_pmd_session_get_size(struct rte_cryptodev *dev __rte_unused)\n+ccp_pmd_sym_session_get_size(struct rte_cryptodev *dev __rte_unused)\n {\n \treturn sizeof(struct ccp_session);\n }\n \n static int\n-ccp_pmd_session_configure(struct rte_cryptodev *dev,\n+ccp_pmd_sym_session_configure(struct rte_cryptodev *dev,\n \t\t\t  struct rte_crypto_sym_xform *xform,\n \t\t\t  struct rte_cryptodev_sym_session *sess,\n \t\t\t  struct rte_mempool *mempool)\n@@ -788,25 +788,25 @@ ccp_pmd_session_configure(struct rte_cryptodev *dev,\n \t\trte_mempool_put(mempool, sess_private_data);\n \t\treturn ret;\n \t}\n-\tset_session_private_data(sess, dev->driver_id,\n+\tset_sym_session_private_data(sess, dev->driver_id,\n \t\t\t\t sess_private_data);\n \n \treturn 0;\n }\n \n static void\n-ccp_pmd_session_clear(struct rte_cryptodev *dev,\n+ccp_pmd_sym_session_clear(struct rte_cryptodev *dev,\n \t\t      struct rte_cryptodev_sym_session *sess)\n {\n \tuint8_t index = dev->driver_id;\n-\tvoid *sess_priv = get_session_private_data(sess, index);\n+\tvoid *sess_priv = get_sym_session_private_data(sess, index);\n \n \tif (sess_priv) {\n \t\tstruct rte_mempool *sess_mp = rte_mempool_from_obj(sess_priv);\n \n \t\trte_mempool_put(sess_mp, sess_priv);\n \t\tmemset(sess_priv, 0, sizeof(struct ccp_session));\n-\t\tset_session_private_data(sess, index, NULL);\n+\t\tset_sym_session_private_data(sess, index, NULL);\n \t}\n }\n \n@@ -825,9 +825,9 @@ struct rte_cryptodev_ops ccp_ops = {\n \t\t.queue_pair_release\t= ccp_pmd_qp_release,\n \t\t.queue_pair_count\t= ccp_pmd_qp_count,\n \n-\t\t.session_get_size\t= ccp_pmd_session_get_size,\n-\t\t.session_configure\t= ccp_pmd_session_configure,\n-\t\t.session_clear\t\t= ccp_pmd_session_clear,\n+\t\t.sym_session_get_size\t= ccp_pmd_sym_session_get_size,\n+\t\t.sym_session_configure\t= ccp_pmd_sym_session_configure,\n+\t\t.sym_session_clear\t= ccp_pmd_sym_session_clear,\n };\n \n struct rte_cryptodev_ops *ccp_pmd_ops = &ccp_ops;\ndiff --git a/drivers/crypto/ccp/rte_ccp_pmd.c b/drivers/crypto/ccp/rte_ccp_pmd.c\nindex d70640f6d..92d8a9559 100644\n--- a/drivers/crypto/ccp/rte_ccp_pmd.c\n+++ b/drivers/crypto/ccp/rte_ccp_pmd.c\n@@ -160,7 +160,7 @@ get_ccp_session(struct ccp_qp *qp, struct rte_crypto_op *op)\n \t\t\treturn NULL;\n \n \t\tsess = (struct ccp_session *)\n-\t\t\tget_session_private_data(\n+\t\t\tget_sym_session_private_data(\n \t\t\t\top->sym->session,\n \t\t\t\tccp_cryptodev_driver_id);\n \t} else if (op->sess_type == RTE_CRYPTO_OP_SESSIONLESS) {\n@@ -183,7 +183,7 @@ get_ccp_session(struct ccp_qp *qp, struct rte_crypto_op *op)\n \t\t\tsess = NULL;\n \t\t}\n \t\top->sym->session = (struct rte_cryptodev_sym_session *)_sess;\n-\t\tset_session_private_data(op->sym->session,\n+\t\tset_sym_session_private_data(op->sym->session,\n \t\t\t\t\t ccp_cryptodev_driver_id,\n \t\t\t\t\t _sess_private_data);\n \t}\ndiff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c\nindex 4daee5f59..a0df93666 100644\n--- a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c\n+++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c\n@@ -1080,7 +1080,7 @@ build_sec_fd(struct rte_crypto_op *op,\n \tPMD_INIT_FUNC_TRACE();\n \n \tif (op->sess_type == RTE_CRYPTO_OP_WITH_SESSION)\n-\t\tsess = (dpaa2_sec_session *)get_session_private_data(\n+\t\tsess = (dpaa2_sec_session *)get_sym_session_private_data(\n \t\t\t\top->sym->session, cryptodev_driver_id);\n \telse if (op->sess_type == RTE_CRYPTO_OP_SECURITY_SESSION)\n \t\tsess = (dpaa2_sec_session *)get_sec_session_private_data(\n@@ -1481,7 +1481,7 @@ dpaa2_sec_queue_pair_count(struct rte_cryptodev *dev)\n \n /** Returns the size of the aesni gcm session structure */\n static unsigned int\n-dpaa2_sec_session_get_size(struct rte_cryptodev *dev __rte_unused)\n+dpaa2_sec_sym_session_get_size(struct rte_cryptodev *dev __rte_unused)\n {\n \tPMD_INIT_FUNC_TRACE();\n \n@@ -2436,7 +2436,7 @@ dpaa2_sec_security_session_destroy(void *dev __rte_unused,\n }\n \n static int\n-dpaa2_sec_session_configure(struct rte_cryptodev *dev,\n+dpaa2_sec_sym_session_configure(struct rte_cryptodev *dev,\n \t\tstruct rte_crypto_sym_xform *xform,\n \t\tstruct rte_cryptodev_sym_session *sess,\n \t\tstruct rte_mempool *mempool)\n@@ -2457,7 +2457,7 @@ dpaa2_sec_session_configure(struct rte_cryptodev *dev,\n \t\treturn ret;\n \t}\n \n-\tset_session_private_data(sess, dev->driver_id,\n+\tset_sym_session_private_data(sess, dev->driver_id,\n \t\tsess_private_data);\n \n \treturn 0;\n@@ -2465,12 +2465,12 @@ dpaa2_sec_session_configure(struct rte_cryptodev *dev,\n \n /** Clear the memory of session so it doesn't leave key material behind */\n static void\n-dpaa2_sec_session_clear(struct rte_cryptodev *dev,\n+dpaa2_sec_sym_session_clear(struct rte_cryptodev *dev,\n \t\tstruct rte_cryptodev_sym_session *sess)\n {\n \tPMD_INIT_FUNC_TRACE();\n \tuint8_t index = dev->driver_id;\n-\tvoid *sess_priv = get_session_private_data(sess, index);\n+\tvoid *sess_priv = get_sym_session_private_data(sess, index);\n \tdpaa2_sec_session *s = (dpaa2_sec_session *)sess_priv;\n \n \tif (sess_priv) {\n@@ -2479,7 +2479,7 @@ dpaa2_sec_session_clear(struct rte_cryptodev *dev,\n \t\trte_free(s->auth_key.data);\n \t\tmemset(sess, 0, sizeof(dpaa2_sec_session));\n \t\tstruct rte_mempool *sess_mp = rte_mempool_from_obj(sess_priv);\n-\t\tset_session_private_data(sess, index, NULL);\n+\t\tset_sym_session_private_data(sess, index, NULL);\n \t\trte_mempool_put(sess_mp, sess_priv);\n \t}\n }\n@@ -2697,9 +2697,9 @@ static struct rte_cryptodev_ops crypto_ops = {\n \t.queue_pair_setup     = dpaa2_sec_queue_pair_setup,\n \t.queue_pair_release   = dpaa2_sec_queue_pair_release,\n \t.queue_pair_count     = dpaa2_sec_queue_pair_count,\n-\t.session_get_size     = dpaa2_sec_session_get_size,\n-\t.session_configure    = dpaa2_sec_session_configure,\n-\t.session_clear        = dpaa2_sec_session_clear,\n+\t.sym_session_get_size     = dpaa2_sec_sym_session_get_size,\n+\t.sym_session_configure    = dpaa2_sec_sym_session_configure,\n+\t.sym_session_clear        = dpaa2_sec_sym_session_clear,\n };\n \n static const struct rte_security_capability *\ndiff --git a/drivers/crypto/dpaa_sec/dpaa_sec.c b/drivers/crypto/dpaa_sec/dpaa_sec.c\nindex 3de7df93c..b2108a3dd 100644\n--- a/drivers/crypto/dpaa_sec/dpaa_sec.c\n+++ b/drivers/crypto/dpaa_sec/dpaa_sec.c\n@@ -1416,7 +1416,7 @@ dpaa_sec_enqueue_burst(void *qp, struct rte_crypto_op **ops,\n \t\t\tswitch (op->sess_type) {\n \t\t\tcase RTE_CRYPTO_OP_WITH_SESSION:\n \t\t\t\tses = (dpaa_sec_session *)\n-\t\t\t\t\tget_session_private_data(\n+\t\t\t\t\tget_sym_session_private_data(\n \t\t\t\t\t\t\top->sym->session,\n \t\t\t\t\t\t\tcryptodev_driver_id);\n \t\t\t\tbreak;\n@@ -1596,7 +1596,7 @@ dpaa_sec_queue_pair_count(struct rte_cryptodev *dev)\n \n /** Returns the size of session structure */\n static unsigned int\n-dpaa_sec_session_get_size(struct rte_cryptodev *dev __rte_unused)\n+dpaa_sec_sym_session_get_size(struct rte_cryptodev *dev __rte_unused)\n {\n \tPMD_INIT_FUNC_TRACE();\n \n@@ -1811,7 +1811,7 @@ dpaa_sec_set_session_parameters(struct rte_cryptodev *dev,\n }\n \n static int\n-dpaa_sec_session_configure(struct rte_cryptodev *dev,\n+dpaa_sec_sym_session_configure(struct rte_cryptodev *dev,\n \t\tstruct rte_crypto_sym_xform *xform,\n \t\tstruct rte_cryptodev_sym_session *sess,\n \t\tstruct rte_mempool *mempool)\n@@ -1835,7 +1835,7 @@ dpaa_sec_session_configure(struct rte_cryptodev *dev,\n \t\treturn ret;\n \t}\n \n-\tset_session_private_data(sess, dev->driver_id,\n+\tset_sym_session_private_data(sess, dev->driver_id,\n \t\t\tsess_private_data);\n \n \n@@ -1844,12 +1844,12 @@ dpaa_sec_session_configure(struct rte_cryptodev *dev,\n \n /** Clear the memory of session so it doesn't leave key material behind */\n static void\n-dpaa_sec_session_clear(struct rte_cryptodev *dev,\n+dpaa_sec_sym_session_clear(struct rte_cryptodev *dev,\n \t\tstruct rte_cryptodev_sym_session *sess)\n {\n \tstruct dpaa_sec_dev_private *qi = dev->data->dev_private;\n \tuint8_t index = dev->driver_id;\n-\tvoid *sess_priv = get_session_private_data(sess, index);\n+\tvoid *sess_priv = get_sym_session_private_data(sess, index);\n \n \tPMD_INIT_FUNC_TRACE();\n \n@@ -1863,7 +1863,7 @@ dpaa_sec_session_clear(struct rte_cryptodev *dev,\n \t\trte_free(s->cipher_key.data);\n \t\trte_free(s->auth_key.data);\n \t\tmemset(s, 0, sizeof(dpaa_sec_session));\n-\t\tset_session_private_data(sess, index, NULL);\n+\t\tset_sym_session_private_data(sess, index, NULL);\n \t\trte_mempool_put(sess_mp, sess_priv);\n \t}\n }\n@@ -2180,9 +2180,9 @@ static struct rte_cryptodev_ops crypto_ops = {\n \t.queue_pair_setup     = dpaa_sec_queue_pair_setup,\n \t.queue_pair_release   = dpaa_sec_queue_pair_release,\n \t.queue_pair_count     = dpaa_sec_queue_pair_count,\n-\t.session_get_size     = dpaa_sec_session_get_size,\n-\t.session_configure    = dpaa_sec_session_configure,\n-\t.session_clear        = dpaa_sec_session_clear\n+\t.sym_session_get_size     = dpaa_sec_sym_session_get_size,\n+\t.sym_session_configure    = dpaa_sec_sym_session_configure,\n+\t.sym_session_clear        = dpaa_sec_sym_session_clear\n };\n \n static const struct rte_security_capability *\ndiff --git a/drivers/crypto/kasumi/rte_kasumi_pmd.c b/drivers/crypto/kasumi/rte_kasumi_pmd.c\nindex 65376b211..e9363cf29 100644\n--- a/drivers/crypto/kasumi/rte_kasumi_pmd.c\n+++ b/drivers/crypto/kasumi/rte_kasumi_pmd.c\n@@ -131,7 +131,7 @@ kasumi_get_session(struct kasumi_qp *qp, struct rte_crypto_op *op)\n \tif (op->sess_type == RTE_CRYPTO_OP_WITH_SESSION) {\n \t\tif (likely(op->sym->session != NULL))\n \t\t\tsess = (struct kasumi_session *)\n-\t\t\t\t\tget_session_private_data(\n+\t\t\t\t\tget_sym_session_private_data(\n \t\t\t\t\top->sym->session,\n \t\t\t\t\tcryptodev_driver_id);\n \t} else {\n@@ -153,8 +153,8 @@ kasumi_get_session(struct kasumi_qp *qp, struct rte_crypto_op *op)\n \t\t\tsess = NULL;\n \t\t}\n \t\top->sym->session = (struct rte_cryptodev_sym_session *)_sess;\n-\t\tset_session_private_data(op->sym->session, cryptodev_driver_id,\n-\t\t\t_sess_private_data);\n+\t\tset_sym_session_private_data(op->sym->session,\n+\t\t\t\tcryptodev_driver_id, _sess_private_data);\n \t}\n \n \tif (unlikely(sess == NULL))\ndiff --git a/drivers/crypto/kasumi/rte_kasumi_pmd_ops.c b/drivers/crypto/kasumi/rte_kasumi_pmd_ops.c\nindex 4174f1f80..287f5356a 100644\n--- a/drivers/crypto/kasumi/rte_kasumi_pmd_ops.c\n+++ b/drivers/crypto/kasumi/rte_kasumi_pmd_ops.c\n@@ -238,14 +238,14 @@ kasumi_pmd_qp_count(struct rte_cryptodev *dev)\n \n /** Returns the size of the KASUMI session structure */\n static unsigned\n-kasumi_pmd_session_get_size(struct rte_cryptodev *dev __rte_unused)\n+kasumi_pmd_sym_session_get_size(struct rte_cryptodev *dev __rte_unused)\n {\n \treturn sizeof(struct kasumi_session);\n }\n \n /** Configure a KASUMI session from a crypto xform chain */\n static int\n-kasumi_pmd_session_configure(struct rte_cryptodev *dev __rte_unused,\n+kasumi_pmd_sym_session_configure(struct rte_cryptodev *dev __rte_unused,\n \t\tstruct rte_crypto_sym_xform *xform,\n \t\tstruct rte_cryptodev_sym_session *sess,\n \t\tstruct rte_mempool *mempool)\n@@ -273,7 +273,7 @@ kasumi_pmd_session_configure(struct rte_cryptodev *dev __rte_unused,\n \t\treturn ret;\n \t}\n \n-\tset_session_private_data(sess, dev->driver_id,\n+\tset_sym_session_private_data(sess, dev->driver_id,\n \t\tsess_private_data);\n \n \treturn 0;\n@@ -281,17 +281,17 @@ kasumi_pmd_session_configure(struct rte_cryptodev *dev __rte_unused,\n \n /** Clear the memory of session so it doesn't leave key material behind */\n static void\n-kasumi_pmd_session_clear(struct rte_cryptodev *dev,\n+kasumi_pmd_sym_session_clear(struct rte_cryptodev *dev,\n \t\tstruct rte_cryptodev_sym_session *sess)\n {\n \tuint8_t index = dev->driver_id;\n-\tvoid *sess_priv = get_session_private_data(sess, index);\n+\tvoid *sess_priv = get_sym_session_private_data(sess, index);\n \n \t/* Zero out the whole structure */\n \tif (sess_priv) {\n \t\tmemset(sess_priv, 0, sizeof(struct kasumi_session));\n \t\tstruct rte_mempool *sess_mp = rte_mempool_from_obj(sess_priv);\n-\t\tset_session_private_data(sess, index, NULL);\n+\t\tset_sym_session_private_data(sess, index, NULL);\n \t\trte_mempool_put(sess_mp, sess_priv);\n \t}\n }\n@@ -311,9 +311,9 @@ struct rte_cryptodev_ops kasumi_pmd_ops = {\n \t\t.queue_pair_release = kasumi_pmd_qp_release,\n \t\t.queue_pair_count   = kasumi_pmd_qp_count,\n \n-\t\t.session_get_size   = kasumi_pmd_session_get_size,\n-\t\t.session_configure  = kasumi_pmd_session_configure,\n-\t\t.session_clear      = kasumi_pmd_session_clear\n+\t\t.sym_session_get_size   = kasumi_pmd_sym_session_get_size,\n+\t\t.sym_session_configure  = kasumi_pmd_sym_session_configure,\n+\t\t.sym_session_clear      = kasumi_pmd_sym_session_clear\n };\n \n struct rte_cryptodev_ops *rte_kasumi_pmd_ops = &kasumi_pmd_ops;\ndiff --git a/drivers/crypto/mvsam/rte_mrvl_pmd.c b/drivers/crypto/mvsam/rte_mrvl_pmd.c\nindex a7f5389ee..73eff7573 100644\n--- a/drivers/crypto/mvsam/rte_mrvl_pmd.c\n+++ b/drivers/crypto/mvsam/rte_mrvl_pmd.c\n@@ -447,7 +447,7 @@ mrvl_request_prepare(struct sam_cio_op_params *request,\n \t\treturn -EINVAL;\n \t}\n \n-\tsess = (struct mrvl_crypto_session *)get_session_private_data(\n+\tsess = (struct mrvl_crypto_session *)get_sym_session_private_data(\n \t\t\top->sym->session, cryptodev_driver_id);\n \tif (unlikely(sess == NULL)) {\n \t\tMRVL_CRYPTO_LOG_ERR(\"Session was not created for this device\");\ndiff --git a/drivers/crypto/mvsam/rte_mrvl_pmd_ops.c b/drivers/crypto/mvsam/rte_mrvl_pmd_ops.c\nindex 8710ba3b7..6884e07c2 100644\n--- a/drivers/crypto/mvsam/rte_mrvl_pmd_ops.c\n+++ b/drivers/crypto/mvsam/rte_mrvl_pmd_ops.c\n@@ -613,7 +613,7 @@ mrvl_crypto_pmd_qp_count(struct rte_cryptodev *dev)\n  * @returns Size of Marvell crypto session.\n  */\n static unsigned\n-mrvl_crypto_pmd_session_get_size(__rte_unused struct rte_cryptodev *dev)\n+mrvl_crypto_pmd_sym_session_get_size(__rte_unused struct rte_cryptodev *dev)\n {\n \treturn sizeof(struct mrvl_crypto_session);\n }\n@@ -626,7 +626,7 @@ mrvl_crypto_pmd_session_get_size(__rte_unused struct rte_cryptodev *dev)\n  * @returns 0 upon success, negative value otherwise.\n  */\n static int\n-mrvl_crypto_pmd_session_configure(__rte_unused struct rte_cryptodev *dev,\n+mrvl_crypto_pmd_sym_session_configure(__rte_unused struct rte_cryptodev *dev,\n \t\tstruct rte_crypto_sym_xform *xform,\n \t\tstruct rte_cryptodev_sym_session *sess,\n \t\tstruct rte_mempool *mp)\n@@ -654,7 +654,7 @@ mrvl_crypto_pmd_session_configure(__rte_unused struct rte_cryptodev *dev,\n \t\treturn ret;\n \t}\n \n-\tset_session_private_data(sess, dev->driver_id, sess_private_data);\n+\tset_sym_session_private_data(sess, dev->driver_id, sess_private_data);\n \n \tmrvl_sess = (struct mrvl_crypto_session *)sess_private_data;\n \tif (sam_session_create(&mrvl_sess->sam_sess_params,\n@@ -673,12 +673,12 @@ mrvl_crypto_pmd_session_configure(__rte_unused struct rte_cryptodev *dev,\n  * @returns 0. Always.\n  */\n static void\n-mrvl_crypto_pmd_session_clear(struct rte_cryptodev *dev,\n+mrvl_crypto_pmd_sym_session_clear(struct rte_cryptodev *dev,\n \t\tstruct rte_cryptodev_sym_session *sess)\n {\n \n \tuint8_t index = dev->driver_id;\n-\tvoid *sess_priv = get_session_private_data(sess, index);\n+\tvoid *sess_priv = get_sym_session_private_data(sess, index);\n \n \t/* Zero out the whole structure */\n \tif (sess_priv) {\n@@ -692,7 +692,7 @@ mrvl_crypto_pmd_session_clear(struct rte_cryptodev *dev,\n \n \t\tmemset(sess, 0, sizeof(struct mrvl_crypto_session));\n \t\tstruct rte_mempool *sess_mp = rte_mempool_from_obj(sess_priv);\n-\t\tset_session_private_data(sess, index, NULL);\n+\t\tset_sym_session_private_data(sess, index, NULL);\n \t\trte_mempool_put(sess_mp, sess_priv);\n \t}\n }\n@@ -715,9 +715,9 @@ static struct rte_cryptodev_ops mrvl_crypto_pmd_ops = {\n \t\t.queue_pair_release\t= mrvl_crypto_pmd_qp_release,\n \t\t.queue_pair_count\t= mrvl_crypto_pmd_qp_count,\n \n-\t\t.session_get_size\t= mrvl_crypto_pmd_session_get_size,\n-\t\t.session_configure\t= mrvl_crypto_pmd_session_configure,\n-\t\t.session_clear\t\t= mrvl_crypto_pmd_session_clear\n+\t\t.sym_session_get_size\t= mrvl_crypto_pmd_sym_session_get_size,\n+\t\t.sym_session_configure\t= mrvl_crypto_pmd_sym_session_configure,\n+\t\t.sym_session_clear\t= mrvl_crypto_pmd_sym_session_clear\n };\n \n struct rte_cryptodev_ops *rte_mrvl_crypto_pmd_ops = &mrvl_crypto_pmd_ops;\ndiff --git a/drivers/crypto/null/null_crypto_pmd.c b/drivers/crypto/null/null_crypto_pmd.c\nindex 224ba7233..ea4182d20 100644\n--- a/drivers/crypto/null/null_crypto_pmd.c\n+++ b/drivers/crypto/null/null_crypto_pmd.c\n@@ -78,7 +78,7 @@ get_session(struct null_crypto_qp *qp, struct rte_crypto_op *op)\n \tif (op->sess_type == RTE_CRYPTO_OP_WITH_SESSION) {\n \t\tif (likely(sym_op->session != NULL))\n \t\t\tsess = (struct null_crypto_session *)\n-\t\t\t\t\tget_session_private_data(\n+\t\t\t\t\tget_sym_session_private_data(\n \t\t\t\t\tsym_op->session, cryptodev_driver_id);\n \t} else {\n \t\tvoid *_sess = NULL;\n@@ -99,8 +99,8 @@ get_session(struct null_crypto_qp *qp, struct rte_crypto_op *op)\n \t\t\tsess = NULL;\n \t\t}\n \t\tsym_op->session = (struct rte_cryptodev_sym_session *)_sess;\n-\t\tset_session_private_data(sym_op->session, cryptodev_driver_id,\n-\t\t\t_sess_private_data);\n+\t\tset_sym_session_private_data(op->sym->session,\n+\t\t\t\tcryptodev_driver_id, _sess_private_data);\n \t}\n \n \treturn sess;\ndiff --git a/drivers/crypto/null/null_crypto_pmd_ops.c b/drivers/crypto/null/null_crypto_pmd_ops.c\nindex e43fba7db..78431752b 100644\n--- a/drivers/crypto/null/null_crypto_pmd_ops.c\n+++ b/drivers/crypto/null/null_crypto_pmd_ops.c\n@@ -249,14 +249,14 @@ null_crypto_pmd_qp_count(struct rte_cryptodev *dev)\n \n /** Returns the size of the NULL crypto session structure */\n static unsigned\n-null_crypto_pmd_session_get_size(struct rte_cryptodev *dev __rte_unused)\n+null_crypto_pmd_sym_session_get_size(struct rte_cryptodev *dev __rte_unused)\n {\n \treturn sizeof(struct null_crypto_session);\n }\n \n /** Configure a null crypto session from a crypto xform chain */\n static int\n-null_crypto_pmd_session_configure(struct rte_cryptodev *dev __rte_unused,\n+null_crypto_pmd_sym_session_configure(struct rte_cryptodev *dev __rte_unused,\n \t\tstruct rte_crypto_sym_xform *xform,\n \t\tstruct rte_cryptodev_sym_session *sess,\n \t\tstruct rte_mempool *mp)\n@@ -284,7 +284,7 @@ null_crypto_pmd_session_configure(struct rte_cryptodev *dev __rte_unused,\n \t\treturn ret;\n \t}\n \n-\tset_session_private_data(sess, dev->driver_id,\n+\tset_sym_session_private_data(sess, dev->driver_id,\n \t\tsess_private_data);\n \n \treturn 0;\n@@ -292,17 +292,17 @@ null_crypto_pmd_session_configure(struct rte_cryptodev *dev __rte_unused,\n \n /** Clear the memory of session so it doesn't leave key material behind */\n static void\n-null_crypto_pmd_session_clear(struct rte_cryptodev *dev,\n+null_crypto_pmd_sym_session_clear(struct rte_cryptodev *dev,\n \t\tstruct rte_cryptodev_sym_session *sess)\n {\n \tuint8_t index = dev->driver_id;\n-\tvoid *sess_priv = get_session_private_data(sess, index);\n+\tvoid *sess_priv = get_sym_session_private_data(sess, index);\n \n \t/* Zero out the whole structure */\n \tif (sess_priv) {\n \t\tmemset(sess_priv, 0, sizeof(struct null_crypto_session));\n \t\tstruct rte_mempool *sess_mp = rte_mempool_from_obj(sess_priv);\n-\t\tset_session_private_data(sess, index, NULL);\n+\t\tset_sym_session_private_data(sess, index, NULL);\n \t\trte_mempool_put(sess_mp, sess_priv);\n \t}\n }\n@@ -322,9 +322,9 @@ struct rte_cryptodev_ops pmd_ops = {\n \t\t.queue_pair_release\t= null_crypto_pmd_qp_release,\n \t\t.queue_pair_count\t= null_crypto_pmd_qp_count,\n \n-\t\t.session_get_size\t= null_crypto_pmd_session_get_size,\n-\t\t.session_configure\t= null_crypto_pmd_session_configure,\n-\t\t.session_clear\t\t= null_crypto_pmd_session_clear\n+\t\t.sym_session_get_size\t= null_crypto_pmd_sym_session_get_size,\n+\t\t.sym_session_configure\t= null_crypto_pmd_sym_session_configure,\n+\t\t.sym_session_clear\t= null_crypto_pmd_sym_session_clear\n };\n \n struct rte_cryptodev_ops *null_crypto_pmd_ops = &pmd_ops;\ndiff --git a/drivers/crypto/openssl/rte_openssl_pmd.c b/drivers/crypto/openssl/rte_openssl_pmd.c\nindex 94b6e2de9..1e73ef44a 100644\n--- a/drivers/crypto/openssl/rte_openssl_pmd.c\n+++ b/drivers/crypto/openssl/rte_openssl_pmd.c\n@@ -736,7 +736,7 @@ get_session(struct openssl_qp *qp, struct rte_crypto_op *op)\n \t\t/* get existing session */\n \t\tif (likely(op->sym->session != NULL))\n \t\t\tsess = (struct openssl_session *)\n-\t\t\t\t\tget_session_private_data(\n+\t\t\t\t\tget_sym_session_private_data(\n \t\t\t\t\top->sym->session,\n \t\t\t\t\tcryptodev_driver_id);\n \t} else {\n@@ -759,8 +759,8 @@ get_session(struct openssl_qp *qp, struct rte_crypto_op *op)\n \t\t\tsess = NULL;\n \t\t}\n \t\top->sym->session = (struct rte_cryptodev_sym_session *)_sess;\n-\t\tset_session_private_data(op->sym->session, cryptodev_driver_id,\n-\t\t\t_sess_private_data);\n+\t\tset_sym_session_private_data(op->sym->session,\n+\t\t\t\tcryptodev_driver_id, _sess_private_data);\n \t}\n \n \tif (sess == NULL)\ndiff --git a/drivers/crypto/openssl/rte_openssl_pmd_ops.c b/drivers/crypto/openssl/rte_openssl_pmd_ops.c\nindex 554177d20..2608b63f8 100644\n--- a/drivers/crypto/openssl/rte_openssl_pmd_ops.c\n+++ b/drivers/crypto/openssl/rte_openssl_pmd_ops.c\n@@ -657,14 +657,14 @@ openssl_pmd_qp_count(struct rte_cryptodev *dev)\n \n /** Returns the size of the session structure */\n static unsigned\n-openssl_pmd_session_get_size(struct rte_cryptodev *dev __rte_unused)\n+openssl_pmd_sym_session_get_size(struct rte_cryptodev *dev __rte_unused)\n {\n \treturn sizeof(struct openssl_session);\n }\n \n /** Configure the session from a crypto xform chain */\n static int\n-openssl_pmd_session_configure(struct rte_cryptodev *dev __rte_unused,\n+openssl_pmd_sym_session_configure(struct rte_cryptodev *dev __rte_unused,\n \t\tstruct rte_crypto_sym_xform *xform,\n \t\tstruct rte_cryptodev_sym_session *sess,\n \t\tstruct rte_mempool *mempool)\n@@ -692,7 +692,7 @@ openssl_pmd_session_configure(struct rte_cryptodev *dev __rte_unused,\n \t\treturn ret;\n \t}\n \n-\tset_session_private_data(sess, dev->driver_id,\n+\tset_sym_session_private_data(sess, dev->driver_id,\n \t\t\tsess_private_data);\n \n \treturn 0;\n@@ -701,18 +701,18 @@ openssl_pmd_session_configure(struct rte_cryptodev *dev __rte_unused,\n \n /** Clear the memory of session so it doesn't leave key material behind */\n static void\n-openssl_pmd_session_clear(struct rte_cryptodev *dev,\n+openssl_pmd_sym_session_clear(struct rte_cryptodev *dev,\n \t\tstruct rte_cryptodev_sym_session *sess)\n {\n \tuint8_t index = dev->driver_id;\n-\tvoid *sess_priv = get_session_private_data(sess, index);\n+\tvoid *sess_priv = get_sym_session_private_data(sess, index);\n \n \t/* Zero out the whole structure */\n \tif (sess_priv) {\n \t\topenssl_reset_session(sess_priv);\n \t\tmemset(sess_priv, 0, sizeof(struct openssl_session));\n \t\tstruct rte_mempool *sess_mp = rte_mempool_from_obj(sess_priv);\n-\t\tset_session_private_data(sess, index, NULL);\n+\t\tset_sym_session_private_data(sess, index, NULL);\n \t\trte_mempool_put(sess_mp, sess_priv);\n \t}\n }\n@@ -732,9 +732,9 @@ struct rte_cryptodev_ops openssl_pmd_ops = {\n \t\t.queue_pair_release\t= openssl_pmd_qp_release,\n \t\t.queue_pair_count\t= openssl_pmd_qp_count,\n \n-\t\t.session_get_size\t= openssl_pmd_session_get_size,\n-\t\t.session_configure\t= openssl_pmd_session_configure,\n-\t\t.session_clear\t\t= openssl_pmd_session_clear\n+\t\t.sym_session_get_size\t= openssl_pmd_sym_session_get_size,\n+\t\t.sym_session_configure\t= openssl_pmd_sym_session_configure,\n+\t\t.sym_session_clear\t= openssl_pmd_sym_session_clear\n };\n \n struct rte_cryptodev_ops *rte_openssl_pmd_ops = &openssl_pmd_ops;\ndiff --git a/drivers/crypto/qat/qat_sym.c b/drivers/crypto/qat/qat_sym.c\nindex 17d63eb1e..aa6eeb0c0 100644\n--- a/drivers/crypto/qat/qat_sym.c\n+++ b/drivers/crypto/qat/qat_sym.c\n@@ -174,7 +174,7 @@ qat_sym_build_request(void *in_op, uint8_t *out_msg,\n \t\treturn -EINVAL;\n \t}\n \n-\tctx = (struct qat_sym_session *)get_session_private_data(\n+\tctx = (struct qat_sym_session *)get_sym_session_private_data(\n \t\t\top->sym->session, cryptodev_qat_driver_id);\n \n \tif (unlikely(ctx == NULL)) {\ndiff --git a/drivers/crypto/qat/qat_sym.h b/drivers/crypto/qat/qat_sym.h\nindex d425892f4..e4e1ae89c 100644\n--- a/drivers/crypto/qat/qat_sym.h\n+++ b/drivers/crypto/qat/qat_sym.h\n@@ -143,7 +143,7 @@ qat_sym_process_response(void **op, uint8_t *resp)\n \t\trx_op->status = RTE_CRYPTO_OP_STATUS_AUTH_FAILED;\n \t} else {\n \t\tstruct qat_sym_session *sess = (struct qat_sym_session *)\n-\t\t\t\t\t\tget_session_private_data(\n+\t\t\t\t\t\tget_sym_session_private_data(\n \t\t\t\t\t\trx_op->sym->session,\n \t\t\t\t\t\tcryptodev_qat_driver_id);\n \ndiff --git a/drivers/crypto/qat/qat_sym_pmd.c b/drivers/crypto/qat/qat_sym_pmd.c\nindex 629904e2f..2546e836f 100644\n--- a/drivers/crypto/qat/qat_sym_pmd.c\n+++ b/drivers/crypto/qat/qat_sym_pmd.c\n@@ -205,9 +205,9 @@ static struct rte_cryptodev_ops crypto_qat_ops = {\n \t\t.queue_pair_count\t= NULL,\n \n \t\t/* Crypto related operations */\n-\t\t.session_get_size\t= qat_sym_session_get_private_size,\n-\t\t.session_configure\t= qat_sym_session_configure,\n-\t\t.session_clear\t\t= qat_sym_session_clear\n+\t\t.sym_session_get_size\t= qat_sym_session_get_private_size,\n+\t\t.sym_session_configure\t= qat_sym_session_configure,\n+\t\t.sym_session_clear\t= qat_sym_session_clear\n };\n \n static uint16_t\ndiff --git a/drivers/crypto/qat/qat_sym_session.c b/drivers/crypto/qat/qat_sym_session.c\nindex dc1c20044..4d975ae07 100644\n--- a/drivers/crypto/qat/qat_sym_session.c\n+++ b/drivers/crypto/qat/qat_sym_session.c\n@@ -112,7 +112,7 @@ qat_sym_session_clear(struct rte_cryptodev *dev,\n \t\tstruct rte_cryptodev_sym_session *sess)\n {\n \tuint8_t index = dev->driver_id;\n-\tvoid *sess_priv = get_session_private_data(sess, index);\n+\tvoid *sess_priv = get_sym_session_private_data(sess, index);\n \tstruct qat_sym_session *s = (struct qat_sym_session *)sess_priv;\n \n \tif (sess_priv) {\n@@ -121,7 +121,7 @@ qat_sym_session_clear(struct rte_cryptodev *dev,\n \t\tmemset(s, 0, qat_sym_session_get_private_size(dev));\n \t\tstruct rte_mempool *sess_mp = rte_mempool_from_obj(sess_priv);\n \n-\t\tset_session_private_data(sess, index, NULL);\n+\t\tset_sym_session_private_data(sess, index, NULL);\n \t\trte_mempool_put(sess_mp, sess_priv);\n \t}\n }\n@@ -396,7 +396,7 @@ qat_sym_session_configure(struct rte_cryptodev *dev,\n \t\treturn ret;\n \t}\n \n-\tset_session_private_data(sess, dev->driver_id,\n+\tset_sym_session_private_data(sess, dev->driver_id,\n \t\tsess_private_data);\n \n \treturn 0;\ndiff --git a/drivers/crypto/scheduler/scheduler_pmd_ops.c b/drivers/crypto/scheduler/scheduler_pmd_ops.c\nindex f363e3257..8387fdc47 100644\n--- a/drivers/crypto/scheduler/scheduler_pmd_ops.c\n+++ b/drivers/crypto/scheduler/scheduler_pmd_ops.c\n@@ -447,7 +447,7 @@ scheduler_pmd_qp_count(struct rte_cryptodev *dev)\n }\n \n static uint32_t\n-scheduler_pmd_session_get_size(struct rte_cryptodev *dev __rte_unused)\n+scheduler_pmd_sym_session_get_size(struct rte_cryptodev *dev __rte_unused)\n {\n \tstruct scheduler_ctx *sched_ctx = dev->data->dev_private;\n \tuint8_t i = 0;\n@@ -457,7 +457,7 @@ scheduler_pmd_session_get_size(struct rte_cryptodev *dev __rte_unused)\n \tfor (i = 0; i < sched_ctx->nb_slaves; i++) {\n \t\tuint8_t slave_dev_id = sched_ctx->slaves[i].dev_id;\n \t\tstruct rte_cryptodev *dev = &rte_cryptodevs[slave_dev_id];\n-\t\tuint32_t priv_sess_size = (*dev->dev_ops->session_get_size)(dev);\n+\t\tuint32_t priv_sess_size = (*dev->dev_ops->sym_session_get_size)(dev);\n \n \t\tif (max_priv_sess_size < priv_sess_size)\n \t\t\tmax_priv_sess_size = priv_sess_size;\n@@ -467,7 +467,7 @@ scheduler_pmd_session_get_size(struct rte_cryptodev *dev __rte_unused)\n }\n \n static int\n-scheduler_pmd_session_configure(struct rte_cryptodev *dev,\n+scheduler_pmd_sym_session_configure(struct rte_cryptodev *dev,\n \tstruct rte_crypto_sym_xform *xform,\n \tstruct rte_cryptodev_sym_session *sess,\n \tstruct rte_mempool *mempool)\n@@ -492,7 +492,7 @@ scheduler_pmd_session_configure(struct rte_cryptodev *dev,\n \n /** Clear the memory of session so it doesn't leave key material behind */\n static void\n-scheduler_pmd_session_clear(struct rte_cryptodev *dev,\n+scheduler_pmd_sym_session_clear(struct rte_cryptodev *dev,\n \t\tstruct rte_cryptodev_sym_session *sess)\n {\n \tstruct scheduler_ctx *sched_ctx = dev->data->dev_private;\n@@ -521,9 +521,9 @@ struct rte_cryptodev_ops scheduler_pmd_ops = {\n \t\t.queue_pair_release\t= scheduler_pmd_qp_release,\n \t\t.queue_pair_count\t= scheduler_pmd_qp_count,\n \n-\t\t.session_get_size\t= scheduler_pmd_session_get_size,\n-\t\t.session_configure\t= scheduler_pmd_session_configure,\n-\t\t.session_clear\t\t= scheduler_pmd_session_clear,\n+\t\t.sym_session_get_size\t= scheduler_pmd_sym_session_get_size,\n+\t\t.sym_session_configure\t= scheduler_pmd_sym_session_configure,\n+\t\t.sym_session_clear\t= scheduler_pmd_sym_session_clear,\n };\n \n struct rte_cryptodev_ops *rte_crypto_scheduler_pmd_ops = &scheduler_pmd_ops;\ndiff --git a/drivers/crypto/snow3g/rte_snow3g_pmd.c b/drivers/crypto/snow3g/rte_snow3g_pmd.c\nindex 26dfbbc38..604514746 100644\n--- a/drivers/crypto/snow3g/rte_snow3g_pmd.c\n+++ b/drivers/crypto/snow3g/rte_snow3g_pmd.c\n@@ -137,7 +137,7 @@ snow3g_get_session(struct snow3g_qp *qp, struct rte_crypto_op *op)\n \tif (op->sess_type == RTE_CRYPTO_OP_WITH_SESSION) {\n \t\tif (likely(op->sym->session != NULL))\n \t\t\tsess = (struct snow3g_session *)\n-\t\t\t\t\tget_session_private_data(\n+\t\t\t\t\tget_sym_session_private_data(\n \t\t\t\t\top->sym->session,\n \t\t\t\t\tcryptodev_driver_id);\n \t} else {\n@@ -159,8 +159,8 @@ snow3g_get_session(struct snow3g_qp *qp, struct rte_crypto_op *op)\n \t\t\tsess = NULL;\n \t\t}\n \t\top->sym->session = (struct rte_cryptodev_sym_session *)_sess;\n-\t\tset_session_private_data(op->sym->session, cryptodev_driver_id,\n-\t\t\t_sess_private_data);\n+\t\tset_sym_session_private_data(op->sym->session,\n+\t\t\t\tcryptodev_driver_id, _sess_private_data);\n \t}\n \n \tif (unlikely(sess == NULL))\ndiff --git a/drivers/crypto/snow3g/rte_snow3g_pmd_ops.c b/drivers/crypto/snow3g/rte_snow3g_pmd_ops.c\nindex fe882c366..6ed7e6c52 100644\n--- a/drivers/crypto/snow3g/rte_snow3g_pmd_ops.c\n+++ b/drivers/crypto/snow3g/rte_snow3g_pmd_ops.c\n@@ -240,14 +240,14 @@ snow3g_pmd_qp_count(struct rte_cryptodev *dev)\n \n /** Returns the size of the SNOW 3G session structure */\n static unsigned\n-snow3g_pmd_session_get_size(struct rte_cryptodev *dev __rte_unused)\n+snow3g_pmd_sym_session_get_size(struct rte_cryptodev *dev __rte_unused)\n {\n \treturn sizeof(struct snow3g_session);\n }\n \n /** Configure a SNOW 3G session from a crypto xform chain */\n static int\n-snow3g_pmd_session_configure(struct rte_cryptodev *dev __rte_unused,\n+snow3g_pmd_sym_session_configure(struct rte_cryptodev *dev __rte_unused,\n \t\tstruct rte_crypto_sym_xform *xform,\n \t\tstruct rte_cryptodev_sym_session *sess,\n \t\tstruct rte_mempool *mempool)\n@@ -275,7 +275,7 @@ snow3g_pmd_session_configure(struct rte_cryptodev *dev __rte_unused,\n \t\treturn ret;\n \t}\n \n-\tset_session_private_data(sess, dev->driver_id,\n+\tset_sym_session_private_data(sess, dev->driver_id,\n \t\tsess_private_data);\n \n \treturn 0;\n@@ -283,17 +283,17 @@ snow3g_pmd_session_configure(struct rte_cryptodev *dev __rte_unused,\n \n /** Clear the memory of session so it doesn't leave key material behind */\n static void\n-snow3g_pmd_session_clear(struct rte_cryptodev *dev,\n+snow3g_pmd_sym_session_clear(struct rte_cryptodev *dev,\n \t\tstruct rte_cryptodev_sym_session *sess)\n {\n \tuint8_t index = dev->driver_id;\n-\tvoid *sess_priv = get_session_private_data(sess, index);\n+\tvoid *sess_priv = get_sym_session_private_data(sess, index);\n \n \t/* Zero out the whole structure */\n \tif (sess_priv) {\n \t\tmemset(sess_priv, 0, sizeof(struct snow3g_session));\n \t\tstruct rte_mempool *sess_mp = rte_mempool_from_obj(sess_priv);\n-\t\tset_session_private_data(sess, index, NULL);\n+\t\tset_sym_session_private_data(sess, index, NULL);\n \t\trte_mempool_put(sess_mp, sess_priv);\n \t}\n }\n@@ -313,9 +313,9 @@ struct rte_cryptodev_ops snow3g_pmd_ops = {\n \t\t.queue_pair_release = snow3g_pmd_qp_release,\n \t\t.queue_pair_count   = snow3g_pmd_qp_count,\n \n-\t\t.session_get_size   = snow3g_pmd_session_get_size,\n-\t\t.session_configure  = snow3g_pmd_session_configure,\n-\t\t.session_clear      = snow3g_pmd_session_clear\n+\t\t.sym_session_get_size   = snow3g_pmd_sym_session_get_size,\n+\t\t.sym_session_configure  = snow3g_pmd_sym_session_configure,\n+\t\t.sym_session_clear      = snow3g_pmd_sym_session_clear\n };\n \n struct rte_cryptodev_ops *rte_snow3g_pmd_ops = &snow3g_pmd_ops;\ndiff --git a/drivers/crypto/virtio/virtio_cryptodev.c b/drivers/crypto/virtio/virtio_cryptodev.c\nindex f7021b38b..f8759f1c5 100644\n--- a/drivers/crypto/virtio/virtio_cryptodev.c\n+++ b/drivers/crypto/virtio/virtio_cryptodev.c\n@@ -518,9 +518,9 @@ static struct rte_cryptodev_ops virtio_crypto_dev_ops = {\n \t.queue_pair_count                = NULL,\n \n \t/* Crypto related operations */\n-\t.session_get_size\t= virtio_crypto_sym_get_session_private_size,\n-\t.session_configure\t= virtio_crypto_sym_configure_session,\n-\t.session_clear\t\t= virtio_crypto_sym_clear_session\n+\t.sym_session_get_size\t\t= virtio_crypto_sym_get_session_private_size,\n+\t.sym_session_configure\t\t= virtio_crypto_sym_configure_session,\n+\t.sym_session_clear\t\t= virtio_crypto_sym_clear_session\n };\n \n static void\n@@ -958,7 +958,7 @@ virtio_crypto_sym_clear_session(\n \n \thw = dev->data->dev_private;\n \tvq = hw->cvq;\n-\tsession = (struct virtio_crypto_session *)get_session_private_data(\n+\tsession = (struct virtio_crypto_session *)get_sym_session_private_data(\n \t\tsess, cryptodev_virtio_driver_id);\n \tif (session == NULL) {\n \t\tVIRTIO_CRYPTO_SESSION_LOG_ERR(\"Invalid session parameter\");\n@@ -1386,7 +1386,7 @@ virtio_crypto_sym_configure_session(\n \t\tgoto error_out;\n \t}\n \n-\tset_session_private_data(sess, dev->driver_id,\n+\tset_sym_session_private_data(sess, dev->driver_id,\n \t\tsession_private);\n \n \treturn 0;\ndiff --git a/drivers/crypto/virtio/virtio_rxtx.c b/drivers/crypto/virtio/virtio_rxtx.c\nindex 450392843..76cf04585 100644\n--- a/drivers/crypto/virtio/virtio_rxtx.c\n+++ b/drivers/crypto/virtio/virtio_rxtx.c\n@@ -205,7 +205,7 @@ virtqueue_crypto_sym_enqueue_xmit(\n \t\tsizeof(struct virtio_crypto_inhdr);\n \tstruct rte_crypto_sym_op *sym_op = cop->sym;\n \tstruct virtio_crypto_session *session =\n-\t\t(struct virtio_crypto_session *)get_session_private_data(\n+\t\t(struct virtio_crypto_session *)get_sym_session_private_data(\n \t\tcop->sym->session, cryptodev_virtio_driver_id);\n \tstruct virtio_crypto_op_data_req *op_data_req;\n \tuint32_t hash_result_len = 0;\ndiff --git a/drivers/crypto/zuc/rte_zuc_pmd.c b/drivers/crypto/zuc/rte_zuc_pmd.c\nindex 396f25975..eba15cff0 100644\n--- a/drivers/crypto/zuc/rte_zuc_pmd.c\n+++ b/drivers/crypto/zuc/rte_zuc_pmd.c\n@@ -135,7 +135,7 @@ zuc_get_session(struct zuc_qp *qp, struct rte_crypto_op *op)\n \n \tif (op->sess_type == RTE_CRYPTO_OP_WITH_SESSION) {\n \t\tif (likely(op->sym->session != NULL))\n-\t\t\tsess = (struct zuc_session *)get_session_private_data(\n+\t\t\tsess = (struct zuc_session *)get_sym_session_private_data(\n \t\t\t\t\top->sym->session,\n \t\t\t\t\tcryptodev_driver_id);\n \t} else {\n@@ -157,8 +157,8 @@ zuc_get_session(struct zuc_qp *qp, struct rte_crypto_op *op)\n \t\t\tsess = NULL;\n \t\t}\n \t\top->sym->session = (struct rte_cryptodev_sym_session *)_sess;\n-\t\tset_session_private_data(op->sym->session, cryptodev_driver_id,\n-\t\t\t_sess_private_data);\n+\t\tset_sym_session_private_data(op->sym->session,\n+\t\t\t\tcryptodev_driver_id, _sess_private_data);\n \t}\n \n \tif (unlikely(sess == NULL))\ndiff --git a/drivers/crypto/zuc/rte_zuc_pmd_ops.c b/drivers/crypto/zuc/rte_zuc_pmd_ops.c\nindex 79326d8f5..07dfcc5f7 100644\n--- a/drivers/crypto/zuc/rte_zuc_pmd_ops.c\n+++ b/drivers/crypto/zuc/rte_zuc_pmd_ops.c\n@@ -240,14 +240,14 @@ zuc_pmd_qp_count(struct rte_cryptodev *dev)\n \n /** Returns the size of the ZUC session structure */\n static unsigned\n-zuc_pmd_session_get_size(struct rte_cryptodev *dev __rte_unused)\n+zuc_pmd_sym_session_get_size(struct rte_cryptodev *dev __rte_unused)\n {\n \treturn sizeof(struct zuc_session);\n }\n \n /** Configure a ZUC session from a crypto xform chain */\n static int\n-zuc_pmd_session_configure(struct rte_cryptodev *dev __rte_unused,\n+zuc_pmd_sym_session_configure(struct rte_cryptodev *dev __rte_unused,\n \t\tstruct rte_crypto_sym_xform *xform,\n \t\tstruct rte_cryptodev_sym_session *sess,\n \t\tstruct rte_mempool *mempool)\n@@ -275,7 +275,7 @@ zuc_pmd_session_configure(struct rte_cryptodev *dev __rte_unused,\n \t\treturn ret;\n \t}\n \n-\tset_session_private_data(sess, dev->driver_id,\n+\tset_sym_session_private_data(sess, dev->driver_id,\n \t\tsess_private_data);\n \n \treturn 0;\n@@ -283,17 +283,17 @@ zuc_pmd_session_configure(struct rte_cryptodev *dev __rte_unused,\n \n /** Clear the memory of session so it doesn't leave key material behind */\n static void\n-zuc_pmd_session_clear(struct rte_cryptodev *dev,\n+zuc_pmd_sym_session_clear(struct rte_cryptodev *dev,\n \t\tstruct rte_cryptodev_sym_session *sess)\n {\n \tuint8_t index = dev->driver_id;\n-\tvoid *sess_priv = get_session_private_data(sess, index);\n+\tvoid *sess_priv = get_sym_session_private_data(sess, index);\n \n \t/* Zero out the whole structure */\n \tif (sess_priv) {\n \t\tmemset(sess_priv, 0, sizeof(struct zuc_session));\n \t\tstruct rte_mempool *sess_mp = rte_mempool_from_obj(sess_priv);\n-\t\tset_session_private_data(sess, index, NULL);\n+\t\tset_sym_session_private_data(sess, index, NULL);\n \t\trte_mempool_put(sess_mp, sess_priv);\n \t}\n }\n@@ -313,9 +313,9 @@ struct rte_cryptodev_ops zuc_pmd_ops = {\n \t\t.queue_pair_release = zuc_pmd_qp_release,\n \t\t.queue_pair_count   = zuc_pmd_qp_count,\n \n-\t\t.session_get_size   = zuc_pmd_session_get_size,\n-\t\t.session_configure  = zuc_pmd_session_configure,\n-\t\t.session_clear      = zuc_pmd_session_clear\n+\t\t.sym_session_get_size   = zuc_pmd_sym_session_get_size,\n+\t\t.sym_session_configure  = zuc_pmd_sym_session_configure,\n+\t\t.sym_session_clear      = zuc_pmd_sym_session_clear\n };\n \n struct rte_cryptodev_ops *rte_zuc_pmd_ops = &zuc_pmd_ops;\ndiff --git a/lib/librte_cryptodev/rte_cryptodev.c b/lib/librte_cryptodev/rte_cryptodev.c\nindex 8c3f324c0..7af527075 100644\n--- a/lib/librte_cryptodev/rte_cryptodev.c\n+++ b/lib/librte_cryptodev/rte_cryptodev.c\n@@ -1064,7 +1064,8 @@ rte_cryptodev_sym_session_init(uint8_t dev_id,\n \tindex = dev->driver_id;\n \n \tif (sess->sess_private_data[index] == NULL) {\n-\t\tret = dev->dev_ops->session_configure(dev, xforms, sess, mp);\n+\t\tret = dev->dev_ops->sym_session_configure(dev, xforms,\n+\t\t\t\t\t\t\tsess, mp);\n \t\tif (ret < 0) {\n \t\t\tCDEV_LOG_ERR(\n \t\t\t\t\"dev_id %d failed to configure session details\",\n@@ -1106,7 +1107,7 @@ rte_cryptodev_sym_session_clear(uint8_t dev_id,\n \tif (dev == NULL || sess == NULL)\n \t\treturn -EINVAL;\n \n-\tdev->dev_ops->session_clear(dev, sess);\n+\tdev->dev_ops->sym_session_clear(dev, sess);\n \n \treturn 0;\n }\n@@ -1123,7 +1124,7 @@ rte_cryptodev_sym_session_free(struct rte_cryptodev_sym_session *sess)\n \n \t/* Check that all device private data has been freed */\n \tfor (i = 0; i < nb_drivers; i++) {\n-\t\tsess_priv = get_session_private_data(sess, i);\n+\t\tsess_priv = get_sym_session_private_data(sess, i);\n \t\tif (sess_priv != NULL)\n \t\t\treturn -EBUSY;\n \t}\n@@ -1158,10 +1159,10 @@ rte_cryptodev_sym_get_private_session_size(uint8_t dev_id)\n \n \tdev = rte_cryptodev_pmd_get_dev(dev_id);\n \n-\tif (*dev->dev_ops->session_get_size == NULL)\n+\tif (*dev->dev_ops->sym_session_get_size == NULL)\n \t\treturn 0;\n \n-\tpriv_sess_size = (*dev->dev_ops->session_get_size)(dev);\n+\tpriv_sess_size = (*dev->dev_ops->sym_session_get_size)(dev);\n \n \t/*\n \t * If size is less than session header size,\ndiff --git a/lib/librte_cryptodev/rte_cryptodev_pmd.h b/lib/librte_cryptodev/rte_cryptodev_pmd.h\nindex ec4f1ecfb..ac6a1c4f7 100644\n--- a/lib/librte_cryptodev/rte_cryptodev_pmd.h\n+++ b/lib/librte_cryptodev/rte_cryptodev_pmd.h\n@@ -299,11 +299,11 @@ struct rte_cryptodev_ops {\n \tcryptodev_queue_pair_count_t queue_pair_count;\n \t/**< Get count of the queue pairs. */\n \n-\tcryptodev_sym_get_session_private_size_t session_get_size;\n+\tcryptodev_sym_get_session_private_size_t sym_session_get_size;\n \t/**< Return private session. */\n-\tcryptodev_sym_configure_session_t session_configure;\n+\tcryptodev_sym_configure_session_t sym_session_configure;\n \t/**< Configure a Crypto session. */\n-\tcryptodev_sym_free_session_t session_clear;\n+\tcryptodev_sym_free_session_t sym_session_clear;\n \t/**< Clear a Crypto sessions private data. */\n };\n \n@@ -436,13 +436,13 @@ static void init_ ##driver_id(void)\\\n }\n \n static inline void *\n-get_session_private_data(const struct rte_cryptodev_sym_session *sess,\n+get_sym_session_private_data(const struct rte_cryptodev_sym_session *sess,\n \t\tuint8_t driver_id) {\n \treturn sess->sess_private_data[driver_id];\n }\n \n static inline void\n-set_session_private_data(struct rte_cryptodev_sym_session *sess,\n+set_sym_session_private_data(struct rte_cryptodev_sym_session *sess,\n \t\tuint8_t driver_id, void *private_data)\n {\n \tsess->sess_private_data[driver_id] = private_data;\n",
    "prefixes": [
        "v3",
        "15/16"
    ]
}