Show a patch.

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

{
    "id": 41065,
    "url": "http://patches.dpdk.org/api/patches/41065/",
    "web_url": "http://patches.dpdk.org/patch/41065/",
    "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": "<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": "http://patches.dpdk.org/api/people/949/",
        "name": "Tomasz Jozwiak",
        "email": "tomaszx.jozwiak@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/41065/mbox/",
    "series": [
        {
            "id": 111,
            "url": "http://patches.dpdk.org/api/series/111/",
            "web_url": "http://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": "http://patches.dpdk.org/series/111/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/41065/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/41065/checks/",
    "tags": {},
    "headers": {
        "X-Mailer": "git-send-email 2.7.4",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "Precedence": "list",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "Date": "Wed, 13 Jun 2018 14:14:16 +0200",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Delivered-To": "patchwork@dpdk.org",
        "List-Subscribe": "<https://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "To": "fiona.trahe@intel.com,\n\ttomaszx.jozwiak@intel.com,\n\tdev@dpdk.org",
        "Errors-To": "dev-bounces@dpdk.org",
        "References": "<1523040732-3290-1-git-send-email-fiona.trahe@intel.com>\n\t<1528892062-4997-1-git-send-email-tomaszx.jozwiak@intel.com>",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "From": "Tomasz Jozwiak <tomaszx.jozwiak@intel.com>",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-IronPort-AV": "E=Sophos;i=\"5.51,218,1526367600\"; d=\"scan'208\";a=\"63727844\"",
        "List-Post": "<mailto:dev@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"
        ],
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "X-Amp-File-Uploaded": "False",
        "Subject": "[dpdk-dev] [PATCH v3 32/38] crypto/qat: add max PCI devices to\n\tconfig file",
        "In-Reply-To": "<1528892062-4997-1-git-send-email-tomaszx.jozwiak@intel.com>",
        "Message-Id": "<1528892062-4997-33-git-send-email-tomaszx.jozwiak@intel.com>",
        "X-ExtLoop1": "1",
        "List-Unsubscribe": "<https://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "X-Original-To": "patchwork@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"
    ]
}