Show a patch.

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

{
    "id": 41808,
    "url": "http://patches.dpdk.org/api/patches/41808/",
    "web_url": "http://patches.dpdk.org/patch/41808/",
    "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-10-pablo.de.lara.guarch@intel.com>",
    "date": "2018-06-28T00:52:57",
    "name": "[v3,09/16] cryptodev: remove max number of sessions parameter",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "8b00fd9adff6a5dea1243deaaaffe279004fe177",
    "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/41808/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/41808/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/41808/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 522831B1F8;\n\tThu, 28 Jun 2018 10:59:57 +0200 (CEST)",
            "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n\tby dpdk.org (Postfix) with ESMTP id C059F1B057\n\tfor <dev@dpdk.org>; Thu, 28 Jun 2018 10:59:37 +0200 (CEST)",
            "from orsmga002.jf.intel.com ([10.7.209.21])\n\tby fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t28 Jun 2018 01:59:36 -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:23 -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-10-pablo.de.lara.guarch@intel.com>",
        "X-IronPort-AV": "E=Sophos;i=\"5.51,282,1526367600\"; d=\"scan'208\";a=\"70667149\"",
        "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:52:57 +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 09/16] cryptodev: remove max number of\n\tsessions parameter"
    },
    "content": "Most crypto PMDs do not have a limitation\nof the number of the sessions that can be handled\ninternally. The value that was set before was not\nactually used at all, since the sessions are created\nat the application level.\nTherefore, this value is not parsed from the initial\ncrypto parameters anymore and it is set to 0,\nmeaning that there is no actual limit.\n\nSigned-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>\n---\n doc/guides/prog_guide/cryptodev_lib.rst            |  5 ++---\n drivers/crypto/aesni_gcm/aesni_gcm_pmd.c           |  5 +----\n drivers/crypto/aesni_gcm/aesni_gcm_pmd_ops.c       |  3 ++-\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     |  3 ++-\n drivers/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           |  3 ++-\n drivers/crypto/armv8/rte_armv8_pmd_private.h       |  2 --\n drivers/crypto/ccp/ccp_pmd_ops.c                   |  3 ++-\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        |  4 ++--\n drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h          |  2 --\n drivers/crypto/kasumi/rte_kasumi_pmd.c             |  5 +----\n drivers/crypto/kasumi/rte_kasumi_pmd_ops.c         |  3 ++-\n drivers/crypto/kasumi/rte_kasumi_pmd_private.h     |  2 --\n drivers/crypto/mvsam/rte_mrvl_pmd_ops.c            |  3 ++-\n drivers/crypto/null/null_crypto_pmd.c              |  5 +----\n drivers/crypto/null/null_crypto_pmd_ops.c          |  3 ++-\n drivers/crypto/null/null_crypto_pmd_private.h      |  1 -\n drivers/crypto/openssl/rte_openssl_pmd.c           |  5 +----\n drivers/crypto/openssl/rte_openssl_pmd_ops.c       |  3 ++-\n drivers/crypto/openssl/rte_openssl_pmd_private.h   |  2 --\n drivers/crypto/qat/qat_sym_pmd.c                   |  6 +++---\n drivers/crypto/qat/qat_sym_pmd.h                   |  1 -\n drivers/crypto/scheduler/scheduler_pmd.c           | 13 +------------\n drivers/crypto/scheduler/scheduler_pmd_ops.c       | 14 +++++++-------\n drivers/crypto/snow3g/rte_snow3g_pmd.c             |  5 +----\n drivers/crypto/snow3g/rte_snow3g_pmd_ops.c         |  3 ++-\n drivers/crypto/snow3g/rte_snow3g_pmd_private.h     |  2 --\n drivers/crypto/virtio/virtio_cryptodev.c           |  7 +++----\n drivers/crypto/zuc/rte_zuc_pmd.c                   |  5 +----\n drivers/crypto/zuc/rte_zuc_pmd_ops.c               |  3 ++-\n drivers/crypto/zuc/rte_zuc_pmd_private.h           |  2 --\n lib/librte_cryptodev/rte_cryptodev_pmd.c           | 12 ++----------\n lib/librte_cryptodev/rte_cryptodev_pmd.h           |  4 ----\n 38 files changed, 49 insertions(+), 121 deletions(-)",
    "diff": "diff --git a/doc/guides/prog_guide/cryptodev_lib.rst b/doc/guides/prog_guide/cryptodev_lib.rst\nindex d02bb7514..d2a74a362 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 \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..796ccdbd8 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,8 @@ 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\t/* No limit of number of sessions */\n+\t\tdev_info->sym.max_nb_sessions = 0;\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..101fdc5c6 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,8 @@ 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\t/* No limit of number of sessions */\n+\t\tdev_info->sym.max_nb_sessions = 0;\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..b654f7528 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,8 @@ 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\t/* No limit of number of sessions */\n+\t\tdev_info->sym.max_nb_sessions = 0;\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..dbe545c10 100644\n--- a/drivers/crypto/ccp/ccp_pmd_ops.c\n+++ b/drivers/crypto/ccp/ccp_pmd_ops.c\n@@ -624,7 +624,8 @@ 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\t/* No limit of number of sessions */\n+\t\tdev_info->sym.max_nb_sessions = 0;\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..bc091c560 100644\n--- a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c\n+++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c\n@@ -2626,7 +2626,8 @@ 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\t/* No limit of number of sessions */\n+\t\tinfo->sym.max_nb_sessions = 0;\n \t\tinfo->driver_id = cryptodev_driver_id;\n \t}\n }\n@@ -2786,7 +2787,6 @@ dpaa2_sec_dev_init(struct rte_cryptodev *cryptodev)\n \t\t\tRTE_CRYPTODEV_FF_MBUF_SCATTER_GATHER;\n \n \tinternals = cryptodev->data->dev_private;\n-\tinternals->max_nb_sessions = RTE_DPAA2_SEC_PMD_MAX_NB_SESSIONS;\n \n \t/*\n \t * For secondary processes, we don't initialise any further as primary\ndiff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h b/drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h\nindex a9d83ebce..d015be1e9 100644\n--- a/drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h\n+++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h\n@@ -23,8 +23,6 @@ struct dpaa2_sec_dev_private {\n \tuint16_t token; /**< Token required by DPxxx objects */\n \tunsigned int max_nb_queue_pairs;\n \t/**< Max number of queue pairs supported by device */\n-\tunsigned int max_nb_sessions;\n-\t/**< Max number of sessions supported by device */\n };\n \n struct dpaa2_sec_qp {\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..e72f2ae0b 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,8 @@ 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\t/* No limit of number of sessions */\n+\t\tdev_info->sym.max_nb_sessions = 0;\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_ops.c b/drivers/crypto/mvsam/rte_mrvl_pmd_ops.c\nindex 3f8de37b7..07850098b 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,8 @@ 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\t/* No limit of number of sessions */\n+\t\tdev_info->sym.max_nb_sessions = 0;\n \t}\n }\n \ndiff --git a/drivers/crypto/null/null_crypto_pmd.c b/drivers/crypto/null/null_crypto_pmd.c\nindex 052b6546c..478ac0b62 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@@ -195,8 +194,7 @@ cryptodev_null_probe(struct rte_vdev_device *dev)\n \t\t\"\",\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\tRTE_CRYPTODEV_PMD_DEFAULT_MAX_NB_QUEUE_PAIRS\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..2842498af 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,8 @@ 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\t/* No limit of number of sessions */\n+\t\tdev_info->sym.max_nb_sessions = 0;\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..972e2adfe 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@@ -1686,8 +1685,7 @@ cryptodev_openssl_probe(struct rte_vdev_device *vdev)\n \t\t\"\",\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\tRTE_CRYPTODEV_PMD_DEFAULT_MAX_NB_QUEUE_PAIRS\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..d194e3657 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,8 @@ 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\t/* No limit of number of sessions */\n+\t\tdev_info->sym.max_nb_sessions = 0;\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_sym_pmd.c b/drivers/crypto/qat/qat_sym_pmd.c\nindex 0bc042a75..84dd5bec8 100644\n--- a/drivers/crypto/qat/qat_sym_pmd.c\n+++ b/drivers/crypto/qat/qat_sym_pmd.c\n@@ -72,8 +72,9 @@ static void qat_sym_dev_info_get(struct rte_cryptodev *dev,\n \t\t\tqat_qps_per_service(sym_hw_qps, QAT_SERVICE_SYMMETRIC);\n \t\tinfo->feature_flags = dev->feature_flags;\n \t\tinfo->capabilities = internals->qat_dev_capabilities;\n-\t\tinfo->sym.max_nb_sessions = QAT_SYM_PMD_MAX_NB_SESSIONS;\n \t\tinfo->driver_id = cryptodev_qat_driver_id;\n+\t\t/* No limit of number of sessions */\n+\t\tinfo->sym.max_nb_sessions = 0;\n \t}\n }\n \n@@ -243,8 +244,7 @@ qat_sym_dev_create(struct qat_pci_device *qat_pci_dev)\n \tstruct rte_cryptodev_pmd_init_params init_params = {\n \t\t\t.name = \"\",\n \t\t\t.socket_id = qat_pci_dev->pci_dev->device.numa_node,\n-\t\t\t.private_data_size = sizeof(struct qat_sym_dev_private),\n-\t\t\t.max_nb_sessions = QAT_SYM_PMD_MAX_NB_SESSIONS\n+\t\t\t.private_data_size = sizeof(struct qat_sym_dev_private)\n \t};\n \tchar name[RTE_CRYPTODEV_NAME_MAX_LEN];\n \tstruct rte_cryptodev *cryptodev;\ndiff --git a/drivers/crypto/qat/qat_sym_pmd.h b/drivers/crypto/qat/qat_sym_pmd.h\nindex 439aeb98a..d34328544 100644\n--- a/drivers/crypto/qat/qat_sym_pmd.h\n+++ b/drivers/crypto/qat/qat_sym_pmd.h\n@@ -14,7 +14,6 @@\n \n /**< Intel(R) QAT Symmetric Crypto PMD device name */\n #define CRYPTODEV_NAME_QAT_SYM_PMD\tcrypto_qat\n-#define QAT_SYM_PMD_MAX_NB_SESSIONS\t2048\n \n extern uint8_t cryptodev_qat_driver_id;\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..16a8021c8 100644\n--- a/drivers/crypto/scheduler/scheduler_pmd_ops.c\n+++ b/drivers/crypto/scheduler/scheduler_pmd_ops.c\n@@ -321,8 +321,7 @@ 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 max_nb_sess = 0;\n \tuint32_t i;\n \n \tif (!dev_info)\n@@ -338,17 +337,18 @@ 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\tuint32_t dev_max_sess = slave_info.sym.max_nb_sessions;\n+\t\tif (dev_max_sess != 0) {\n+\t\t\tif (max_nb_sess == 0 ||\tdev_max_sess < max_nb_sess)\n+\t\t\t\tmax_nb_sess = slave_info.sym.max_nb_sessions;\n+\t\t}\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+\tdev_info->sym.max_nb_sessions = max_nb_sess;\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..26dfbbc38 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@@ -573,8 +572,7 @@ cryptodev_snow3g_probe(struct rte_vdev_device *vdev)\n \t\t\"\",\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\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_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..6f8b9e2c6 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,8 @@ 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\t/* No limit of number of sessions */\n+\t\tdev_info->sym.max_nb_sessions = 0;\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..1da4ae871 100644\n--- a/drivers/crypto/virtio/virtio_cryptodev.c\n+++ b/drivers/crypto/virtio/virtio_cryptodev.c\n@@ -1411,8 +1411,8 @@ 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\t/* No limit of number of sessions */\n+\t\tinfo->sym.max_nb_sessions = 0;\n \t\tinfo->capabilities = hw->virtio_dev_capabilities;\n \t}\n }\n@@ -1425,8 +1425,7 @@ crypto_virtio_pci_probe(\n \tstruct rte_cryptodev_pmd_init_params init_params = {\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\t.private_data_size = sizeof(struct virtio_crypto_hw)\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..b39e35b9f 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,8 @@ 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\t/* No limit of number of sessions */\n+\t\tdev_info->sym.max_nb_sessions = 0;\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_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 db8b97665..1fb7e7d5e 100644\n--- a/lib/librte_cryptodev/rte_cryptodev_pmd.h\n+++ b/lib/librte_cryptodev/rte_cryptodev_pmd.h\n@@ -32,18 +32,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@@ -56,7 +53,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 */\n",
    "prefixes": [
        "v3",
        "09/16"
    ]
}