get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 41049,
    "url": "http://patches.dpdk.org/api/patches/41049/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1528892062-4997-17-git-send-email-tomaszx.jozwiak@intel.com/",
    "project": {
        "id": 1,
        "url": "http://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-17-git-send-email-tomaszx.jozwiak@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1528892062-4997-17-git-send-email-tomaszx.jozwiak@intel.com",
    "date": "2018-06-13T12:14:00",
    "name": "[v3,16/38] crypto/qat: rename sgl related objects",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "8b5eeb8c4bf46f6f96ec71abdef288d9a220f520",
    "submitter": {
        "id": 949,
        "url": "http://patches.dpdk.org/api/people/949/?format=api",
        "name": "Tomasz Jozwiak",
        "email": "tomaszx.jozwiak@intel.com"
    },
    "delegate": {
        "id": 22,
        "url": "http://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": "http://patches.dpdk.org/project/dpdk/patch/1528892062-4997-17-git-send-email-tomaszx.jozwiak@intel.com/mbox/",
    "series": [
        {
            "id": 111,
            "url": "http://patches.dpdk.org/api/series/111/?format=api",
            "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/41049/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/41049/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "X-BeenThere": "dev@dpdk.org",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "From": "Tomasz Jozwiak <tomaszx.jozwiak@intel.com>",
        "To": "fiona.trahe@intel.com,\n\ttomaszx.jozwiak@intel.com,\n\tdev@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "X-Amp-File-Uploaded": "False",
        "References": "<1523040732-3290-1-git-send-email-fiona.trahe@intel.com>\n\t<1528892062-4997-1-git-send-email-tomaszx.jozwiak@intel.com>",
        "In-Reply-To": "<1528892062-4997-1-git-send-email-tomaszx.jozwiak@intel.com>",
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "List-Subscribe": "<https://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "X-Mailer": "git-send-email 2.7.4",
        "List-Unsubscribe": "<https://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 1231E1EF8E;\n\tWed, 13 Jun 2018 14:15:10 +0200 (CEST)",
            "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n\tby dpdk.org (Postfix) with ESMTP id EED281EF36\n\tfor <dev@dpdk.org>; Wed, 13 Jun 2018 14:15:00 +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:14:58 -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:14:47 -0700"
        ],
        "X-Original-To": "patchwork@dpdk.org",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "X-Mailman-Version": "2.1.15",
        "X-ExtLoop1": "1",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "Errors-To": "dev-bounces@dpdk.org",
        "X-IronPort-AV": "E=Sophos;i=\"5.51,218,1526367600\"; d=\"scan'208\";a=\"63727717\"",
        "Subject": "[dpdk-dev] [PATCH v3 16/38] crypto/qat: rename sgl related objects",
        "Date": "Wed, 13 Jun 2018 14:14:00 +0200",
        "Message-Id": "<1528892062-4997-17-git-send-email-tomaszx.jozwiak@intel.com>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "Precedence": "list"
    },
    "content": "From: Fiona Trahe <fiona.trahe@intel.com>\n\nChange SGL (Scatter-Gather List) related structs and member names\n\nSigned-off-by: ArkadiuszX Kusztal <arkadiuszx.kusztal@intel.com>\n---\n drivers/crypto/qat/qat_common.h | 10 +++++-----\n drivers/crypto/qat/qat_sym.c    | 28 ++++++++++++++--------------\n 2 files changed, 19 insertions(+), 19 deletions(-)",
    "diff": "diff --git a/drivers/crypto/qat/qat_common.h b/drivers/crypto/qat/qat_common.h\nindex c3e7bd9a7..193639550 100644\n--- a/drivers/crypto/qat/qat_common.h\n+++ b/drivers/crypto/qat/qat_common.h\n@@ -32,22 +32,22 @@ enum qat_service_type {\n #define QAT_MAX_SERVICES\t\t(QAT_SERVICE_INVALID)\n \n /**< Common struct for scatter-gather list operations */\n-struct qat_alg_buf {\n+struct qat_flat_buf {\n \tuint32_t len;\n \tuint32_t resrvd;\n \tuint64_t addr;\n } __rte_packed;\n \n-struct qat_alg_buf_list {\n+struct qat_sgl {\n \tuint64_t resrvd;\n \tuint32_t num_bufs;\n \tuint32_t num_mapped_bufs;\n-\tstruct qat_alg_buf bufers[QAT_SGL_MAX_NUMBER];\n+\tstruct qat_flat_buf buffers[QAT_SGL_MAX_NUMBER];\n } __rte_packed __rte_cache_aligned;\n \n struct qat_sym_op_cookie {\n-\tstruct qat_alg_buf_list qat_sgl_list_src;\n-\tstruct qat_alg_buf_list qat_sgl_list_dst;\n+\tstruct qat_sgl qat_sgl_src;\n+\tstruct qat_sgl qat_sgl_dst;\n \tphys_addr_t qat_sgl_src_phys_addr;\n \tphys_addr_t qat_sgl_dst_phys_addr;\n };\ndiff --git a/drivers/crypto/qat/qat_sym.c b/drivers/crypto/qat/qat_sym.c\nindex e448dc859..a9beff064 100644\n--- a/drivers/crypto/qat/qat_sym.c\n+++ b/drivers/crypto/qat/qat_sym.c\n@@ -250,20 +250,20 @@ qat_sym_pmd_dequeue_op_burst(void *qp, struct rte_crypto_op **ops,\n \n static inline int\n qat_sgl_fill_array(struct rte_mbuf *buf, uint64_t buff_start,\n-\t\tstruct qat_alg_buf_list *list, uint32_t data_len)\n+\t\tstruct qat_sgl *list, uint32_t data_len)\n {\n \tint nr = 1;\n \n \tuint32_t buf_len = rte_pktmbuf_iova(buf) -\n \t\t\tbuff_start + rte_pktmbuf_data_len(buf);\n \n-\tlist->bufers[0].addr = buff_start;\n-\tlist->bufers[0].resrvd = 0;\n-\tlist->bufers[0].len = buf_len;\n+\tlist->buffers[0].addr = buff_start;\n+\tlist->buffers[0].resrvd = 0;\n+\tlist->buffers[0].len = buf_len;\n \n \tif (data_len <= buf_len) {\n \t\tlist->num_bufs = nr;\n-\t\tlist->bufers[0].len = data_len;\n+\t\tlist->buffers[0].len = data_len;\n \t\treturn 0;\n \t}\n \n@@ -276,15 +276,15 @@ qat_sgl_fill_array(struct rte_mbuf *buf, uint64_t buff_start,\n \t\t\treturn -EINVAL;\n \t\t}\n \n-\t\tlist->bufers[nr].len = rte_pktmbuf_data_len(buf);\n-\t\tlist->bufers[nr].resrvd = 0;\n-\t\tlist->bufers[nr].addr = rte_pktmbuf_iova(buf);\n+\t\tlist->buffers[nr].len = rte_pktmbuf_data_len(buf);\n+\t\tlist->buffers[nr].resrvd = 0;\n+\t\tlist->buffers[nr].addr = rte_pktmbuf_iova(buf);\n \n-\t\tbuf_len += list->bufers[nr].len;\n+\t\tbuf_len += list->buffers[nr].len;\n \t\tbuf = buf->next;\n \n \t\tif (buf_len > data_len) {\n-\t\t\tlist->bufers[nr].len -=\n+\t\t\tlist->buffers[nr].len -=\n \t\t\t\tbuf_len - data_len;\n \t\t\tbuf = NULL;\n \t\t}\n@@ -695,7 +695,7 @@ qat_sym_build_request(void *in_op, uint8_t *out_msg,\n \t\tICP_QAT_FW_COMN_PTR_TYPE_SET(qat_req->comn_hdr.comn_req_flags,\n \t\t\t\tQAT_COMN_PTR_TYPE_SGL);\n \t\tret = qat_sgl_fill_array(op->sym->m_src, src_buf_start,\n-\t\t\t\t&cookie->qat_sgl_list_src,\n+\t\t\t\t&cookie->qat_sgl_src,\n \t\t\t\tqat_req->comn_mid.src_length);\n \t\tif (ret) {\n \t\t\tPMD_DRV_LOG(ERR, \"QAT PMD Cannot fill sgl array\");\n@@ -709,7 +709,7 @@ qat_sym_build_request(void *in_op, uint8_t *out_msg,\n \t\telse {\n \t\t\tret = qat_sgl_fill_array(op->sym->m_dst,\n \t\t\t\t\tdst_buf_start,\n-\t\t\t\t\t&cookie->qat_sgl_list_dst,\n+\t\t\t\t\t&cookie->qat_sgl_dst,\n \t\t\t\t\t\tqat_req->comn_mid.dst_length);\n \n \t\t\tif (ret) {\n@@ -859,12 +859,12 @@ int qat_sym_qp_setup(struct rte_cryptodev *dev, uint16_t qp_id,\n \t\tsql_cookie->qat_sgl_src_phys_addr =\n \t\t\t\trte_mempool_virt2iova(sql_cookie) +\n \t\t\t\toffsetof(struct qat_sym_op_cookie,\n-\t\t\t\tqat_sgl_list_src);\n+\t\t\t\tqat_sgl_src);\n \n \t\tsql_cookie->qat_sgl_dst_phys_addr =\n \t\t\t\trte_mempool_virt2iova(sql_cookie) +\n \t\t\t\toffsetof(struct qat_sym_op_cookie,\n-\t\t\t\tqat_sgl_list_dst);\n+\t\t\t\tqat_sgl_dst);\n \t}\n \n \treturn ret;\n",
    "prefixes": [
        "v3",
        "16/38"
    ]
}