Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/42848/?format=api
http://patches.dpdk.org/api/patches/42848/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1531310229-17448-14-git-send-email-fiona.trahe@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": "<1531310229-17448-14-git-send-email-fiona.trahe@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1531310229-17448-14-git-send-email-fiona.trahe@intel.com", "date": "2018-07-11T11:57:06", "name": "[v5,13/16] compress/qat: create and populate the ops structure", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "96a4ebd5f3d19d49c7ad4be85e81bd50a9ed7b2e", "submitter": { "id": 423, "url": "http://patches.dpdk.org/api/people/423/?format=api", "name": "Fiona Trahe", "email": "fiona.trahe@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/1531310229-17448-14-git-send-email-fiona.trahe@intel.com/mbox/", "series": [ { "id": 481, "url": "http://patches.dpdk.org/api/series/481/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=481", "date": "2018-07-10T00:41:35", "name": "compress/qat: add compression PMD", "version": 4, "mbox": "http://patches.dpdk.org/series/481/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/42848/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/42848/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 8D7A41B5CD;\n\tWed, 11 Jul 2018 13:58:24 +0200 (CEST)", "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n\tby dpdk.org (Postfix) with ESMTP id 7CF9F1B590\n\tfor <dev@dpdk.org>; Wed, 11 Jul 2018 13:57:58 +0200 (CEST)", "from fmsmga008.fm.intel.com ([10.253.24.58])\n\tby fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t11 Jul 2018 04:57:55 -0700", "from sivswdev01.ir.intel.com (HELO localhost.localdomain)\n\t([10.237.217.45])\n\tby fmsmga008.fm.intel.com with ESMTP; 11 Jul 2018 04:57:46 -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,338,1526367600\"; d=\"scan'208\";a=\"54214122\"", "From": "Fiona Trahe <fiona.trahe@intel.com>", "To": "dev@dpdk.org", "Cc": "pablo.de.lara.guarch@intel.com, fiona.trahe@intel.com,\n\ttomaszx.jozwiak@intel.com", "Date": "Wed, 11 Jul 2018 12:57:06 +0100", "Message-Id": "<1531310229-17448-14-git-send-email-fiona.trahe@intel.com>", "X-Mailer": "git-send-email 1.7.0.7", "In-Reply-To": "<1531183311-32619-1-git-send-email-fiona.trahe@intel.com>", "References": "<1531183311-32619-1-git-send-email-fiona.trahe@intel.com>", "Subject": "[dpdk-dev] [PATCH v5 13/16] compress/qat: create and populate the\n\tops structure", "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": "Create an ops structure and populate it with the\nqat-specific functions.\n\n\nSigned-off-by: Fiona Trahe <fiona.trahe@intel.com>\nSigned-off-by: Tomasz Jozwiak <tomaszx.jozwiak@intel.com>\n---\n drivers/compress/qat/qat_comp_pmd.c | 38 ++++++++++++++++++++++++++++---------\n drivers/compress/qat/qat_comp_pmd.h | 30 -----------------------------\n 2 files changed, 29 insertions(+), 39 deletions(-)", "diff": "diff --git a/drivers/compress/qat/qat_comp_pmd.c b/drivers/compress/qat/qat_comp_pmd.c\nindex 1ab5cf7..013ff6e 100644\n--- a/drivers/compress/qat/qat_comp_pmd.c\n+++ b/drivers/compress/qat/qat_comp_pmd.c\n@@ -5,7 +5,7 @@\n #include \"qat_comp.h\"\n #include \"qat_comp_pmd.h\"\n \n-void\n+static void\n qat_comp_stats_get(struct rte_compressdev *dev,\n \t\tstruct rte_compressdev_stats *stats)\n {\n@@ -25,7 +25,7 @@ qat_comp_stats_get(struct rte_compressdev *dev,\n \tstats->dequeue_err_count = qat_stats.dequeue_err_count;\n }\n \n-void\n+static void\n qat_comp_stats_reset(struct rte_compressdev *dev)\n {\n \tstruct qat_comp_dev_private *qat_priv;\n@@ -40,7 +40,7 @@ qat_comp_stats_reset(struct rte_compressdev *dev)\n \n }\n \n-int\n+static int\n qat_comp_qp_release(struct rte_compressdev *dev, uint16_t queue_pair_id)\n {\n \tstruct qat_comp_dev_private *qat_private = dev->data->dev_private;\n@@ -55,7 +55,7 @@ qat_comp_qp_release(struct rte_compressdev *dev, uint16_t queue_pair_id)\n \t\t\t&(dev->data->queue_pairs[queue_pair_id]));\n }\n \n-int\n+static int\n qat_comp_qp_setup(struct rte_compressdev *dev, uint16_t qp_id,\n \t\t uint32_t max_inflight_ops, int socket_id)\n {\n@@ -149,7 +149,7 @@ _qat_comp_dev_config_clear(struct qat_comp_dev_private *comp_dev)\n \t}\n }\n \n-int\n+static int\n qat_comp_dev_config(struct rte_compressdev *dev,\n \t\tstruct rte_compressdev_config *config)\n {\n@@ -176,19 +176,19 @@ qat_comp_dev_config(struct rte_compressdev *dev,\n \treturn ret;\n }\n \n-int\n+static int\n qat_comp_dev_start(struct rte_compressdev *dev __rte_unused)\n {\n \treturn 0;\n }\n \n-void\n+static void\n qat_comp_dev_stop(struct rte_compressdev *dev __rte_unused)\n {\n \n }\n \n-int\n+static int\n qat_comp_dev_close(struct rte_compressdev *dev)\n {\n \tint i;\n@@ -207,7 +207,7 @@ qat_comp_dev_close(struct rte_compressdev *dev)\n }\n \n \n-void\n+static void\n qat_comp_dev_info_get(struct rte_compressdev *dev,\n \t\t\tstruct rte_compressdev_info *info)\n {\n@@ -238,3 +238,23 @@ qat_comp_pmd_dequeue_op_burst(void *qp, struct rte_comp_op **ops,\n {\n \treturn qat_dequeue_op_burst(qp, (void **)ops, nb_ops);\n }\n+\n+\n+struct rte_compressdev_ops compress_qat_ops = {\n+\n+\t/* Device related operations */\n+\t.dev_configure\t\t= qat_comp_dev_config,\n+\t.dev_start\t\t= qat_comp_dev_start,\n+\t.dev_stop\t\t= qat_comp_dev_stop,\n+\t.dev_close\t\t= qat_comp_dev_close,\n+\t.dev_infos_get\t\t= qat_comp_dev_info_get,\n+\n+\t.stats_get\t\t= qat_comp_stats_get,\n+\t.stats_reset\t\t= qat_comp_stats_reset,\n+\t.queue_pair_setup\t= qat_comp_qp_setup,\n+\t.queue_pair_release\t= qat_comp_qp_release,\n+\n+\t/* Compression related operations */\n+\t.private_xform_create\t= qat_comp_private_xform_create,\n+\t.private_xform_free\t= qat_comp_private_xform_free\n+};\ndiff --git a/drivers/compress/qat/qat_comp_pmd.h b/drivers/compress/qat/qat_comp_pmd.h\nindex 22cbefb..7ba1b8d 100644\n--- a/drivers/compress/qat/qat_comp_pmd.h\n+++ b/drivers/compress/qat/qat_comp_pmd.h\n@@ -30,30 +30,6 @@ struct qat_comp_dev_private {\n \n };\n \n-void\n-qat_comp_stats_reset(struct rte_compressdev *dev);\n-\n-void\n-qat_comp_stats_get(struct rte_compressdev *dev,\n-\t\tstruct rte_compressdev_stats *stats);\n-int\n-qat_comp_qp_release(struct rte_compressdev *dev, uint16_t queue_pair_id);\n-\n-int\n-qat_comp_qp_setup(struct rte_compressdev *dev, uint16_t qp_id,\n-\t\t uint32_t max_inflight_ops, int socket_id);\n-\n-int\n-qat_comp_dev_config(struct rte_compressdev *dev,\n-\t\tstruct rte_compressdev_config *config);\n-\n-int\n-qat_comp_dev_close(struct rte_compressdev *dev);\n-\n-void\n-qat_comp_dev_info_get(struct rte_compressdev *dev,\n-\t\t\tstruct rte_compressdev_info *info);\n-\n uint16_t\n qat_comp_pmd_enqueue_op_burst(void *qp, struct rte_comp_op **ops,\n \t\tuint16_t nb_ops);\n@@ -62,11 +38,5 @@ uint16_t\n qat_comp_pmd_dequeue_op_burst(void *qp, struct rte_comp_op **ops,\n \t\tuint16_t nb_ops);\n \n-int\n-qat_comp_dev_start(struct rte_compressdev *dev __rte_unused);\n-\n-void\n-qat_comp_dev_stop(struct rte_compressdev *dev __rte_unused);\n-\n #endif\n #endif /* _QAT_COMP_PMD_H_ */\n", "prefixes": [ "v5", "13/16" ] }{ "id": 42848, "url": "