Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/86285/?format=api
http://patchwork.dpdk.org/api/patches/86285/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/1610373560-253158-4-git-send-email-matan@nvidia.com/", "project": { "id": 1, "url": "http://patchwork.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": "<1610373560-253158-4-git-send-email-matan@nvidia.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1610373560-253158-4-git-send-email-matan@nvidia.com", "date": "2021-01-11T13:59:13", "name": "[03/10] compress/mlx5: support basic control operations", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "0bf9d2aeabfb26f77b2ce7f3ae48bac7363789eb", "submitter": { "id": 1911, "url": "http://patchwork.dpdk.org/api/people/1911/?format=api", "name": "Matan Azrad", "email": "matan@nvidia.com" }, "delegate": { "id": 6690, "url": "http://patchwork.dpdk.org/api/users/6690/?format=api", "username": "akhil", "first_name": "akhil", "last_name": "goyal", "email": "gakhil@marvell.com" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/1610373560-253158-4-git-send-email-matan@nvidia.com/mbox/", "series": [ { "id": 14634, "url": "http://patchwork.dpdk.org/api/series/14634/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=14634", "date": "2021-01-11T13:59:10", "name": "add mlx5 compress PMD", "version": 1, "mbox": "http://patchwork.dpdk.org/series/14634/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/86285/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/86285/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 DFD0CA09FF;\n\tMon, 11 Jan 2021 14:59:52 +0100 (CET)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id EEF88140D02;\n\tMon, 11 Jan 2021 14:59:39 +0100 (CET)", "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by mails.dpdk.org (Postfix) with ESMTP id 56BFC140CF8\n for <dev@dpdk.org>; Mon, 11 Jan 2021 14:59:37 +0100 (CET)", "from Internal Mail-Server by MTLPINE1 (envelope-from\n matan@nvidia.com) with SMTP; 11 Jan 2021 15:59:36 +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 10BDxPKK010436;\n Mon, 11 Jan 2021 15:59:36 +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>", "Date": "Mon, 11 Jan 2021 13:59:13 +0000", "Message-Id": "<1610373560-253158-4-git-send-email-matan@nvidia.com>", "X-Mailer": "git-send-email 1.8.3.1", "In-Reply-To": "<1610373560-253158-1-git-send-email-matan@nvidia.com>", "References": "<1610373560-253158-1-git-send-email-matan@nvidia.com>", "Subject": "[dpdk-dev] [PATCH 03/10] 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\tdev_configure\n\tdev_close\n\tdev_infos_get\n\nSigned-off-by: Matan Azrad <matan@nvidia.com>\n---\n drivers/compress/mlx5/mlx5_compress.c | 41 ++++++++++++++++++++++++++++++++---\n 1 file changed, 38 insertions(+), 3 deletions(-)", "diff": "diff --git a/drivers/compress/mlx5/mlx5_compress.c b/drivers/compress/mlx5/mlx5_compress.c\nindex 639dd61..7148798 100644\n--- a/drivers/compress/mlx5/mlx5_compress.c\n+++ b/drivers/compress/mlx5/mlx5_compress.c\n@@ -32,20 +32,55 @@ 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+#define MLX5_COMPRESS_MAX_QPS 1024\n+\n TAILQ_HEAD(mlx5_compress_privs, mlx5_compress_priv) mlx5_compress_priv_list =\n \t\t\t\tTAILQ_HEAD_INITIALIZER(mlx5_compress_priv_list);\n static pthread_mutex_t priv_list_lock = PTHREAD_MUTEX_INITIALIZER;\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 = dev->data->dev_private;\n+\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": [ "03/10" ] }{ "id": 86285, "url": "