Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/86961/?format=api
https://patches.dpdk.org/api/patches/86961/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1611142175-409485-4-git-send-email-matan@nvidia.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": "<1611142175-409485-4-git-send-email-matan@nvidia.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1611142175-409485-4-git-send-email-matan@nvidia.com", "date": "2021-01-20T11:29:27", "name": "[v3,03/11] compress/mlx5: support basic control operations", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "0a170c02199dce5eb5c2e2958dd756830c834934", "submitter": { "id": 1911, "url": "https://patches.dpdk.org/api/people/1911/?format=api", "name": "Matan Azrad", "email": "matan@nvidia.com" }, "delegate": { "id": 6690, "url": "https://patches.dpdk.org/api/users/6690/?format=api", "username": "akhil", "first_name": "akhil", "last_name": "goyal", "email": "gakhil@marvell.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1611142175-409485-4-git-send-email-matan@nvidia.com/mbox/", "series": [ { "id": 14865, "url": "https://patches.dpdk.org/api/series/14865/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=14865", "date": "2021-01-20T11:29:24", "name": "add mlx5 compress PMD", "version": 3, "mbox": "https://patches.dpdk.org/series/14865/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/86961/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/86961/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 8A880A0A05;\n\tWed, 20 Jan 2021 12:30:23 +0100 (CET)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 787DD140D03;\n\tWed, 20 Jan 2021 12:30:23 +0100 (CET)", "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by mails.dpdk.org (Postfix) with ESMTP id 1FA2C140D07\n for <dev@dpdk.org>; Wed, 20 Jan 2021 12:30:22 +0100 (CET)", "from Internal Mail-Server by MTLPINE1 (envelope-from\n matan@nvidia.com) with SMTP; 20 Jan 2021 13:30:18 +0200", "from pegasus25.mtr.labs.mlnx. (pegasus25.mtr.labs.mlnx\n [10.210.16.10])\n by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 10KBTfXA001381;\n Wed, 20 Jan 2021 13:30:17 +0200" ], "From": "Matan Azrad <matan@nvidia.com>", "To": "dev@dpdk.org", "Cc": "Thomas Monjalon <thomas@monjalon.net>,\n Ashish Gupta <ashish.gupta@marvell.com>,\n Fiona Trahe <fiona.trahe@intel.com>, akhil.goyal@nxp.com", "Date": "Wed, 20 Jan 2021 11:29:27 +0000", "Message-Id": "<1611142175-409485-4-git-send-email-matan@nvidia.com>", "X-Mailer": "git-send-email 1.8.3.1", "In-Reply-To": "<1611142175-409485-1-git-send-email-matan@nvidia.com>", "References": "<1610554690-411627-1-git-send-email-matan@nvidia.com>\n <1611142175-409485-1-git-send-email-matan@nvidia.com>", "Subject": "[dpdk-dev] [PATCH v3 03/11] compress/mlx5: support basic control\n operations", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <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 <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Add initial support for the next operations:\n\t- dev_configure\n\t- dev_close\n\t- dev_infos_get\n\nSigned-off-by: Matan Azrad <matan@nvidia.com>\nAcked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>\n---\n drivers/compress/mlx5/mlx5_compress.c | 43 ++++++++++++++++++++++++++++++++---\n 1 file changed, 40 insertions(+), 3 deletions(-)", "diff": "diff --git a/drivers/compress/mlx5/mlx5_compress.c b/drivers/compress/mlx5/mlx5_compress.c\nindex 604044c..efb77d0 100644\n--- a/drivers/compress/mlx5/mlx5_compress.c\n+++ b/drivers/compress/mlx5/mlx5_compress.c\n@@ -21,6 +21,7 @@\n \n #define MLX5_COMPRESS_DRIVER_NAME mlx5_compress\n #define MLX5_COMPRESS_LOG_NAME pmd.compress.mlx5\n+#define MLX5_COMPRESS_MAX_QPS 1024\n \n struct mlx5_compress_priv {\n \tTAILQ_ENTRY(mlx5_compress_priv) next;\n@@ -32,6 +33,7 @@ struct mlx5_compress_priv {\n \tuint8_t min_block_size;\n \t/* Minimum huffman block size supported by the device. */\n \tstruct ibv_pd *pd;\n+\tstruct rte_compressdev_config dev_config;\n };\n \n TAILQ_HEAD(mlx5_compress_privs, mlx5_compress_priv) mlx5_compress_priv_list =\n@@ -40,12 +42,47 @@ struct mlx5_compress_priv {\n \n int mlx5_compress_logtype;\n \n+const struct rte_compressdev_capabilities mlx5_caps[RTE_COMP_ALGO_LIST_END];\n+\n+\n+static void\n+mlx5_compress_dev_info_get(struct rte_compressdev *dev,\n+\t\t\t struct rte_compressdev_info *info)\n+{\n+\tRTE_SET_USED(dev);\n+\tif (info != NULL) {\n+\t\tinfo->max_nb_queue_pairs = MLX5_COMPRESS_MAX_QPS;\n+\t\tinfo->feature_flags = RTE_COMPDEV_FF_HW_ACCELERATED;\n+\t\tinfo->capabilities = mlx5_caps;\n+\t}\n+}\n+\n+static int\n+mlx5_compress_dev_configure(struct rte_compressdev *dev,\n+\t\t\t struct rte_compressdev_config *config)\n+{\n+\tstruct mlx5_compress_priv *priv;\n+\n+\tif (dev == NULL || config == NULL)\n+\t\treturn -EINVAL;\n+\tpriv = dev->data->dev_private;\n+\tpriv->dev_config = *config;\n+\treturn 0;\n+}\n+\n+static int\n+mlx5_compress_dev_close(struct rte_compressdev *dev)\n+{\n+\tRTE_SET_USED(dev);\n+\treturn 0;\n+}\n+\n static struct rte_compressdev_ops mlx5_compress_ops = {\n-\t.dev_configure\t\t= NULL,\n+\t.dev_configure\t\t= mlx5_compress_dev_configure,\n \t.dev_start\t\t= NULL,\n \t.dev_stop\t\t= NULL,\n-\t.dev_close\t\t= NULL,\n-\t.dev_infos_get\t\t= NULL,\n+\t.dev_close\t\t= mlx5_compress_dev_close,\n+\t.dev_infos_get\t\t= mlx5_compress_dev_info_get,\n \t.stats_get\t\t= NULL,\n \t.stats_reset\t\t= NULL,\n \t.queue_pair_setup\t= NULL,\n", "prefixes": [ "v3", "03/11" ] }{ "id": 86961, "url": "