Show a patch.

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

{
    "id": 40961,
    "url": "http://patches.dpdk.org/api/patches/40961/",
    "web_url": "http://patches.dpdk.org/patch/40961/",
    "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": "<20180608220234.10170-4-pablo.de.lara.guarch@intel.com>",
    "date": "2018-06-08T22:02:31",
    "name": "[3/6] cryptodev: remove max number of sessions",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "ab3abdc1d4c2bfd40fe15993ef96c896be0ba2fa",
    "submitter": {
        "id": 9,
        "url": "http://patches.dpdk.org/api/people/9/",
        "name": "Pablo de Lara",
        "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/40961/mbox/",
    "series": [
        {
            "id": 70,
            "url": "http://patches.dpdk.org/api/series/70/",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=70",
            "date": "2018-06-08T22:02:28",
            "name": "Cryptodev API changes",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/70/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/40961/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/40961/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.17.0",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 177431D006;\n\tSat,  9 Jun 2018 00:02:27 +0200 (CEST)",
            "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n\tby dpdk.org (Postfix) with ESMTP id F41E21D006\n\tfor <dev@dpdk.org>; Sat,  9 Jun 2018 00:02:23 +0200 (CEST)",
            "from fmsmga004.fm.intel.com ([10.253.24.48])\n\tby orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t08 Jun 2018 15:02:23 -0700",
            "from silpixa00399464.ir.intel.com (HELO\n\tsilpixa00399464.ger.corp.intel.com) ([10.237.222.157])\n\tby fmsmga004.fm.intel.com with ESMTP; 08 Jun 2018 15:02:20 -0700"
        ],
        "References": "<20180608220234.10170-1-pablo.de.lara.guarch@intel.com>",
        "X-Amp-File-Uploaded": "False",
        "X-BeenThere": "dev@dpdk.org",
        "Message-Id": "<20180608220234.10170-4-pablo.de.lara.guarch@intel.com>",
        "X-IronPort-AV": "E=Sophos;i=\"5.49,491,1520924400\"; d=\"scan'208\";a=\"61618440\"",
        "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": "<20180608220234.10170-1-pablo.de.lara.guarch@intel.com>",
        "List-Subscribe": "<https://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "To": "declan.doherty@intel.com, akhil.goyal@nxp.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://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "Date": "Fri,  8 Jun 2018 23:02:31 +0100",
        "Cc": "dev@dpdk.org,\n\tPablo de Lara <pablo.de.lara.guarch@intel.com>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "Subject": "[dpdk-dev] [PATCH 3/6] cryptodev: remove max number of sessions"
    },
    "content": "Sessions are not created and stored in the crypto device\nanymore, since now the session mempool is created\nat the application level.\n\nTherefore the limitation of the maximum number of sessions\nthat can be created should not be dependent of the crypto device.\n\nSigned-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>\n---\n config/common_base                               | 12 ------------\n config/rte_config.h                              | 14 --------------\n doc/guides/cryptodevs/aesni_gcm.rst              |  4 +---\n doc/guides/cryptodevs/aesni_mb.rst               |  4 +---\n doc/guides/cryptodevs/armv8.rst                  |  1 -\n doc/guides/cryptodevs/ccp.rst                    |  2 --\n doc/guides/cryptodevs/dpaa2_sec.rst              |  5 -----\n doc/guides/cryptodevs/dpaa_sec.rst               |  5 -----\n doc/guides/cryptodevs/kasumi.rst                 |  4 +---\n doc/guides/cryptodevs/mvsam.rst                  |  1 -\n doc/guides/cryptodevs/null.rst                   |  4 +---\n doc/guides/cryptodevs/openssl.rst                |  1 -\n doc/guides/cryptodevs/scheduler.rst              |  4 ----\n doc/guides/cryptodevs/snow3g.rst                 |  4 +---\n doc/guides/cryptodevs/zuc.rst                    |  4 +---\n doc/guides/prog_guide/cryptodev_lib.rst          |  9 ++-------\n doc/guides/rel_notes/deprecation.rst             |  3 ---\n doc/guides/rel_notes/release_18_08.rst           |  3 ++-\n drivers/crypto/aesni_gcm/aesni_gcm_pmd.c         |  5 +----\n drivers/crypto/aesni_gcm/aesni_gcm_pmd_ops.c     |  1 -\n drivers/crypto/aesni_gcm/aesni_gcm_pmd_private.h |  2 --\n drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c       |  5 +----\n drivers/crypto/aesni_mb/rte_aesni_mb_pmd_ops.c   |  1 -\n .../crypto/aesni_mb/rte_aesni_mb_pmd_private.h   |  2 --\n drivers/crypto/armv8/rte_armv8_pmd.c             |  5 +----\n drivers/crypto/armv8/rte_armv8_pmd_ops.c         |  1 -\n drivers/crypto/armv8/rte_armv8_pmd_private.h     |  2 --\n drivers/crypto/ccp/ccp_pmd_ops.c                 |  1 -\n drivers/crypto/ccp/ccp_pmd_private.h             |  1 -\n drivers/crypto/ccp/rte_ccp_pmd.c                 | 16 +---------------\n drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c      |  3 ++-\n drivers/crypto/dpaa_sec/dpaa_sec.c               |  1 -\n drivers/crypto/dpaa_sec/dpaa_sec.h               |  1 +\n drivers/crypto/kasumi/rte_kasumi_pmd.c           |  5 +----\n drivers/crypto/kasumi/rte_kasumi_pmd_ops.c       |  1 -\n drivers/crypto/kasumi/rte_kasumi_pmd_private.h   |  2 --\n drivers/crypto/mvsam/rte_mrvl_pmd.c              |  6 ------\n drivers/crypto/mvsam/rte_mrvl_pmd_ops.c          |  1 -\n drivers/crypto/mvsam/rte_mrvl_pmd_private.h      |  1 -\n drivers/crypto/null/null_crypto_pmd.c            |  3 ---\n drivers/crypto/null/null_crypto_pmd_ops.c        |  1 -\n drivers/crypto/null/null_crypto_pmd_private.h    |  1 -\n drivers/crypto/openssl/rte_openssl_pmd.c         |  3 ---\n drivers/crypto/openssl/rte_openssl_pmd_ops.c     |  1 -\n drivers/crypto/openssl/rte_openssl_pmd_private.h |  2 --\n drivers/crypto/qat/qat_crypto.c                  |  1 -\n drivers/crypto/qat/qat_crypto.h                  |  2 --\n drivers/crypto/qat/rte_qat_cryptodev.c           |  4 +---\n drivers/crypto/scheduler/scheduler_pmd.c         | 13 +------------\n drivers/crypto/scheduler/scheduler_pmd_ops.c     |  7 -------\n drivers/crypto/snow3g/rte_snow3g_pmd.c           |  3 ---\n drivers/crypto/snow3g/rte_snow3g_pmd_ops.c       |  1 -\n drivers/crypto/snow3g/rte_snow3g_pmd_private.h   |  2 --\n drivers/crypto/virtio/virtio_cryptodev.c         |  3 ---\n drivers/crypto/zuc/rte_zuc_pmd.c                 |  5 +----\n drivers/crypto/zuc/rte_zuc_pmd_ops.c             |  1 -\n drivers/crypto/zuc/rte_zuc_pmd_private.h         |  2 --\n lib/librte_cryptodev/rte_cryptodev.h             |  5 -----\n lib/librte_cryptodev/rte_cryptodev_pmd.c         | 12 ++----------\n lib/librte_cryptodev/rte_cryptodev_pmd.h         |  4 ----\n test/test/test_cryptodev.c                       | 13 +++++++------\n 61 files changed, 30 insertions(+), 206 deletions(-)",
    "diff": "diff --git a/config/common_base b/config/common_base\nindex 6b0d1cbbb..db6dec335 100644\n--- a/config/common_base\n+++ b/config/common_base\n@@ -473,14 +473,12 @@ CONFIG_RTE_LIBRTE_PMD_ARMV8_CRYPTO_DEBUG=n\n # Compile NXP DPAA2 crypto sec driver for CAAM HW\n #\n CONFIG_RTE_LIBRTE_PMD_DPAA2_SEC=n\n-CONFIG_RTE_DPAA2_SEC_PMD_MAX_NB_SESSIONS=2048\n \n #\n # NXP DPAA caam - crypto driver\n #\n CONFIG_RTE_LIBRTE_PMD_DPAA_SEC=n\n CONFIG_RTE_LIBRTE_DPAA_MAX_CRYPTODEV=4\n-CONFIG_RTE_DPAA_SEC_PMD_MAX_NB_SESSIONS=2048\n \n #\n # Compile PMD for QuickAssist based devices\n@@ -490,11 +488,6 @@ CONFIG_RTE_LIBRTE_PMD_QAT_DEBUG_INIT=n\n CONFIG_RTE_LIBRTE_PMD_QAT_DEBUG_TX=n\n CONFIG_RTE_LIBRTE_PMD_QAT_DEBUG_RX=n\n CONFIG_RTE_LIBRTE_PMD_QAT_DEBUG_DRIVER=n\n-#\n-# Number of sessions to create in the session memory pool\n-# on a single QuickAssist device.\n-#\n-CONFIG_RTE_QAT_PMD_MAX_NB_SESSIONS=2048\n \n #\n # Compile PMD for virtio crypto devices\n@@ -504,11 +497,6 @@ CONFIG_RTE_LIBRTE_PMD_VIRTIO_CRYPTO=y\n # Number of maximum virtio crypto devices\n #\n CONFIG_RTE_MAX_VIRTIO_CRYPTO=32\n-#\n-# Number of sessions to create in the session memory pool\n-# on a single virtio crypto device.\n-#\n-CONFIG_RTE_VIRTIO_CRYPTO_PMD_MAX_NB_SESSIONS=1024\n \n #\n # Compile PMD for AESNI backed device\ndiff --git a/config/rte_config.h b/config/rte_config.h\nindex a1d01759e..7261d28d6 100644\n--- a/config/rte_config.h\n+++ b/config/rte_config.h\n@@ -85,23 +85,9 @@\n \n /****** driver defines ********/\n \n-/*\n- * Number of sessions to create in the session memory pool\n- * on a single instance of crypto HW device.\n- */\n-/* QuickAssist device */\n-#define RTE_QAT_PMD_MAX_NB_SESSIONS 2048\n-\n /* virtio crypto defines */\n-#define RTE_VIRTIO_CRYPTO_PMD_MAX_NB_SESSIONS 1024\n #define RTE_MAX_VIRTIO_CRYPTO 32\n \n-/* DPAA2_SEC */\n-#define RTE_DPAA2_SEC_PMD_MAX_NB_SESSIONS 2048\n-\n-/* DPAA_SEC */\n-#define RTE_DPAA_SEC_PMD_MAX_NB_SESSIONS 2048\n-\n /* DPAA SEC max cryptodev devices*/\n #define RTE_LIBRTE_DPAA_MAX_CRYPTODEV\t4\n \ndiff --git a/doc/guides/cryptodevs/aesni_gcm.rst b/doc/guides/cryptodevs/aesni_gcm.rst\nindex 01590e850..2cfd1e9f7 100644\n--- a/doc/guides/cryptodevs/aesni_gcm.rst\n+++ b/doc/guides/cryptodevs/aesni_gcm.rst\n@@ -83,11 +83,9 @@ The following parameters (all optional) can be provided in the previous two call\n \n * max_nb_queue_pairs: Specify the maximum number of queue pairs in the device (8 by default).\n \n-* max_nb_sessions: Specify the maximum number of sessions that can be created (2048 by default).\n-\n Example:\n \n .. code-block:: console\n \n-    ./l2fwd-crypto -l 1 -n 4 --vdev=\"crypto_aesni_gcm,socket_id=0,max_nb_sessions=128\" \\\n+    ./l2fwd-crypto -l 1 -n 4 --vdev=\"crypto_aesni_gcm,socket_id=0\" \\\n     -- -p 1 --cdev SW --chain AEAD --aead_algo \"aes-gcm\"\ndiff --git a/doc/guides/cryptodevs/aesni_mb.rst b/doc/guides/cryptodevs/aesni_mb.rst\nindex 236828c0a..a0602a10d 100644\n--- a/doc/guides/cryptodevs/aesni_mb.rst\n+++ b/doc/guides/cryptodevs/aesni_mb.rst\n@@ -106,13 +106,11 @@ The following parameters (all optional) can be provided in the previous two call\n \n * max_nb_queue_pairs: Specify the maximum number of queue pairs in the device (8 by default).\n \n-* max_nb_sessions: Specify the maximum number of sessions that can be created (2048 by default).\n-\n Example:\n \n .. code-block:: console\n \n-    ./l2fwd-crypto -l 1 -n 4 --vdev=\"crypto_aesni_mb,socket_id=0,max_nb_sessions=128\" \\\n+    ./l2fwd-crypto -l 1 -n 4 --vdev=\"crypto_aesni_mb,socket_id=0\" \\\n     -- -p 1 --cdev SW --chain CIPHER_HASH --cipher_algo \"aes-cbc\" --auth_algo \"sha1-hmac\"\n \n Extra notes\ndiff --git a/doc/guides/cryptodevs/armv8.rst b/doc/guides/cryptodevs/armv8.rst\nindex 725398daf..4adf3cf40 100644\n--- a/doc/guides/cryptodevs/armv8.rst\n+++ b/doc/guides/cryptodevs/armv8.rst\n@@ -64,7 +64,6 @@ For performance test cryptodev_sw_armv8_perftest can be used.\n Limitations\n -----------\n \n-* Maximum number of sessions is 2048.\n * Only chained operations are supported.\n * AES-128-CBC is the only supported cipher variant.\n * Cipher input data has to be a multiple of 16 bytes.\ndiff --git a/doc/guides/cryptodevs/ccp.rst b/doc/guides/cryptodevs/ccp.rst\nindex 034d20367..d577d5a1c 100644\n--- a/doc/guides/cryptodevs/ccp.rst\n+++ b/doc/guides/cryptodevs/ccp.rst\n@@ -101,8 +101,6 @@ The following parameters (all optional) can be provided in the previous two call\n \n * max_nb_queue_pairs: Specify the maximum number of queue pairs in the device.\n \n-* max_nb_sessions: Specify the maximum number of sessions that can be created (2048 by default).\n-\n * ccp_auth_opt: Specify authentication operations to perform on CPU using openssl APIs.\n \n To validate ccp pmd, l2fwd-crypto example can be used with following command:\ndiff --git a/doc/guides/cryptodevs/dpaa2_sec.rst b/doc/guides/cryptodevs/dpaa2_sec.rst\nindex 3ea24c8aa..990befeb7 100644\n--- a/doc/guides/cryptodevs/dpaa2_sec.rst\n+++ b/doc/guides/cryptodevs/dpaa2_sec.rst\n@@ -200,11 +200,6 @@ Please note that enabling debugging options may affect system performance.\n   By default it is only enabled in defconfig_arm64-dpaa2-* config.\n   Toggle compilation of the ``librte_pmd_dpaa2_sec`` driver.\n \n-* ``CONFIG_RTE_DPAA2_SEC_PMD_MAX_NB_SESSIONS``\n-  By default it is set as 2048 in defconfig_arm64-dpaa2-* config.\n-  It indicates Number of sessions to create in the session memory pool\n-  on a single DPAA2 SEC device.\n-\n Installations\n -------------\n To compile the DPAA2_SEC PMD for Linux arm64 gcc target, run the\ndiff --git a/doc/guides/cryptodevs/dpaa_sec.rst b/doc/guides/cryptodevs/dpaa_sec.rst\nindex c14d6d7b1..c5097a84f 100644\n--- a/doc/guides/cryptodevs/dpaa_sec.rst\n+++ b/doc/guides/cryptodevs/dpaa_sec.rst\n@@ -145,11 +145,6 @@ Please note that enabling debugging options may affect system performance.\n   By default it is only enabled in defconfig_arm64-dpaa-* config.\n   Toggle compilation of the ``librte_pmd_dpaa_sec`` driver.\n \n-* ``CONFIG_RTE_DPAA_SEC_PMD_MAX_NB_SESSIONS``\n-  By default it is set as 2048 in defconfig_arm64-dpaa-* config.\n-  It indicates Number of sessions to create in the session memory pool\n-  on a single DPAA SEC device.\n-\n Installations\n -------------\n To compile the DPAA_SEC PMD for Linux arm64 gcc target, run the\ndiff --git a/doc/guides/cryptodevs/kasumi.rst b/doc/guides/cryptodevs/kasumi.rst\nindex 2265eee4e..74bc4d840 100644\n--- a/doc/guides/cryptodevs/kasumi.rst\n+++ b/doc/guides/cryptodevs/kasumi.rst\n@@ -87,13 +87,11 @@ The following parameters (all optional) can be provided in the previous two call\n \n * max_nb_queue_pairs: Specify the maximum number of queue pairs in the device (8 by default).\n \n-* max_nb_sessions: Specify the maximum number of sessions that can be created (2048 by default).\n-\n Example:\n \n .. code-block:: console\n \n-    ./l2fwd-crypto -l 1 -n 4 --vdev=\"crypto_kasumi,socket_id=0,max_nb_sessions=128\" \\\n+    ./l2fwd-crypto -l 1 -n 4 --vdev=\"crypto_kasumi,socket_id=0\" \\\n     -- -p 1 --cdev SW --chain CIPHER_ONLY --cipher_algo \"kasumi-f8\"\n \n Extra notes on KASUMI F9\ndiff --git a/doc/guides/cryptodevs/mvsam.rst b/doc/guides/cryptodevs/mvsam.rst\nindex fd418c264..b91bb0fb6 100644\n--- a/doc/guides/cryptodevs/mvsam.rst\n+++ b/doc/guides/cryptodevs/mvsam.rst\n@@ -115,7 +115,6 @@ loaded:\n The following parameters (all optional) are exported by the driver:\n \n * max_nb_queue_pairs: maximum number of queue pairs in the device (8 by default).\n-* max_nb_sessions: maximum number of sessions that can be created (2048 by default).\n * socket_id: socket on which to allocate the device resources on.\n \n l2fwd-crypto example application can be used to verify MVSAM CRYPTO PMD\ndiff --git a/doc/guides/cryptodevs/null.rst b/doc/guides/cryptodevs/null.rst\nindex c980e0ac8..ca39fe444 100644\n--- a/doc/guides/cryptodevs/null.rst\n+++ b/doc/guides/cryptodevs/null.rst\n@@ -61,11 +61,9 @@ The following parameters (all optional) can be provided in the previous two call\n \n * max_nb_queue_pairs: Specify the maximum number of queue pairs in the device (8 by default).\n \n-* max_nb_sessions: Specify the maximum number of sessions that can be created (2048 by default).\n-\n Example:\n \n .. code-block:: console\n \n-    ./l2fwd-crypto -l 1 -n 4 --vdev=\"crypto_null,socket_id=0,max_nb_sessions=128\" \\\n+    ./l2fwd-crypto -l 1 -n 4 --vdev=\"crypto_null,socket_id=0\" \\\n     -- -p 1 --cdev SW --chain CIPHER_ONLY --cipher_algo \"null\"\ndiff --git a/doc/guides/cryptodevs/openssl.rst b/doc/guides/cryptodevs/openssl.rst\nindex 427fc807c..153ad0657 100644\n--- a/doc/guides/cryptodevs/openssl.rst\n+++ b/doc/guides/cryptodevs/openssl.rst\n@@ -98,7 +98,6 @@ To verify real traffic l2fwd-crypto example can be used with this command:\n Limitations\n -----------\n \n-* Maximum number of sessions is 2048.\n * Chained mbufs are supported only for source mbuf (destination must be\n   contiguous).\n * Hash only is not supported for GCM and GMAC.\ndiff --git a/doc/guides/cryptodevs/scheduler.rst b/doc/guides/cryptodevs/scheduler.rst\nindex d67894d55..e266ec5a3 100644\n--- a/doc/guides/cryptodevs/scheduler.rst\n+++ b/doc/guides/cryptodevs/scheduler.rst\n@@ -58,10 +58,6 @@ two calls:\n   to be allocated (by default, socket_id will be the socket where the core\n   that is creating the PMD is running on).\n \n-* max_nb_sessions: Specify the maximum number of sessions that can be\n-  created. This value may be overwritten internally if there are too\n-  many devices are attached.\n-\n * slave: If a cryptodev has been initialized with specific name, it can be\n   attached to the scheduler using this parameter, simply filling the name\n   here. Multiple cryptodevs can be attached initially by presenting this\ndiff --git a/doc/guides/cryptodevs/snow3g.rst b/doc/guides/cryptodevs/snow3g.rst\nindex 7cba712c1..e0b9a73f7 100644\n--- a/doc/guides/cryptodevs/snow3g.rst\n+++ b/doc/guides/cryptodevs/snow3g.rst\n@@ -79,11 +79,9 @@ The following parameters (all optional) can be provided in the previous two call\n \n * max_nb_queue_pairs: Specify the maximum number of queue pairs in the device (8 by default).\n \n-* max_nb_sessions: Specify the maximum number of sessions that can be created (2048 by default).\n-\n Example:\n \n .. code-block:: console\n \n-    ./l2fwd-crypto -l 1 -n 4 --vdev=\"crypto_snow3g,socket_id=0,max_nb_sessions=128\" \\\n+    ./l2fwd-crypto -l 1 -n 4 --vdev=\"crypto_snow3g,socket_id=0\" \\\n     -- -p 1 --cdev SW --chain CIPHER_ONLY --cipher_algo \"snow3g-uea2\"\ndiff --git a/doc/guides/cryptodevs/zuc.rst b/doc/guides/cryptodevs/zuc.rst\nindex e38989968..7bebbb48b 100644\n--- a/doc/guides/cryptodevs/zuc.rst\n+++ b/doc/guides/cryptodevs/zuc.rst\n@@ -79,11 +79,9 @@ The following parameters (all optional) can be provided in the previous two call\n \n * max_nb_queue_pairs: Specify the maximum number of queue pairs in the device (8 by default).\n \n-* max_nb_sessions: Specify the maximum number of sessions that can be created (2048 by default).\n-\n Example:\n \n .. code-block:: console\n \n-    ./l2fwd-crypto -l 1 -n 4 --vdev=\"crypto_zuc,socket_id=0,max_nb_sessions=128\" \\\n+    ./l2fwd-crypto -l 1 -n 4 --vdev=\"crypto_zuc,socket_id=0\" \\\n     -- -p 1 --cdev SW --chain CIPHER_ONLY --cipher_algo \"zuc-eea3\"\ndiff --git a/doc/guides/prog_guide/cryptodev_lib.rst b/doc/guides/prog_guide/cryptodev_lib.rst\nindex d02bb7514..c83184fe9 100644\n--- a/doc/guides/prog_guide/cryptodev_lib.rst\n+++ b/doc/guides/prog_guide/cryptodev_lib.rst\n@@ -41,7 +41,7 @@ From the command line using the --vdev EAL option\n \n .. code-block:: console\n \n-   --vdev  'crypto_aesni_mb0,max_nb_queue_pairs=2,max_nb_sessions=1024,socket_id=0'\n+   --vdev  'crypto_aesni_mb0,max_nb_queue_pairs=2,socket_id=0'\n \n .. Note::\n \n@@ -57,12 +57,11 @@ Our using the rte_vdev_init API within the application code.\n .. code-block:: c\n \n    rte_vdev_init(\"crypto_aesni_mb\",\n-                     \"max_nb_queue_pairs=2,max_nb_sessions=1024,socket_id=0\")\n+                     \"max_nb_queue_pairs=2,socket_id=0\")\n \n All virtual Crypto devices support the following initialization parameters:\n \n * ``max_nb_queue_pairs`` - maximum number of queue pairs supported by the device.\n-* ``max_nb_sessions`` - maximum number of sessions supported by the device\n * ``socket_id`` - socket on which to allocate the device resources on.\n \n \n@@ -276,10 +275,6 @@ relevant information for the device.\n         const struct rte_cryptodev_capabilities *capabilities;\n \n         unsigned max_nb_queue_pairs;\n-\n-        struct {\n-            unsigned max_nb_sessions;\n-        } sym;\n     };\n \n \ndiff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst\nindex b71080bb8..dc014da21 100644\n--- a/doc/guides/rel_notes/deprecation.rst\n+++ b/doc/guides/rel_notes/deprecation.rst\n@@ -101,9 +101,6 @@ Deprecation Notices\n * cryptodev: The following changes will be made in the library\n   for 18.08:\n \n-  - Removal of ``sym`` structure in ``rte_cryptodev_info`` structure,\n-    containing fields not relevant anymore since the session mempool\n-    is not internal in the crypto device anymore.\n   - Functions ``rte_cryptodev_queue_pair_attach_sym_session()`` and\n     ``rte_cryptodev_queue_pair_dettach_sym_session()`` will be deprecated from\n     18.05 and removed in 18.08, as there are no drivers doing anything useful\ndiff --git a/doc/guides/rel_notes/release_18_08.rst b/doc/guides/rel_notes/release_18_08.rst\nindex ba710e845..a6f31713a 100644\n--- a/doc/guides/rel_notes/release_18_08.rst\n+++ b/doc/guides/rel_notes/release_18_08.rst\n@@ -56,7 +56,8 @@ API Changes\n    =========================================================\n \n * cryptodev: In struct ``struct rte_cryptodev_info``, field ``rte_pci_device *pci_dev``\n-  has been replaced with field ``struct rte_device *device``.\n+  has been replaced with field ``struct rte_device *device`` and\n+  field ``sym`` has been removed.\n \n \n ABI Changes\ndiff --git a/drivers/crypto/aesni_gcm/aesni_gcm_pmd.c b/drivers/crypto/aesni_gcm/aesni_gcm_pmd.c\nindex 80360dd9c..cd5b1952b 100644\n--- a/drivers/crypto/aesni_gcm/aesni_gcm_pmd.c\n+++ b/drivers/crypto/aesni_gcm/aesni_gcm_pmd.c\n@@ -513,7 +513,6 @@ aesni_gcm_create(const char *name,\n \tinternals->vector_mode = vector_mode;\n \n \tinternals->max_nb_queue_pairs = init_params->max_nb_queue_pairs;\n-\tinternals->max_nb_sessions = init_params->max_nb_sessions;\n \n \treturn 0;\n }\n@@ -525,8 +524,7 @@ aesni_gcm_probe(struct rte_vdev_device *vdev)\n \t\t\"\",\n \t\tsizeof(struct aesni_gcm_private),\n \t\trte_socket_id(),\n-\t\tRTE_CRYPTODEV_PMD_DEFAULT_MAX_NB_QUEUE_PAIRS,\n-\t\tRTE_CRYPTODEV_PMD_DEFAULT_MAX_NB_SESSIONS\n+\t\tRTE_CRYPTODEV_PMD_DEFAULT_MAX_NB_QUEUE_PAIRS\n \t};\n \tconst char *name;\n \tconst char *input_args;\n@@ -568,7 +566,6 @@ RTE_PMD_REGISTER_VDEV(CRYPTODEV_NAME_AESNI_GCM_PMD, aesni_gcm_pmd_drv);\n RTE_PMD_REGISTER_ALIAS(CRYPTODEV_NAME_AESNI_GCM_PMD, cryptodev_aesni_gcm_pmd);\n RTE_PMD_REGISTER_PARAM_STRING(CRYPTODEV_NAME_AESNI_GCM_PMD,\n \t\"max_nb_queue_pairs=<int> \"\n-\t\"max_nb_sessions=<int> \"\n \t\"socket_id=<int>\");\n RTE_PMD_REGISTER_CRYPTO_DRIVER(aesni_gcm_crypto_drv, aesni_gcm_pmd_drv.driver,\n \t\tcryptodev_driver_id);\ndiff --git a/drivers/crypto/aesni_gcm/aesni_gcm_pmd_ops.c b/drivers/crypto/aesni_gcm/aesni_gcm_pmd_ops.c\nindex 6f542137c..b05122c1b 100644\n--- a/drivers/crypto/aesni_gcm/aesni_gcm_pmd_ops.c\n+++ b/drivers/crypto/aesni_gcm/aesni_gcm_pmd_ops.c\n@@ -143,7 +143,6 @@ aesni_gcm_pmd_info_get(struct rte_cryptodev *dev,\n \t\tdev_info->capabilities = aesni_gcm_pmd_capabilities;\n \n \t\tdev_info->max_nb_queue_pairs = internals->max_nb_queue_pairs;\n-\t\tdev_info->sym.max_nb_sessions = internals->max_nb_sessions;\n \t}\n }\n \ndiff --git a/drivers/crypto/aesni_gcm/aesni_gcm_pmd_private.h b/drivers/crypto/aesni_gcm/aesni_gcm_pmd_private.h\nindex 3d60583b0..b496377dd 100644\n--- a/drivers/crypto/aesni_gcm/aesni_gcm_pmd_private.h\n+++ b/drivers/crypto/aesni_gcm/aesni_gcm_pmd_private.h\n@@ -39,8 +39,6 @@ struct aesni_gcm_private {\n \t/**< Vector mode */\n \tunsigned max_nb_queue_pairs;\n \t/**< Max number of queue pairs supported by device */\n-\tunsigned max_nb_sessions;\n-\t/**< Max number of sessions supported by device */\n };\n \n struct aesni_gcm_qp {\ndiff --git a/drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c b/drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c\nindex bb35c66ab..bb647f736 100644\n--- a/drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c\n+++ b/drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c\n@@ -885,7 +885,6 @@ cryptodev_aesni_mb_create(const char *name,\n \n \tinternals->vector_mode = vector_mode;\n \tinternals->max_nb_queue_pairs = init_params->max_nb_queue_pairs;\n-\tinternals->max_nb_sessions = init_params->max_nb_sessions;\n \n \treturn 0;\n }\n@@ -897,8 +896,7 @@ cryptodev_aesni_mb_probe(struct rte_vdev_device *vdev)\n \t\t\"\",\n \t\tsizeof(struct aesni_mb_private),\n \t\trte_socket_id(),\n-\t\tRTE_CRYPTODEV_PMD_DEFAULT_MAX_NB_QUEUE_PAIRS,\n-\t\tRTE_CRYPTODEV_PMD_DEFAULT_MAX_NB_SESSIONS\n+\t\tRTE_CRYPTODEV_PMD_DEFAULT_MAX_NB_QUEUE_PAIRS\n \t};\n \tconst char *name, *args;\n \tint retval;\n@@ -947,7 +945,6 @@ RTE_PMD_REGISTER_VDEV(CRYPTODEV_NAME_AESNI_MB_PMD, cryptodev_aesni_mb_pmd_drv);\n RTE_PMD_REGISTER_ALIAS(CRYPTODEV_NAME_AESNI_MB_PMD, cryptodev_aesni_mb_pmd);\n RTE_PMD_REGISTER_PARAM_STRING(CRYPTODEV_NAME_AESNI_MB_PMD,\n \t\"max_nb_queue_pairs=<int> \"\n-\t\"max_nb_sessions=<int> \"\n \t\"socket_id=<int>\");\n RTE_PMD_REGISTER_CRYPTO_DRIVER(aesni_mb_crypto_drv,\n \t\tcryptodev_aesni_mb_pmd_drv.driver,\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 01530523f..7c735f5dc 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@@ -387,7 +387,6 @@ aesni_mb_pmd_info_get(struct rte_cryptodev *dev,\n \t\tdev_info->feature_flags = dev->feature_flags;\n \t\tdev_info->capabilities = aesni_mb_pmd_capabilities;\n \t\tdev_info->max_nb_queue_pairs = internals->max_nb_queue_pairs;\n-\t\tdev_info->sym.max_nb_sessions = internals->max_nb_sessions;\n \t}\n }\n \ndiff --git a/drivers/crypto/aesni_mb/rte_aesni_mb_pmd_private.h b/drivers/crypto/aesni_mb/rte_aesni_mb_pmd_private.h\nindex a33b2f695..9520cdf9c 100644\n--- a/drivers/crypto/aesni_mb/rte_aesni_mb_pmd_private.h\n+++ b/drivers/crypto/aesni_mb/rte_aesni_mb_pmd_private.h\n@@ -124,8 +124,6 @@ struct aesni_mb_private {\n \t/**< CPU vector instruction set mode */\n \tunsigned max_nb_queue_pairs;\n \t/**< Max number of queue pairs supported by device */\n-\tunsigned max_nb_sessions;\n-\t/**< Max number of sessions supported by device */\n };\n \n /** AESNI Multi buffer queue pair */\ndiff --git a/drivers/crypto/armv8/rte_armv8_pmd.c b/drivers/crypto/armv8/rte_armv8_pmd.c\nindex fbb08f729..db0d8a2a9 100644\n--- a/drivers/crypto/armv8/rte_armv8_pmd.c\n+++ b/drivers/crypto/armv8/rte_armv8_pmd.c\n@@ -779,7 +779,6 @@ cryptodev_armv8_crypto_create(const char *name,\n \tinternals = dev->data->dev_private;\n \n \tinternals->max_nb_qpairs = init_params->max_nb_queue_pairs;\n-\tinternals->max_nb_sessions = init_params->max_nb_sessions;\n \n \treturn 0;\n \n@@ -800,8 +799,7 @@ cryptodev_armv8_crypto_init(struct rte_vdev_device *vdev)\n \t\t\"\",\n \t\tsizeof(struct armv8_crypto_private),\n \t\trte_socket_id(),\n-\t\tRTE_CRYPTODEV_PMD_DEFAULT_MAX_NB_QUEUE_PAIRS,\n-\t\tRTE_CRYPTODEV_PMD_DEFAULT_MAX_NB_SESSIONS\n+\t\tRTE_CRYPTODEV_PMD_DEFAULT_MAX_NB_QUEUE_PAIRS\n \t};\n \tconst char *name;\n \tconst char *input_args;\n@@ -848,7 +846,6 @@ RTE_PMD_REGISTER_VDEV(CRYPTODEV_NAME_ARMV8_PMD, armv8_crypto_pmd_drv);\n RTE_PMD_REGISTER_ALIAS(CRYPTODEV_NAME_ARMV8_PMD, cryptodev_armv8_pmd);\n RTE_PMD_REGISTER_PARAM_STRING(CRYPTODEV_NAME_ARMV8_PMD,\n \t\"max_nb_queue_pairs=<int> \"\n-\t\"max_nb_sessions=<int> \"\n \t\"socket_id=<int>\");\n RTE_PMD_REGISTER_CRYPTO_DRIVER(armv8_crypto_drv, armv8_crypto_pmd_drv.driver,\n \t\tcryptodev_driver_id);\ndiff --git a/drivers/crypto/armv8/rte_armv8_pmd_ops.c b/drivers/crypto/armv8/rte_armv8_pmd_ops.c\nindex c64aef09f..d31ef7d66 100644\n--- a/drivers/crypto/armv8/rte_armv8_pmd_ops.c\n+++ b/drivers/crypto/armv8/rte_armv8_pmd_ops.c\n@@ -154,7 +154,6 @@ armv8_crypto_pmd_info_get(struct rte_cryptodev *dev,\n \t\tdev_info->feature_flags = dev->feature_flags;\n \t\tdev_info->capabilities = armv8_crypto_pmd_capabilities;\n \t\tdev_info->max_nb_queue_pairs = internals->max_nb_qpairs;\n-\t\tdev_info->sym.max_nb_sessions = internals->max_nb_sessions;\n \t}\n }\n \ndiff --git a/drivers/crypto/armv8/rte_armv8_pmd_private.h b/drivers/crypto/armv8/rte_armv8_pmd_private.h\nindex b8966e934..7feb021db 100644\n--- a/drivers/crypto/armv8/rte_armv8_pmd_private.h\n+++ b/drivers/crypto/armv8/rte_armv8_pmd_private.h\n@@ -106,8 +106,6 @@ typedef void (*crypto_key_sched_t)(uint8_t *, const uint8_t *);\n struct armv8_crypto_private {\n \tunsigned int max_nb_qpairs;\n \t/**< Max number of queue pairs */\n-\tunsigned int max_nb_sessions;\n-\t/**< Max number of sessions */\n };\n \n /** ARMv8 crypto queue pair */\ndiff --git a/drivers/crypto/ccp/ccp_pmd_ops.c b/drivers/crypto/ccp/ccp_pmd_ops.c\nindex 80b75ccb0..7e383feed 100644\n--- a/drivers/crypto/ccp/ccp_pmd_ops.c\n+++ b/drivers/crypto/ccp/ccp_pmd_ops.c\n@@ -624,7 +624,6 @@ ccp_pmd_info_get(struct rte_cryptodev *dev,\n \t\tif (internals->auth_opt == 1)\n \t\t\tdev_info->capabilities = ccp_crypto_cap_complete;\n \t\tdev_info->max_nb_queue_pairs = internals->max_nb_qpairs;\n-\t\tdev_info->sym.max_nb_sessions = internals->max_nb_sessions;\n \t}\n }\n \ndiff --git a/drivers/crypto/ccp/ccp_pmd_private.h b/drivers/crypto/ccp/ccp_pmd_private.h\nindex f4498048f..79752f687 100644\n--- a/drivers/crypto/ccp/ccp_pmd_private.h\n+++ b/drivers/crypto/ccp/ccp_pmd_private.h\n@@ -40,7 +40,6 @@\n /* private data structure for each CCP crypto device */\n struct ccp_private {\n \tunsigned int max_nb_qpairs;\t/**< Max number of queue pairs */\n-\tunsigned int max_nb_sessions;\t/**< Max number of sessions */\n \tuint8_t crypto_num_dev;\t\t/**< Number of working crypto devices */\n \tbool auth_opt;\t\t\t/**< Authentication offload option */\n \tstruct ccp_device *last_dev;\t/**< Last working crypto device */\ndiff --git a/drivers/crypto/ccp/rte_ccp_pmd.c b/drivers/crypto/ccp/rte_ccp_pmd.c\nindex 2061f465e..d70640f6d 100644\n--- a/drivers/crypto/ccp/rte_ccp_pmd.c\n+++ b/drivers/crypto/ccp/rte_ccp_pmd.c\n@@ -30,14 +30,12 @@ struct ccp_pmd_init_params {\n #define CCP_CRYPTODEV_PARAM_NAME\t\t(\"name\")\n #define CCP_CRYPTODEV_PARAM_SOCKET_ID\t\t(\"socket_id\")\n #define CCP_CRYPTODEV_PARAM_MAX_NB_QP\t\t(\"max_nb_queue_pairs\")\n-#define CCP_CRYPTODEV_PARAM_MAX_NB_SESS\t\t(\"max_nb_sessions\")\n #define CCP_CRYPTODEV_PARAM_AUTH_OPT\t\t(\"ccp_auth_opt\")\n \n const char *ccp_pmd_valid_params[] = {\n \tCCP_CRYPTODEV_PARAM_NAME,\n \tCCP_CRYPTODEV_PARAM_SOCKET_ID,\n \tCCP_CRYPTODEV_PARAM_MAX_NB_QP,\n-\tCCP_CRYPTODEV_PARAM_MAX_NB_SESS,\n \tCCP_CRYPTODEV_PARAM_AUTH_OPT,\n };\n \n@@ -124,13 +122,6 @@ ccp_pmd_parse_input_args(struct ccp_pmd_init_params *params,\n \t\tif (ret < 0)\n \t\t\tgoto free_kvlist;\n \n-\t\tret = rte_kvargs_process(kvlist,\n-\t\t\t\t\t CCP_CRYPTODEV_PARAM_MAX_NB_SESS,\n-\t\t\t\t\t &parse_integer_arg,\n-\t\t\t\t\t &params->def_p.max_nb_sessions);\n-\t\tif (ret < 0)\n-\t\t\tgoto free_kvlist;\n-\n \t\tret = rte_kvargs_process(kvlist,\n \t\t\t\t\t CCP_CRYPTODEV_PARAM_SOCKET_ID,\n \t\t\t\t\t &parse_integer_arg,\n@@ -334,7 +325,6 @@ cryptodev_ccp_create(const char *name,\n \tinternals = dev->data->dev_private;\n \n \tinternals->max_nb_qpairs = init_params->def_p.max_nb_queue_pairs;\n-\tinternals->max_nb_sessions = init_params->def_p.max_nb_sessions;\n \tinternals->auth_opt = init_params->auth_opt;\n \tinternals->crypto_num_dev = cryptodev_cnt;\n \n@@ -359,8 +349,7 @@ cryptodev_ccp_probe(struct rte_vdev_device *vdev)\n \t\t\t\"\",\n \t\t\tsizeof(struct ccp_private),\n \t\t\trte_socket_id(),\n-\t\t\tCCP_PMD_MAX_QUEUE_PAIRS,\n-\t\t\tRTE_CRYPTODEV_PMD_DEFAULT_MAX_NB_SESSIONS\n+\t\t\tCCP_PMD_MAX_QUEUE_PAIRS\n \t\t},\n \t\t.auth_opt = CCP_PMD_AUTH_OPT_CCP,\n \t};\n@@ -382,8 +371,6 @@ cryptodev_ccp_probe(struct rte_vdev_device *vdev)\n \t\tinit_params.def_p.socket_id);\n \tRTE_LOG(INFO, PMD, \"Max number of queue pairs = %d\\n\",\n \t\tinit_params.def_p.max_nb_queue_pairs);\n-\tRTE_LOG(INFO, PMD, \"Max number of sessions = %d\\n\",\n-\t\tinit_params.def_p.max_nb_sessions);\n \tRTE_LOG(INFO, PMD, \"Authentication offload to %s\\n\",\n \t\t((init_params.auth_opt == 0) ? \"CCP\" : \"CPU\"));\n \n@@ -404,7 +391,6 @@ static struct cryptodev_driver ccp_crypto_drv;\n RTE_PMD_REGISTER_VDEV(CRYPTODEV_NAME_CCP_PMD, cryptodev_ccp_pmd_drv);\n RTE_PMD_REGISTER_PARAM_STRING(CRYPTODEV_NAME_CCP_PMD,\n \t\"max_nb_queue_pairs=<int> \"\n-\t\"max_nb_sessions=<int> \"\n \t\"socket_id=<int> \"\n \t\"ccp_auth_opt=<int>\");\n RTE_PMD_REGISTER_CRYPTO_DRIVER(ccp_crypto_drv, cryptodev_ccp_pmd_drv.driver,\ndiff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c\nindex 56fa969d3..16ab0b6a6 100644\n--- a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c\n+++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c\n@@ -55,6 +55,8 @@ typedef uint64_t\tdma_addr_t;\n #define SEC_FLC_DHR_OUTBOUND\t-114\n #define SEC_FLC_DHR_INBOUND\t0\n \n+#define RTE_DPAA2_SEC_PMD_MAX_NB_SESSIONS 2048\n+\n enum rta_sec_era rta_sec_era = RTA_SEC_ERA_8;\n \n static uint8_t cryptodev_driver_id;\n@@ -2626,7 +2628,6 @@ dpaa2_sec_dev_infos_get(struct rte_cryptodev *dev,\n \t\tinfo->max_nb_queue_pairs = internals->max_nb_queue_pairs;\n \t\tinfo->feature_flags = dev->feature_flags;\n \t\tinfo->capabilities = dpaa2_sec_capabilities;\n-\t\tinfo->sym.max_nb_sessions = internals->max_nb_sessions;\n \t\tinfo->driver_id = cryptodev_driver_id;\n \t}\n }\ndiff --git a/drivers/crypto/dpaa_sec/dpaa_sec.c b/drivers/crypto/dpaa_sec/dpaa_sec.c\nindex 73cae483b..909583bd0 100644\n--- a/drivers/crypto/dpaa_sec/dpaa_sec.c\n+++ b/drivers/crypto/dpaa_sec/dpaa_sec.c\n@@ -2214,7 +2214,6 @@ dpaa_sec_dev_infos_get(struct rte_cryptodev *dev,\n \t\tinfo->max_nb_queue_pairs = internals->max_nb_queue_pairs;\n \t\tinfo->feature_flags = dev->feature_flags;\n \t\tinfo->capabilities = dpaa_sec_capabilities;\n-\t\tinfo->sym.max_nb_sessions = internals->max_nb_sessions;\n \t\tinfo->driver_id = cryptodev_driver_id;\n \t}\n }\ndiff --git a/drivers/crypto/dpaa_sec/dpaa_sec.h b/drivers/crypto/dpaa_sec/dpaa_sec.h\nindex e15e373fd..91df68009 100644\n--- a/drivers/crypto/dpaa_sec/dpaa_sec.h\n+++ b/drivers/crypto/dpaa_sec/dpaa_sec.h\n@@ -137,6 +137,7 @@ struct dpaa_sec_qp {\n };\n \n #define RTE_DPAA_MAX_NB_SEC_QPS 8\n+#define RTE_DPAA_SEC_PMD_MAX_NB_SESSIONS 2048\n #define RTE_DPAA_MAX_RX_QUEUE RTE_DPAA_SEC_PMD_MAX_NB_SESSIONS\n #define DPAA_MAX_DEQUEUE_NUM_FRAMES 63\n \ndiff --git a/drivers/crypto/kasumi/rte_kasumi_pmd.c b/drivers/crypto/kasumi/rte_kasumi_pmd.c\nindex 205dc1de7..65376b211 100644\n--- a/drivers/crypto/kasumi/rte_kasumi_pmd.c\n+++ b/drivers/crypto/kasumi/rte_kasumi_pmd.c\n@@ -555,7 +555,6 @@ cryptodev_kasumi_create(const char *name,\n \tinternals = dev->data->dev_private;\n \n \tinternals->max_nb_queue_pairs = init_params->max_nb_queue_pairs;\n-\tinternals->max_nb_sessions = init_params->max_nb_sessions;\n \n \treturn 0;\n init_error:\n@@ -573,8 +572,7 @@ cryptodev_kasumi_probe(struct rte_vdev_device *vdev)\n \t\t\"\",\n \t\tsizeof(struct kasumi_private),\n \t\trte_socket_id(),\n-\t\tRTE_CRYPTODEV_PMD_DEFAULT_MAX_NB_QUEUE_PAIRS,\n-\t\tRTE_CRYPTODEV_PMD_DEFAULT_MAX_NB_SESSIONS\n+\t\tRTE_CRYPTODEV_PMD_DEFAULT_MAX_NB_QUEUE_PAIRS\n \t};\n \tconst char *name;\n \tconst char *input_args;\n@@ -617,7 +615,6 @@ RTE_PMD_REGISTER_VDEV(CRYPTODEV_NAME_KASUMI_PMD, cryptodev_kasumi_pmd_drv);\n RTE_PMD_REGISTER_ALIAS(CRYPTODEV_NAME_KASUMI_PMD, cryptodev_kasumi_pmd);\n RTE_PMD_REGISTER_PARAM_STRING(CRYPTODEV_NAME_KASUMI_PMD,\n \t\"max_nb_queue_pairs=<int> \"\n-\t\"max_nb_sessions=<int> \"\n \t\"socket_id=<int>\");\n RTE_PMD_REGISTER_CRYPTO_DRIVER(kasumi_crypto_drv,\n \t\tcryptodev_kasumi_pmd_drv.driver, cryptodev_driver_id);\ndiff --git a/drivers/crypto/kasumi/rte_kasumi_pmd_ops.c b/drivers/crypto/kasumi/rte_kasumi_pmd_ops.c\nindex a388dbb63..284669341 100644\n--- a/drivers/crypto/kasumi/rte_kasumi_pmd_ops.c\n+++ b/drivers/crypto/kasumi/rte_kasumi_pmd_ops.c\n@@ -126,7 +126,6 @@ kasumi_pmd_info_get(struct rte_cryptodev *dev,\n \tif (dev_info != NULL) {\n \t\tdev_info->driver_id = dev->driver_id;\n \t\tdev_info->max_nb_queue_pairs = internals->max_nb_queue_pairs;\n-\t\tdev_info->sym.max_nb_sessions = internals->max_nb_sessions;\n \t\tdev_info->feature_flags = dev->feature_flags;\n \t\tdev_info->capabilities = kasumi_pmd_capabilities;\n \t}\ndiff --git a/drivers/crypto/kasumi/rte_kasumi_pmd_private.h b/drivers/crypto/kasumi/rte_kasumi_pmd_private.h\nindex a397bee65..2b12818bc 100644\n--- a/drivers/crypto/kasumi/rte_kasumi_pmd_private.h\n+++ b/drivers/crypto/kasumi/rte_kasumi_pmd_private.h\n@@ -36,8 +36,6 @@\n struct kasumi_private {\n \tunsigned max_nb_queue_pairs;\n \t/**< Max number of queue pairs supported by device */\n-\tunsigned max_nb_sessions;\n-\t/**< Max number of sessions supported by device */\n };\n \n /** KASUMI buffer queue pair */\ndiff --git a/drivers/crypto/mvsam/rte_mrvl_pmd.c b/drivers/crypto/mvsam/rte_mrvl_pmd.c\nindex 1b6029a56..822b6cac7 100644\n--- a/drivers/crypto/mvsam/rte_mrvl_pmd.c\n+++ b/drivers/crypto/mvsam/rte_mrvl_pmd.c\n@@ -719,7 +719,6 @@ cryptodev_mrvl_crypto_create(const char *name,\n \tinternals = dev->data->dev_private;\n \n \tinternals->max_nb_qpairs = init_params->max_nb_queue_pairs;\n-\tinternals->max_nb_sessions = init_params->max_nb_sessions;\n \n \t/*\n \t * ret == -EEXIST is correct, it means DMA\n@@ -734,8 +733,6 @@ cryptodev_mrvl_crypto_create(const char *name,\n \t\t\t\"DMA memory has been already initialized by a different driver.\");\n \t}\n \n-\tsam_params.max_num_sessions = internals->max_nb_sessions;\n-\n \treturn sam_init(&sam_params);\n \n init_error:\n@@ -766,8 +763,6 @@ cryptodev_mrvl_crypto_init(struct rte_vdev_device *vdev)\n \n \tinit_params.private_data_size = sizeof(struct mrvl_crypto_private);\n \tinit_params.max_nb_queue_pairs = sam_get_num_inst() * SAM_HW_RING_NUM;\n-\tinit_params.max_nb_sessions =\n-\t\tRTE_CRYPTODEV_PMD_DEFAULT_MAX_NB_SESSIONS;\n \tinit_params.socket_id = rte_socket_id();\n \n \tret = rte_cryptodev_pmd_parse_input_args(&init_params, args);\n@@ -823,7 +818,6 @@ static struct cryptodev_driver mrvl_crypto_drv;\n RTE_PMD_REGISTER_VDEV(CRYPTODEV_NAME_MRVL_PMD, cryptodev_mrvl_pmd_drv);\n RTE_PMD_REGISTER_PARAM_STRING(CRYPTODEV_NAME_MRVL_PMD,\n \t\"max_nb_queue_pairs=<int> \"\n-\t\"max_nb_sessions=<int> \"\n \t\"socket_id=<int>\");\n RTE_PMD_REGISTER_CRYPTO_DRIVER(mrvl_crypto_drv, cryptodev_mrvl_pmd_drv.driver,\n \t\tcryptodev_driver_id);\ndiff --git a/drivers/crypto/mvsam/rte_mrvl_pmd_ops.c b/drivers/crypto/mvsam/rte_mrvl_pmd_ops.c\nindex 3f8de37b7..944a415cf 100644\n--- a/drivers/crypto/mvsam/rte_mrvl_pmd_ops.c\n+++ b/drivers/crypto/mvsam/rte_mrvl_pmd_ops.c\n@@ -471,7 +471,6 @@ mrvl_crypto_pmd_info_get(struct rte_cryptodev *dev,\n \t\tdev_info->feature_flags = dev->feature_flags;\n \t\tdev_info->capabilities = mrvl_crypto_pmd_capabilities;\n \t\tdev_info->max_nb_queue_pairs = internals->max_nb_qpairs;\n-\t\tdev_info->sym.max_nb_sessions = internals->max_nb_sessions;\n \t}\n }\n \ndiff --git a/drivers/crypto/mvsam/rte_mrvl_pmd_private.h b/drivers/crypto/mvsam/rte_mrvl_pmd_private.h\nindex c16d95b46..bb528493a 100644\n--- a/drivers/crypto/mvsam/rte_mrvl_pmd_private.h\n+++ b/drivers/crypto/mvsam/rte_mrvl_pmd_private.h\n@@ -51,7 +51,6 @@ enum mrvl_crypto_chain_order {\n /** Private data structure for each crypto device. */\n struct mrvl_crypto_private {\n \tunsigned int max_nb_qpairs;\t/**< Max number of queue pairs */\n-\tunsigned int max_nb_sessions;\t/**< Max number of sessions */\n };\n \n /** MRVL crypto queue pair structure. */\ndiff --git a/drivers/crypto/null/null_crypto_pmd.c b/drivers/crypto/null/null_crypto_pmd.c\nindex 052b6546c..a8499cf94 100644\n--- a/drivers/crypto/null/null_crypto_pmd.c\n+++ b/drivers/crypto/null/null_crypto_pmd.c\n@@ -182,7 +182,6 @@ cryptodev_null_create(const char *name,\n \tinternals = dev->data->dev_private;\n \n \tinternals->max_nb_qpairs = init_params->max_nb_queue_pairs;\n-\tinternals->max_nb_sessions = init_params->max_nb_sessions;\n \n \treturn 0;\n }\n@@ -196,7 +195,6 @@ cryptodev_null_probe(struct rte_vdev_device *dev)\n \t\tsizeof(struct null_crypto_private),\n \t\trte_socket_id(),\n \t\tRTE_CRYPTODEV_PMD_DEFAULT_MAX_NB_QUEUE_PAIRS,\n-\t\tRTE_CRYPTODEV_PMD_DEFAULT_MAX_NB_SESSIONS\n \t};\n \tconst char *name, *args;\n \tint retval;\n@@ -245,7 +243,6 @@ RTE_PMD_REGISTER_VDEV(CRYPTODEV_NAME_NULL_PMD, cryptodev_null_pmd_drv);\n RTE_PMD_REGISTER_ALIAS(CRYPTODEV_NAME_NULL_PMD, cryptodev_null_pmd);\n RTE_PMD_REGISTER_PARAM_STRING(CRYPTODEV_NAME_NULL_PMD,\n \t\"max_nb_queue_pairs=<int> \"\n-\t\"max_nb_sessions=<int> \"\n \t\"socket_id=<int>\");\n RTE_PMD_REGISTER_CRYPTO_DRIVER(null_crypto_drv, cryptodev_null_pmd_drv.driver,\n \t\tcryptodev_driver_id);\ndiff --git a/drivers/crypto/null/null_crypto_pmd_ops.c b/drivers/crypto/null/null_crypto_pmd_ops.c\nindex f8e5f61f1..3ca1370e8 100644\n--- a/drivers/crypto/null/null_crypto_pmd_ops.c\n+++ b/drivers/crypto/null/null_crypto_pmd_ops.c\n@@ -121,7 +121,6 @@ null_crypto_pmd_info_get(struct rte_cryptodev *dev,\n \tif (dev_info != NULL) {\n \t\tdev_info->driver_id = dev->driver_id;\n \t\tdev_info->max_nb_queue_pairs = internals->max_nb_qpairs;\n-\t\tdev_info->sym.max_nb_sessions = internals->max_nb_sessions;\n \t\tdev_info->feature_flags = dev->feature_flags;\n \t\tdev_info->capabilities = null_crypto_pmd_capabilities;\n \t}\ndiff --git a/drivers/crypto/null/null_crypto_pmd_private.h b/drivers/crypto/null/null_crypto_pmd_private.h\nindex 0fd133625..d7d769f3d 100644\n--- a/drivers/crypto/null/null_crypto_pmd_private.h\n+++ b/drivers/crypto/null/null_crypto_pmd_private.h\n@@ -32,7 +32,6 @@\n /** private data structure for each NULL crypto device */\n struct null_crypto_private {\n \tunsigned max_nb_qpairs;\t\t/**< Max number of queue pairs */\n-\tunsigned max_nb_sessions;\t/**< Max number of sessions */\n };\n \n /** NULL crypto queue pair */\ndiff --git a/drivers/crypto/openssl/rte_openssl_pmd.c b/drivers/crypto/openssl/rte_openssl_pmd.c\nindex 93c6d7e5d..965cab9f2 100644\n--- a/drivers/crypto/openssl/rte_openssl_pmd.c\n+++ b/drivers/crypto/openssl/rte_openssl_pmd.c\n@@ -1666,7 +1666,6 @@ cryptodev_openssl_create(const char *name,\n \tinternals = dev->data->dev_private;\n \n \tinternals->max_nb_qpairs = init_params->max_nb_queue_pairs;\n-\tinternals->max_nb_sessions = init_params->max_nb_sessions;\n \n \treturn 0;\n \n@@ -1687,7 +1686,6 @@ cryptodev_openssl_probe(struct rte_vdev_device *vdev)\n \t\tsizeof(struct openssl_private),\n \t\trte_socket_id(),\n \t\tRTE_CRYPTODEV_PMD_DEFAULT_MAX_NB_QUEUE_PAIRS,\n-\t\tRTE_CRYPTODEV_PMD_DEFAULT_MAX_NB_SESSIONS\n \t};\n \tconst char *name;\n \tconst char *input_args;\n@@ -1731,7 +1729,6 @@ RTE_PMD_REGISTER_VDEV(CRYPTODEV_NAME_OPENSSL_PMD,\n \tcryptodev_openssl_pmd_drv);\n RTE_PMD_REGISTER_PARAM_STRING(CRYPTODEV_NAME_OPENSSL_PMD,\n \t\"max_nb_queue_pairs=<int> \"\n-\t\"max_nb_sessions=<int> \"\n \t\"socket_id=<int>\");\n RTE_PMD_REGISTER_CRYPTO_DRIVER(openssl_crypto_drv,\n \t\tcryptodev_openssl_pmd_drv.driver, cryptodev_driver_id);\ndiff --git a/drivers/crypto/openssl/rte_openssl_pmd_ops.c b/drivers/crypto/openssl/rte_openssl_pmd_ops.c\nindex 1cb87d59a..485c80e7f 100644\n--- a/drivers/crypto/openssl/rte_openssl_pmd_ops.c\n+++ b/drivers/crypto/openssl/rte_openssl_pmd_ops.c\n@@ -547,7 +547,6 @@ openssl_pmd_info_get(struct rte_cryptodev *dev,\n \t\tdev_info->feature_flags = dev->feature_flags;\n \t\tdev_info->capabilities = openssl_pmd_capabilities;\n \t\tdev_info->max_nb_queue_pairs = internals->max_nb_qpairs;\n-\t\tdev_info->sym.max_nb_sessions = internals->max_nb_sessions;\n \t}\n }\n \ndiff --git a/drivers/crypto/openssl/rte_openssl_pmd_private.h b/drivers/crypto/openssl/rte_openssl_pmd_private.h\nindex bc8dc7cdc..02ea81d5c 100644\n--- a/drivers/crypto/openssl/rte_openssl_pmd_private.h\n+++ b/drivers/crypto/openssl/rte_openssl_pmd_private.h\n@@ -62,8 +62,6 @@ enum openssl_auth_mode {\n struct openssl_private {\n \tunsigned int max_nb_qpairs;\n \t/**< Max number of queue pairs */\n-\tunsigned int max_nb_sessions;\n-\t/**< Max number of sessions */\n };\n \n /** OPENSSL crypto queue pair */\ndiff --git a/drivers/crypto/qat/qat_crypto.c b/drivers/crypto/qat/qat_crypto.c\nindex 768dcbae0..e89d3bc11 100644\n--- a/drivers/crypto/qat/qat_crypto.c\n+++ b/drivers/crypto/qat/qat_crypto.c\n@@ -1654,7 +1654,6 @@ void qat_dev_info_get(struct rte_cryptodev *dev,\n \t\t\t\tADF_NUM_BUNDLES_PER_DEV;\n \t\tinfo->feature_flags = dev->feature_flags;\n \t\tinfo->capabilities = internals->qat_dev_capabilities;\n-\t\tinfo->sym.max_nb_sessions = internals->max_nb_sessions;\n \t\tinfo->driver_id = cryptodev_qat_driver_id;\n \t}\n }\ndiff --git a/drivers/crypto/qat/qat_crypto.h b/drivers/crypto/qat/qat_crypto.h\nindex 281a142b9..c84cf669f 100644\n--- a/drivers/crypto/qat/qat_crypto.h\n+++ b/drivers/crypto/qat/qat_crypto.h\n@@ -75,8 +75,6 @@ struct qat_qp {\n struct qat_pmd_private {\n \tunsigned max_nb_queue_pairs;\n \t/**< Max number of queue pairs supported by device */\n-\tunsigned max_nb_sessions;\n-\t/**< Max number of sessions supported by device */\n \tenum qat_device_gen qat_dev_gen;\n \t/**< QAT device generation */\n \tconst struct rte_cryptodev_capabilities *qat_dev_capabilities;\ndiff --git a/drivers/crypto/qat/rte_qat_cryptodev.c b/drivers/crypto/qat/rte_qat_cryptodev.c\nindex c8da07af6..74a903d3a 100644\n--- a/drivers/crypto/qat/rte_qat_cryptodev.c\n+++ b/drivers/crypto/qat/rte_qat_cryptodev.c\n@@ -94,7 +94,6 @@ crypto_qat_create(const char *name, struct rte_pci_device *pci_dev,\n \t\t\tRTE_CRYPTODEV_FF_MBUF_SCATTER_GATHER;\n \n \tinternals = cryptodev->data->dev_private;\n-\tinternals->max_nb_sessions = init_params->max_nb_sessions;\n \tswitch (pci_dev->id.device_id) {\n \tcase 0x0443:\n \t\tinternals->qat_dev_gen = QAT_GEN1;\n@@ -131,8 +130,7 @@ static int crypto_qat_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,\n \tstruct rte_cryptodev_pmd_init_params init_params = {\n \t\t.name = \"\",\n \t\t.socket_id = pci_dev->device.numa_node,\n-\t\t.private_data_size = sizeof(struct qat_pmd_private),\n-\t\t.max_nb_sessions = RTE_QAT_PMD_MAX_NB_SESSIONS\n+\t\t.private_data_size = sizeof(struct qat_pmd_private)\n \t};\n \tchar name[RTE_CRYPTODEV_NAME_MAX_LEN];\n \ndiff --git a/drivers/crypto/scheduler/scheduler_pmd.c b/drivers/crypto/scheduler/scheduler_pmd.c\nindex 25d6409f3..32a19c106 100644\n--- a/drivers/crypto/scheduler/scheduler_pmd.c\n+++ b/drivers/crypto/scheduler/scheduler_pmd.c\n@@ -31,7 +31,6 @@ struct scheduler_init_params {\n #define RTE_CRYPTODEV_VDEV_MODE\t\t\t(\"mode\")\n #define RTE_CRYPTODEV_VDEV_ORDERING\t\t(\"ordering\")\n #define RTE_CRYPTODEV_VDEV_MAX_NB_QP_ARG\t(\"max_nb_queue_pairs\")\n-#define RTE_CRYPTODEV_VDEV_MAX_NB_SESS_ARG\t(\"max_nb_sessions\")\n #define RTE_CRYPTODEV_VDEV_SOCKET_ID\t\t(\"socket_id\")\n #define RTE_CRYPTODEV_VDEV_COREMASK\t\t(\"coremask\")\n #define RTE_CRYPTODEV_VDEV_CORELIST\t\t(\"corelist\")\n@@ -42,7 +41,6 @@ const char *scheduler_valid_params[] = {\n \tRTE_CRYPTODEV_VDEV_MODE,\n \tRTE_CRYPTODEV_VDEV_ORDERING,\n \tRTE_CRYPTODEV_VDEV_MAX_NB_QP_ARG,\n-\tRTE_CRYPTODEV_VDEV_MAX_NB_SESS_ARG,\n \tRTE_CRYPTODEV_VDEV_SOCKET_ID,\n \tRTE_CRYPTODEV_VDEV_COREMASK,\n \tRTE_CRYPTODEV_VDEV_CORELIST\n@@ -406,13 +404,6 @@ scheduler_parse_init_params(struct scheduler_init_params *params,\n \t\tif (ret < 0)\n \t\t\tgoto free_kvlist;\n \n-\t\tret = rte_kvargs_process(kvlist,\n-\t\t\t\tRTE_CRYPTODEV_VDEV_MAX_NB_SESS_ARG,\n-\t\t\t\t&parse_integer_arg,\n-\t\t\t\t&params->def_p.max_nb_sessions);\n-\t\tif (ret < 0)\n-\t\t\tgoto free_kvlist;\n-\n \t\tret = rte_kvargs_process(kvlist, RTE_CRYPTODEV_VDEV_SOCKET_ID,\n \t\t\t\t&parse_integer_arg,\n \t\t\t\t&params->def_p.socket_id);\n@@ -466,8 +457,7 @@ cryptodev_scheduler_probe(struct rte_vdev_device *vdev)\n \t\t\t\"\",\n \t\t\tsizeof(struct scheduler_ctx),\n \t\t\trte_socket_id(),\n-\t\t\tRTE_CRYPTODEV_PMD_DEFAULT_MAX_NB_QUEUE_PAIRS,\n-\t\t\tRTE_CRYPTODEV_PMD_DEFAULT_MAX_NB_SESSIONS\n+\t\t\tRTE_CRYPTODEV_PMD_DEFAULT_MAX_NB_QUEUE_PAIRS\n \t\t},\n \t\t.nb_slaves = 0,\n \t\t.mode = CDEV_SCHED_MODE_NOT_SET,\n@@ -500,7 +490,6 @@ RTE_PMD_REGISTER_VDEV(CRYPTODEV_NAME_SCHEDULER_PMD,\n \tcryptodev_scheduler_pmd_drv);\n RTE_PMD_REGISTER_PARAM_STRING(CRYPTODEV_NAME_SCHEDULER_PMD,\n \t\"max_nb_queue_pairs=<int> \"\n-\t\"max_nb_sessions=<int> \"\n \t\"socket_id=<int> \"\n \t\"slave=<name>\");\n RTE_PMD_REGISTER_CRYPTO_DRIVER(scheduler_crypto_drv,\ndiff --git a/drivers/crypto/scheduler/scheduler_pmd_ops.c b/drivers/crypto/scheduler/scheduler_pmd_ops.c\nindex 147dc51e9..88be72a05 100644\n--- a/drivers/crypto/scheduler/scheduler_pmd_ops.c\n+++ b/drivers/crypto/scheduler/scheduler_pmd_ops.c\n@@ -321,8 +321,6 @@ scheduler_pmd_info_get(struct rte_cryptodev *dev,\n \t\tstruct rte_cryptodev_info *dev_info)\n {\n \tstruct scheduler_ctx *sched_ctx = dev->data->dev_private;\n-\tuint32_t max_nb_sessions = sched_ctx->nb_slaves ?\n-\t\t\tUINT32_MAX : RTE_CRYPTODEV_PMD_DEFAULT_MAX_NB_SESSIONS;\n \tuint32_t i;\n \n \tif (!dev_info)\n@@ -338,17 +336,12 @@ scheduler_pmd_info_get(struct rte_cryptodev *dev,\n \t\tstruct rte_cryptodev_info slave_info;\n \n \t\trte_cryptodev_info_get(slave_dev_id, &slave_info);\n-\t\tmax_nb_sessions = slave_info.sym.max_nb_sessions <\n-\t\t\t\tmax_nb_sessions ?\n-\t\t\t\tslave_info.sym.max_nb_sessions :\n-\t\t\t\tmax_nb_sessions;\n \t}\n \n \tdev_info->driver_id = dev->driver_id;\n \tdev_info->feature_flags = dev->feature_flags;\n \tdev_info->capabilities = sched_ctx->capabilities;\n \tdev_info->max_nb_queue_pairs = sched_ctx->max_nb_queue_pairs;\n-\tdev_info->sym.max_nb_sessions = max_nb_sessions;\n }\n \n /** Release queue pair */\ndiff --git a/drivers/crypto/snow3g/rte_snow3g_pmd.c b/drivers/crypto/snow3g/rte_snow3g_pmd.c\nindex 72751e35e..fe595abe1 100644\n--- a/drivers/crypto/snow3g/rte_snow3g_pmd.c\n+++ b/drivers/crypto/snow3g/rte_snow3g_pmd.c\n@@ -555,7 +555,6 @@ cryptodev_snow3g_create(const char *name,\n \tinternals = dev->data->dev_private;\n \n \tinternals->max_nb_queue_pairs = init_params->max_nb_queue_pairs;\n-\tinternals->max_nb_sessions = init_params->max_nb_sessions;\n \n \treturn 0;\n init_error:\n@@ -574,7 +573,6 @@ cryptodev_snow3g_probe(struct rte_vdev_device *vdev)\n \t\tsizeof(struct snow3g_private),\n \t\trte_socket_id(),\n \t\tRTE_CRYPTODEV_PMD_DEFAULT_MAX_NB_QUEUE_PAIRS,\n-\t\tRTE_CRYPTODEV_PMD_DEFAULT_MAX_NB_SESSIONS\n \t};\n \tconst char *name;\n \tconst char *input_args;\n@@ -617,7 +615,6 @@ RTE_PMD_REGISTER_VDEV(CRYPTODEV_NAME_SNOW3G_PMD, cryptodev_snow3g_pmd_drv);\n RTE_PMD_REGISTER_ALIAS(CRYPTODEV_NAME_SNOW3G_PMD, cryptodev_snow3g_pmd);\n RTE_PMD_REGISTER_PARAM_STRING(CRYPTODEV_NAME_SNOW3G_PMD,\n \t\"max_nb_queue_pairs=<int> \"\n-\t\"max_nb_sessions=<int> \"\n \t\"socket_id=<int>\");\n RTE_PMD_REGISTER_CRYPTO_DRIVER(snow3g_crypto_drv,\n \t\tcryptodev_snow3g_pmd_drv.driver, cryptodev_driver_id);\ndiff --git a/drivers/crypto/snow3g/rte_snow3g_pmd_ops.c b/drivers/crypto/snow3g/rte_snow3g_pmd_ops.c\nindex f60b47598..fff4644c0 100644\n--- a/drivers/crypto/snow3g/rte_snow3g_pmd_ops.c\n+++ b/drivers/crypto/snow3g/rte_snow3g_pmd_ops.c\n@@ -130,7 +130,6 @@ snow3g_pmd_info_get(struct rte_cryptodev *dev,\n \tif (dev_info != NULL) {\n \t\tdev_info->driver_id = dev->driver_id;\n \t\tdev_info->max_nb_queue_pairs = internals->max_nb_queue_pairs;\n-\t\tdev_info->sym.max_nb_sessions = internals->max_nb_sessions;\n \t\tdev_info->feature_flags = dev->feature_flags;\n \t\tdev_info->capabilities = snow3g_pmd_capabilities;\n \t}\ndiff --git a/drivers/crypto/snow3g/rte_snow3g_pmd_private.h b/drivers/crypto/snow3g/rte_snow3g_pmd_private.h\nindex eea900e0a..2c6e1a948 100644\n--- a/drivers/crypto/snow3g/rte_snow3g_pmd_private.h\n+++ b/drivers/crypto/snow3g/rte_snow3g_pmd_private.h\n@@ -36,8 +36,6 @@\n struct snow3g_private {\n \tunsigned max_nb_queue_pairs;\n \t/**< Max number of queue pairs supported by device */\n-\tunsigned max_nb_sessions;\n-\t/**< Max number of sessions supported by device */\n };\n \n /** SNOW 3G buffer queue pair */\ndiff --git a/drivers/crypto/virtio/virtio_cryptodev.c b/drivers/crypto/virtio/virtio_cryptodev.c\nindex 482edea1a..8395801a4 100644\n--- a/drivers/crypto/virtio/virtio_cryptodev.c\n+++ b/drivers/crypto/virtio/virtio_cryptodev.c\n@@ -1411,8 +1411,6 @@ virtio_crypto_dev_info_get(struct rte_cryptodev *dev,\n \t\tinfo->driver_id = cryptodev_virtio_driver_id;\n \t\tinfo->feature_flags = dev->feature_flags;\n \t\tinfo->max_nb_queue_pairs = hw->max_dataqueues;\n-\t\tinfo->sym.max_nb_sessions =\n-\t\t\tRTE_VIRTIO_CRYPTO_PMD_MAX_NB_SESSIONS;\n \t\tinfo->capabilities = hw->virtio_dev_capabilities;\n \t}\n }\n@@ -1426,7 +1424,6 @@ crypto_virtio_pci_probe(\n \t\t.name = \"\",\n \t\t.socket_id = rte_socket_id(),\n \t\t.private_data_size = sizeof(struct virtio_crypto_hw),\n-\t\t.max_nb_sessions = RTE_VIRTIO_CRYPTO_PMD_MAX_NB_SESSIONS\n \t};\n \tchar name[RTE_CRYPTODEV_NAME_MAX_LEN];\n \ndiff --git a/drivers/crypto/zuc/rte_zuc_pmd.c b/drivers/crypto/zuc/rte_zuc_pmd.c\nindex a805b2278..396f25975 100644\n--- a/drivers/crypto/zuc/rte_zuc_pmd.c\n+++ b/drivers/crypto/zuc/rte_zuc_pmd.c\n@@ -479,7 +479,6 @@ cryptodev_zuc_create(const char *name,\n \tinternals = dev->data->dev_private;\n \n \tinternals->max_nb_queue_pairs = init_params->max_nb_queue_pairs;\n-\tinternals->max_nb_sessions = init_params->max_nb_sessions;\n \n \treturn 0;\n init_error:\n@@ -497,8 +496,7 @@ cryptodev_zuc_probe(struct rte_vdev_device *vdev)\n \t\t\"\",\n \t\tsizeof(struct zuc_private),\n \t\trte_socket_id(),\n-\t\tRTE_CRYPTODEV_PMD_DEFAULT_MAX_NB_QUEUE_PAIRS,\n-\t\tRTE_CRYPTODEV_PMD_DEFAULT_MAX_NB_SESSIONS\n+\t\tRTE_CRYPTODEV_PMD_DEFAULT_MAX_NB_QUEUE_PAIRS\n \t};\n \tconst char *name;\n \tconst char *input_args;\n@@ -541,7 +539,6 @@ static struct cryptodev_driver zuc_crypto_drv;\n RTE_PMD_REGISTER_VDEV(CRYPTODEV_NAME_ZUC_PMD, cryptodev_zuc_pmd_drv);\n RTE_PMD_REGISTER_PARAM_STRING(CRYPTODEV_NAME_ZUC_PMD,\n \t\"max_nb_queue_pairs=<int> \"\n-\t\"max_nb_sessions=<int> \"\n \t\"socket_id=<int>\");\n RTE_PMD_REGISTER_CRYPTO_DRIVER(zuc_crypto_drv, cryptodev_zuc_pmd_drv.driver,\n \t\tcryptodev_driver_id);\ndiff --git a/drivers/crypto/zuc/rte_zuc_pmd_ops.c b/drivers/crypto/zuc/rte_zuc_pmd_ops.c\nindex 8abac8989..ac509e70d 100644\n--- a/drivers/crypto/zuc/rte_zuc_pmd_ops.c\n+++ b/drivers/crypto/zuc/rte_zuc_pmd_ops.c\n@@ -130,7 +130,6 @@ zuc_pmd_info_get(struct rte_cryptodev *dev,\n \tif (dev_info != NULL) {\n \t\tdev_info->driver_id = dev->driver_id;\n \t\tdev_info->max_nb_queue_pairs = internals->max_nb_queue_pairs;\n-\t\tdev_info->sym.max_nb_sessions = internals->max_nb_sessions;\n \t\tdev_info->feature_flags = dev->feature_flags;\n \t\tdev_info->capabilities = zuc_pmd_capabilities;\n \t}\ndiff --git a/drivers/crypto/zuc/rte_zuc_pmd_private.h b/drivers/crypto/zuc/rte_zuc_pmd_private.h\nindex b83c4a047..2bd378ad6 100644\n--- a/drivers/crypto/zuc/rte_zuc_pmd_private.h\n+++ b/drivers/crypto/zuc/rte_zuc_pmd_private.h\n@@ -37,8 +37,6 @@\n struct zuc_private {\n \tunsigned max_nb_queue_pairs;\n \t/**< Max number of queue pairs supported by device */\n-\tunsigned max_nb_sessions;\n-\t/**< Max number of sessions supported by device */\n };\n \n /** ZUC buffer queue pair */\ndiff --git a/lib/librte_cryptodev/rte_cryptodev.h b/lib/librte_cryptodev/rte_cryptodev.h\nindex a4b8cccc2..78be5bdb8 100644\n--- a/lib/librte_cryptodev/rte_cryptodev.h\n+++ b/lib/librte_cryptodev/rte_cryptodev.h\n@@ -381,11 +381,6 @@ struct rte_cryptodev_info {\n \n \tunsigned max_nb_queue_pairs;\n \t/**< Maximum number of queues pairs supported by device. */\n-\n-\tstruct {\n-\t\tunsigned max_nb_sessions;\n-\t\t/**< Maximum number of sessions supported by device. */\n-\t} sym;\n };\n \n #define RTE_CRYPTODEV_DETACHED  (0)\ndiff --git a/lib/librte_cryptodev/rte_cryptodev_pmd.c b/lib/librte_cryptodev/rte_cryptodev_pmd.c\nindex f2aac24b7..2088ac3f3 100644\n--- a/lib/librte_cryptodev/rte_cryptodev_pmd.c\n+++ b/lib/librte_cryptodev/rte_cryptodev_pmd.c\n@@ -65,13 +65,6 @@ rte_cryptodev_pmd_parse_input_args(\n \t\tif (ret < 0)\n \t\t\tgoto free_kvlist;\n \n-\t\tret = rte_kvargs_process(kvlist,\n-\t\t\t\tRTE_CRYPTODEV_PMD_MAX_NB_SESS_ARG,\n-\t\t\t\t&rte_cryptodev_pmd_parse_uint_arg,\n-\t\t\t\t&params->max_nb_sessions);\n-\t\tif (ret < 0)\n-\t\t\tgoto free_kvlist;\n-\n \t\tret = rte_kvargs_process(kvlist,\n \t\t\t\tRTE_CRYPTODEV_PMD_SOCKET_ID_ARG,\n \t\t\t\t&rte_cryptodev_pmd_parse_uint_arg,\n@@ -109,10 +102,9 @@ rte_cryptodev_pmd_create(const char *name,\n \t\t\tdevice->driver->name, name);\n \n \tCDEV_LOG_INFO(\"[%s] - Initialisation parameters - name: %s,\"\n-\t\t\t\"socket id: %d, max queue pairs: %u, max sessions: %u\",\n+\t\t\t\"socket id: %d, max queue pairs: %u\",\n \t\t\tdevice->driver->name, name,\n-\t\t\tparams->socket_id, params->max_nb_queue_pairs,\n-\t\t\tparams->max_nb_sessions);\n+\t\t\tparams->socket_id, params->max_nb_queue_pairs);\n \n \t/* allocate device structure */\n \tcryptodev = rte_cryptodev_pmd_allocate(name, params->socket_id);\ndiff --git a/lib/librte_cryptodev/rte_cryptodev_pmd.h b/lib/librte_cryptodev/rte_cryptodev_pmd.h\nindex 69d776934..0739ce065 100644\n--- a/lib/librte_cryptodev/rte_cryptodev_pmd.h\n+++ b/lib/librte_cryptodev/rte_cryptodev_pmd.h\n@@ -59,18 +59,15 @@ extern \"C\" {\n \n \n #define RTE_CRYPTODEV_PMD_DEFAULT_MAX_NB_QUEUE_PAIRS\t8\n-#define RTE_CRYPTODEV_PMD_DEFAULT_MAX_NB_SESSIONS\t2048\n \n #define RTE_CRYPTODEV_PMD_NAME_ARG\t\t\t(\"name\")\n #define RTE_CRYPTODEV_PMD_MAX_NB_QP_ARG\t\t\t(\"max_nb_queue_pairs\")\n-#define RTE_CRYPTODEV_PMD_MAX_NB_SESS_ARG\t\t(\"max_nb_sessions\")\n #define RTE_CRYPTODEV_PMD_SOCKET_ID_ARG\t\t\t(\"socket_id\")\n \n \n static const char * const cryptodev_pmd_valid_params[] = {\n \tRTE_CRYPTODEV_PMD_NAME_ARG,\n \tRTE_CRYPTODEV_PMD_MAX_NB_QP_ARG,\n-\tRTE_CRYPTODEV_PMD_MAX_NB_SESS_ARG,\n \tRTE_CRYPTODEV_PMD_SOCKET_ID_ARG\n };\n \n@@ -83,7 +80,6 @@ struct rte_cryptodev_pmd_init_params {\n \tsize_t private_data_size;\n \tint socket_id;\n \tunsigned int max_nb_queue_pairs;\n-\tunsigned int max_nb_sessions;\n };\n \n /** Global structure used for maintaining state of allocated crypto devices */\ndiff --git a/test/test/test_cryptodev.c b/test/test/test_cryptodev.c\nindex 389f79677..2c687bd7c 100644\n--- a/test/test/test_cryptodev.c\n+++ b/test/test/test_cryptodev.c\n@@ -39,6 +39,7 @@\n #include \"test_cryptodev_hmac_test_vectors.h\"\n \n #define VDEV_ARGS_SIZE 100\n+#define MAX_NB_SESSIONS            4\n \n static int gbl_driver_id;\n \n@@ -437,7 +438,7 @@ testsuite_setup(void)\n \t */\n \tts_params->session_mpool = rte_mempool_create(\n \t\t\t\t\"test_sess_mp\",\n-\t\t\t\tinfo.sym.max_nb_sessions * 2,\n+\t\t\t\tMAX_NB_SESSIONS * 2,\n \t\t\t\tsession_size,\n \t\t\t\t0, 0, NULL, NULL, NULL,\n \t\t\t\tNULL, SOCKET_ID_ANY,\n@@ -6499,10 +6500,10 @@ test_multi_session(void)\n \n \tsessions = rte_malloc(NULL,\n \t\t\t(sizeof(struct rte_cryptodev_sym_session *) *\n-\t\t\tdev_info.sym.max_nb_sessions) + 1, 0);\n+\t\t\tMAX_NB_SESSIONS) + 1, 0);\n \n \t/* Create multiple crypto sessions*/\n-\tfor (i = 0; i < dev_info.sym.max_nb_sessions; i++) {\n+\tfor (i = 0; i < MAX_NB_SESSIONS; i++) {\n \n \t\tsessions[i] = rte_cryptodev_sym_session_create(\n \t\t\t\tts_params->session_mpool);\n@@ -6551,7 +6552,7 @@ test_multi_session(void)\n \tTEST_ASSERT_NULL(sessions[i],\n \t\t\t\"Session creation succeeded unexpectedly!\");\n \n-\tfor (i = 0; i < dev_info.sym.max_nb_sessions; i++) {\n+\tfor (i = 0; i < MAX_NB_SESSIONS; i++) {\n \t\trte_cryptodev_sym_session_clear(ts_params->valid_devs[0],\n \t\t\t\tsessions[i]);\n \t\trte_cryptodev_sym_session_free(sessions[i]);\n@@ -6610,7 +6611,7 @@ test_multi_session_random_usage(void)\n \n \tsessions = rte_malloc(NULL,\n \t\t\t(sizeof(struct rte_cryptodev_sym_session *)\n-\t\t\t\t\t* dev_info.sym.max_nb_sessions) + 1, 0);\n+\t\t\t\t\t* MAX_NB_SESSIONS) + 1, 0);\n \n \tfor (i = 0; i < MB_SESSION_NUMBER; i++) {\n \t\tsessions[i] = rte_cryptodev_sym_session_create(\n@@ -8545,7 +8546,7 @@ test_scheduler_attach_slave_op(void)\n \t\tif (ts_params->session_mpool == NULL) {\n \t\t\tts_params->session_mpool = rte_mempool_create(\n \t\t\t\t\t\"test_sess_mp\",\n-\t\t\t\t\tinfo.sym.max_nb_sessions * 2,\n+\t\t\t\t\tMAX_NB_SESSIONS * 2,\n \t\t\t\t\tsession_size,\n \t\t\t\t\t0, 0, NULL, NULL, NULL,\n \t\t\t\t\tNULL, SOCKET_ID_ANY,\n",
    "prefixes": [
        "3/6"
    ]
}