Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/41065/?format=api
https://patches.dpdk.org/api/patches/41065/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1528892062-4997-33-git-send-email-tomaszx.jozwiak@intel.com/", "project": { "id": 1, "url": "https://patches.dpdk.org/api/projects/1/?format=api", "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", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<1528892062-4997-33-git-send-email-tomaszx.jozwiak@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1528892062-4997-33-git-send-email-tomaszx.jozwiak@intel.com", "date": "2018-06-13T12:14:16", "name": "[v3,32/38] crypto/qat: add max PCI devices to config file", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "9a77473c180b29ae4be16c57d0273d8dce296b23", "submitter": { "id": 949, "url": "https://patches.dpdk.org/api/people/949/?format=api", "name": "Tomasz Jozwiak", "email": "tomaszx.jozwiak@intel.com" }, "delegate": { "id": 22, "url": "https://patches.dpdk.org/api/users/22/?format=api", "username": "pdelarag", "first_name": "Pablo", "last_name": "de Lara Guarch", "email": "pablo.de.lara.guarch@intel.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1528892062-4997-33-git-send-email-tomaszx.jozwiak@intel.com/mbox/", "series": [ { "id": 111, "url": "https://patches.dpdk.org/api/series/111/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=111", "date": "2018-06-13T12:13:44", "name": "crypto/qat: refactor to support multiple services", "version": 3, "mbox": "https://patches.dpdk.org/series/111/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/41065/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/41065/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 55EA21F01E;\n\tWed, 13 Jun 2018 14:15:55 +0200 (CEST)", "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n\tby dpdk.org (Postfix) with ESMTP id EA5611EF8E\n\tfor <dev@dpdk.org>; Wed, 13 Jun 2018 14:15:08 +0200 (CEST)", "from fmsmga001.fm.intel.com ([10.253.24.23])\n\tby fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t13 Jun 2018 05:15:08 -0700", "from tjozwiax-mobl.ger.corp.intel.com (HELO localhost.localdomain)\n\t([10.103.104.42])\n\tby fmsmga001.fm.intel.com with ESMTP; 13 Jun 2018 05:15:07 -0700" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.51,218,1526367600\"; d=\"scan'208\";a=\"63727844\"", "From": "Tomasz Jozwiak <tomaszx.jozwiak@intel.com>", "To": "fiona.trahe@intel.com,\n\ttomaszx.jozwiak@intel.com,\n\tdev@dpdk.org", "Date": "Wed, 13 Jun 2018 14:14:16 +0200", "Message-Id": "<1528892062-4997-33-git-send-email-tomaszx.jozwiak@intel.com>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1528892062-4997-1-git-send-email-tomaszx.jozwiak@intel.com>", "References": "<1523040732-3290-1-git-send-email-fiona.trahe@intel.com>\n\t<1528892062-4997-1-git-send-email-tomaszx.jozwiak@intel.com>", "Subject": "[dpdk-dev] [PATCH v3 32/38] crypto/qat: add max PCI devices to\n\tconfig file", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://dpdk.org/ml/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "From: Fiona Trahe <fiona.trahe@intel.com>\n\nAdded CONFIG_RTE_PMD_QAT_MAX_PCI_DEVICES to\nbuild config files.\n\nSigned-off-by: Tomasz Jozwiak <tomaszx.jozwiak@intel.com>\n---\n config/common_base | 5 ++++-\n config/rte_config.h | 2 ++\n drivers/crypto/qat/qat_device.c | 8 ++++----\n drivers/crypto/qat/qat_device.h | 2 --\n 4 files changed, 10 insertions(+), 7 deletions(-)", "diff": "diff --git a/config/common_base b/config/common_base\nindex 6b0d1cbbb..cf0741199 100644\n--- a/config/common_base\n+++ b/config/common_base\n@@ -495,7 +495,10 @@ CONFIG_RTE_LIBRTE_PMD_QAT_DEBUG_DRIVER=n\n # on a single QuickAssist device.\n #\n CONFIG_RTE_QAT_PMD_MAX_NB_SESSIONS=2048\n-\n+#\n+# Max. number of QuickAssist devices, which can be detected and attached\n+#\n+CONFIG_RTE_PMD_QAT_MAX_PCI_DEVICES=48\n #\n # Compile PMD for virtio crypto devices\n #\ndiff --git a/config/rte_config.h b/config/rte_config.h\nindex a1d01759e..e353d8d6d 100644\n--- a/config/rte_config.h\n+++ b/config/rte_config.h\n@@ -91,6 +91,8 @@\n */\n /* QuickAssist device */\n #define RTE_QAT_PMD_MAX_NB_SESSIONS 2048\n+/* Max. number of QuickAssist devices which can be attached */\n+#define RTE_PMD_QAT_MAX_PCI_DEVICES 48\n \n /* virtio crypto defines */\n #define RTE_VIRTIO_CRYPTO_PMD_MAX_NB_SESSIONS 1024\ndiff --git a/drivers/crypto/qat/qat_device.c b/drivers/crypto/qat/qat_device.c\nindex a0e414905..0cab2e928 100644\n--- a/drivers/crypto/qat/qat_device.c\n+++ b/drivers/crypto/qat/qat_device.c\n@@ -23,7 +23,7 @@ struct qat_gen_hw_data qat_gen_config[] = {\n };\n \n \n-static struct qat_pci_device qat_pci_devices[QAT_MAX_PCI_DEVICES];\n+static struct qat_pci_device qat_pci_devices[RTE_PMD_QAT_MAX_PCI_DEVICES];\n static int qat_nb_pci_devices;\n \n /*\n@@ -62,7 +62,7 @@ qat_pci_get_named_dev(const char *name)\n \tif (name == NULL)\n \t\treturn NULL;\n \n-\tfor (i = 0; i < QAT_MAX_PCI_DEVICES; i++) {\n+\tfor (i = 0; i < RTE_PMD_QAT_MAX_PCI_DEVICES; i++) {\n \t\tdev = &qat_pci_devices[i];\n \n \t\tif ((dev->attached == QAT_ATTACHED) &&\n@@ -78,7 +78,7 @@ qat_pci_find_free_device_index(void)\n {\n \tuint8_t dev_id;\n \n-\tfor (dev_id = 0; dev_id < QAT_MAX_PCI_DEVICES; dev_id++) {\n+\tfor (dev_id = 0; dev_id < RTE_PMD_QAT_MAX_PCI_DEVICES; dev_id++) {\n \t\tif (qat_pci_devices[dev_id].attached == QAT_DETACHED)\n \t\t\tbreak;\n \t}\n@@ -111,7 +111,7 @@ qat_pci_device_allocate(struct rte_pci_device *pci_dev)\n \t}\n \n \tqat_dev_id = qat_pci_find_free_device_index();\n-\tif (qat_dev_id == QAT_MAX_PCI_DEVICES) {\n+\tif (qat_dev_id == RTE_PMD_QAT_MAX_PCI_DEVICES) {\n \t\tPMD_DRV_LOG(ERR, \"Reached maximum number of QAT devices\");\n \t\treturn NULL;\n \t}\ndiff --git a/drivers/crypto/qat/qat_device.h b/drivers/crypto/qat/qat_device.h\nindex 3df6520c3..e18c8a706 100644\n--- a/drivers/crypto/qat/qat_device.h\n+++ b/drivers/crypto/qat/qat_device.h\n@@ -11,11 +11,9 @@\n #include \"adf_transport_access_macros.h\"\n #include \"qat_qp.h\"\n \n-\n #define QAT_DETACHED (0)\n #define QAT_ATTACHED (1)\n \n-#define QAT_MAX_PCI_DEVICES\t48\n #define QAT_DEV_NAME_MAX_LEN\t64\n \n /*\n", "prefixes": [ "v3", "32/38" ] }{ "id": 41065, "url": "