Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/43530/?format=api
http://patches.dpdk.org/api/patches/43530/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1533222566-17685-2-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": "<1533222566-17685-2-git-send-email-tomaszx.jozwiak@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1533222566-17685-2-git-send-email-tomaszx.jozwiak@intel.com", "date": "2018-08-02T15:09:25", "name": "[1/2] compress/qat: fix buffer lengths in offset case", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "cfbd76dcb4e37e1b971d76854db4369236f2e050", "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/1533222566-17685-2-git-send-email-tomaszx.jozwiak@intel.com/mbox/", "series": [ { "id": 881, "url": "http://patches.dpdk.org/api/series/881/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=881", "date": "2018-08-02T15:09:24", "name": "common/qat: handle offset greater than first sgl segment", "version": 1, "mbox": "http://patches.dpdk.org/series/881/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/43530/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/43530/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 C38871B4DE;\n\tThu, 2 Aug 2018 17:09:35 +0200 (CEST)", "from mga05.intel.com (mga05.intel.com [192.55.52.43])\n\tby dpdk.org (Postfix) with ESMTP id AA6BB1B4D2\n\tfor <dev@dpdk.org>; Thu, 2 Aug 2018 17:09:32 +0200 (CEST)", "from fmsmga001.fm.intel.com ([10.253.24.23])\n\tby fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t02 Aug 2018 08:09:30 -0700", "from tjozwiax-mobl.ger.corp.intel.com (HELO localhost.localdomain)\n\t([10.103.104.43])\n\tby fmsmga001.fm.intel.com with ESMTP; 02 Aug 2018 08:09:29 -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,436,1526367600\"; d=\"scan'208\";a=\"77750107\"", "From": "Tomasz Jozwiak <tomaszx.jozwiak@intel.com>", "To": "pablo.de.lara.guarch@intel.com, dev@dpdk.org, fiona.trahe@intel.com,\n\ttomaszx.jozwiak@intel.com", "Date": "Thu, 2 Aug 2018 17:09:25 +0200", "Message-Id": "<1533222566-17685-2-git-send-email-tomaszx.jozwiak@intel.com>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1533222566-17685-1-git-send-email-tomaszx.jozwiak@intel.com>", "References": "<1533222566-17685-1-git-send-email-tomaszx.jozwiak@intel.com>", "Subject": "[dpdk-dev] [PATCH 1/2] compress/qat: fix buffer lengths in offset\n\tcase", "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://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Fixed lengths for src and dest buffers\n\nFixes: 32842f2a6d7d (\"compress/qat: create FW request and process response\")\n\nSigned-off-by: Tomasz Jozwiak <tomaszx.jozwiak@intel.com>\nAcked-by: Fiona Trahe <fiona.trahe@intel.com>\n---\n drivers/compress/qat/qat_comp.c | 8 +++++---\n 1 file changed, 5 insertions(+), 3 deletions(-)", "diff": "diff --git a/drivers/compress/qat/qat_comp.c b/drivers/compress/qat/qat_comp.c\nindex cbf7614..522edfc 100644\n--- a/drivers/compress/qat/qat_comp.c\n+++ b/drivers/compress/qat/qat_comp.c\n@@ -44,7 +44,8 @@ qat_comp_build_request(void *in_op, uint8_t *out_msg,\n \n \t/* common for sgl and flat buffers */\n \tcomp_req->comp_pars.comp_len = op->src.length;\n-\tcomp_req->comp_pars.out_buffer_sz = rte_pktmbuf_pkt_len(op->m_dst);\n+\tcomp_req->comp_pars.out_buffer_sz = rte_pktmbuf_pkt_len(op->m_dst) -\n+\t\t\top->dst.offset;\n \n \tif (op->m_src->next != NULL || op->m_dst->next != NULL) {\n \t\t/* sgl */\n@@ -85,8 +86,9 @@ qat_comp_build_request(void *in_op, uint8_t *out_msg,\n \t\t/* flat aka linear buffer */\n \t\tICP_QAT_FW_COMN_PTR_TYPE_SET(comp_req->comn_hdr.comn_req_flags,\n \t\t\t\tQAT_COMN_PTR_TYPE_FLAT);\n-\t\tcomp_req->comn_mid.src_length = rte_pktmbuf_data_len(op->m_src);\n-\t\tcomp_req->comn_mid.dst_length = rte_pktmbuf_data_len(op->m_dst);\n+\t\tcomp_req->comn_mid.src_length = op->src.length;\n+\t\tcomp_req->comn_mid.dst_length =\n+\t\t\t\tcomp_req->comp_pars.out_buffer_sz;\n \n \t\tcomp_req->comn_mid.src_data_addr =\n \t\t rte_pktmbuf_mtophys_offset(op->m_src, op->src.offset);\n", "prefixes": [ "1/2" ] }{ "id": 43530, "url": "