Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/100774/?format=api
http://patches.dpdk.org/api/patches/100774/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20211007184350.73858-7-srikanth.k@oneconvergence.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": "<20211007184350.73858-7-srikanth.k@oneconvergence.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20211007184350.73858-7-srikanth.k@oneconvergence.com", "date": "2021-10-07T18:43:15", "name": "[v2,06/41] net/mlx5: implement device attribute getter", "commit_ref": null, "pull_url": null, "state": "deferred", "archived": false, "hash": "5bb37c907476d73585a0c759ef5a853caee37b49", "submitter": { "id": 2368, "url": "http://patches.dpdk.org/api/people/2368/?format=api", "name": "Srikanth Kaka", "email": "srikanth.k@oneconvergence.com" }, "delegate": { "id": 3268, "url": "http://patches.dpdk.org/api/users/3268/?format=api", "username": "rasland", "first_name": "Raslan", "last_name": "Darawsheh", "email": "rasland@nvidia.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20211007184350.73858-7-srikanth.k@oneconvergence.com/mbox/", "series": [ { "id": 19455, "url": "http://patches.dpdk.org/api/series/19455/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=19455", "date": "2021-10-07T18:43:09", "name": "add MLX5 FreeBSD support", "version": 2, "mbox": "http://patches.dpdk.org/series/19455/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/100774/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/100774/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 3EC69A034F;\n\tFri, 8 Oct 2021 12:56:31 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id C4BD041149;\n\tFri, 8 Oct 2021 12:56:03 +0200 (CEST)", "from mail-pl1-f182.google.com (mail-pl1-f182.google.com\n [209.85.214.182])\n by mails.dpdk.org (Postfix) with ESMTP id 3BB32411E0\n for <dev@dpdk.org>; Thu, 7 Oct 2021 20:44:30 +0200 (CEST)", "by mail-pl1-f182.google.com with SMTP id w14so4539464pll.2\n for <dev@dpdk.org>; Thu, 07 Oct 2021 11:44:30 -0700 (PDT)", "from srikanth-ThinkPad-T450.domain.name ([136.185.113.102])\n by smtp.gmail.com with ESMTPSA id c11sm3311586pji.38.2021.10.07.11.44.26\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 07 Oct 2021 11:44:29 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=oneconvergence.com; s=google;\n h=from:to:cc:subject:date:message-id:in-reply-to:references\n :mime-version:content-transfer-encoding;\n bh=+zmttJFKMm6EkDb0+rcX8RQxCWzD8OccSX79PjTDFjs=;\n b=Szh7gtg2eyJBrpIw911tD6vl6Sv+3rWqyRlU49An1wp1HmJlC+Pd39Z29VA4yyrgth\n qzPH8DZo6B/8Q3p7uYfyW7AdwteHfvdK0evxiwLg4m4WJ3YtTuwqNbdvl/V/n+9IVJL/\n DQFmEjoRUGWS6AyI2+/SSVPYFY/aMhycvJ/FE=", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20210112;\n h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n :references:mime-version:content-transfer-encoding;\n bh=+zmttJFKMm6EkDb0+rcX8RQxCWzD8OccSX79PjTDFjs=;\n b=bUU/bv9vyB9a0VQUcqlRUC0HoIK+EGe6168JA+FYGxMkduM5cmHpK3mW8s5OWL5PUg\n 5At4i3EsQAqr68+OEcYqfma/JsjOCyYAecVsHRlCVN2FxRnmnuICUm32c6h0nYdXx/Qu\n 4Q7fPSA9IcnK6hCTUQM7KTYUNL4dPk0eZRlJnzPKbnLgZRIumniqPHz6O+QMAZ/Spmy+\n qWtT2Jpwn+Kvb1Zu4/9fKhGPiWIJiAD2ddXqurqEp0KqBg7yUXtPXYKnqHwRtX9z5D3V\n p7jPxWgyn2mOPctANJe9nvyL7LXQTAWzzv63VfmthsffAbzITHiP4rqutp4c3GDjKBZA\n YdAw==", "X-Gm-Message-State": "AOAM5304918sq8ZW7phWW8rBpH+Cduia6dzs1/3KpxsuCQYZBmOHjNGX\n MnSEkox2BUZWbGPaPq/E5hvprg==", "X-Google-Smtp-Source": "\n ABdhPJxcPlP79RwZqYE7hrUJkYTxlgqA6dvLwvosa6YizcVO7m7EZevTD6BiwlUvcK//L/V5eBtfaw==", "X-Received": "by 2002:a17:90a:d254:: with SMTP id\n o20mr7155053pjw.226.1633632269523;\n Thu, 07 Oct 2021 11:44:29 -0700 (PDT)", "From": "Srikanth Kaka <srikanth.k@oneconvergence.com>", "To": "Matan Azrad <matan@nvidia.com>,\n Viacheslav Ovsiienko <viacheslavo@nvidia.com>", "Cc": "dev@dpdk.org, Vag Singh <vag.singh@oneconvergence.com>,\n Anand Thulasiram <avelu@juniper.net>,\n Srikanth Kaka <srikanth.k@oneconvergence.com>", "Date": "Fri, 8 Oct 2021 00:13:15 +0530", "Message-Id": "<20211007184350.73858-7-srikanth.k@oneconvergence.com>", "X-Mailer": "git-send-email 2.30.2", "In-Reply-To": "<20211007184350.73858-1-srikanth.k@oneconvergence.com>", "References": "<20211007184350.73858-1-srikanth.k@oneconvergence.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-Mailman-Approved-At": "Fri, 08 Oct 2021 12:55:54 +0200", "Subject": "[dpdk-dev] [PATCH v2 06/41] net/mlx5: implement device attribute\n getter", "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": "Adds FreeBSD version of mlx5_os_get_dev_attr. It is same as\nthe Linux definition\n\nSigned-off-by: Srikanth Kaka <srikanth.k@oneconvergence.com>\nSigned-off-by: Vag Singh <vag.singh@oneconvergence.com>\nSigned-off-by: Anand Thulasiram <avelu@juniper.net>\n---\n drivers/net/mlx5/freebsd/mlx5_os.c | 87 ++++++++++++++++++++++++++++++\n 1 file changed, 87 insertions(+)\n create mode 100644 drivers/net/mlx5/freebsd/mlx5_os.c", "diff": "diff --git a/drivers/net/mlx5/freebsd/mlx5_os.c b/drivers/net/mlx5/freebsd/mlx5_os.c\nnew file mode 100644\nindex 0000000000..39356f548f\n--- /dev/null\n+++ b/drivers/net/mlx5/freebsd/mlx5_os.c\n@@ -0,0 +1,87 @@\n+\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright 2015 6WIND S.A.\n+ * Copyright 2020 Mellanox Technologies, Ltd\n+ */\n+\n+#include <stddef.h>\n+#include <stdint.h>\n+#include <stdlib.h>\n+#include <errno.h>\n+\n+#include <mlx5_glue.h>\n+#include <mlx5_common.h>\n+\n+#include \"mlx5_defs.h\"\n+#include \"mlx5.h\"\n+#include \"mlx5_autoconf.h\"\n+\n+/**\n+ * Get mlx5 device attributes. The glue function query_device_ex() is called\n+ * with out parameter of type 'struct ibv_device_attr_ex *'. Then fill in mlx5\n+ * device attributes from the glue out parameter.\n+ *\n+ * @param dev\n+ * Pointer to ibv context.\n+ *\n+ * @param device_attr\n+ * Pointer to mlx5 device attributes.\n+ *\n+ * @return\n+ * 0 on success, non zero error number otherwise\n+ */\n+int\n+mlx5_os_get_dev_attr(void *ctx, struct mlx5_dev_attr *device_attr)\n+{\n+\tint err;\n+\tstruct ibv_device_attr_ex attr_ex;\n+\tmemset(device_attr, 0, sizeof(*device_attr));\n+\terr = mlx5_glue->query_device_ex(ctx, NULL, &attr_ex);\n+\tif (err)\n+\t\treturn err;\n+\n+\tdevice_attr->device_cap_flags_ex = attr_ex.device_cap_flags_ex;\n+\tdevice_attr->max_qp_wr = attr_ex.orig_attr.max_qp_wr;\n+\tdevice_attr->max_sge = attr_ex.orig_attr.max_sge;\n+\tdevice_attr->max_cq = attr_ex.orig_attr.max_cq;\n+\tdevice_attr->max_cqe = attr_ex.orig_attr.max_cqe;\n+\tdevice_attr->max_mr = attr_ex.orig_attr.max_mr;\n+\tdevice_attr->max_pd = attr_ex.orig_attr.max_pd;\n+\tdevice_attr->max_qp = attr_ex.orig_attr.max_qp;\n+\tdevice_attr->max_srq = attr_ex.orig_attr.max_srq;\n+\tdevice_attr->max_srq_wr = attr_ex.orig_attr.max_srq_wr;\n+\tdevice_attr->raw_packet_caps = attr_ex.raw_packet_caps;\n+\tdevice_attr->max_rwq_indirection_table_size =\n+\t\tattr_ex.rss_caps.max_rwq_indirection_table_size;\n+\tdevice_attr->max_tso = attr_ex.tso_caps.max_tso;\n+\tdevice_attr->tso_supported_qpts = attr_ex.tso_caps.supported_qpts;\n+\n+\tstruct mlx5dv_context dv_attr = { .comp_mask = 0 };\n+\terr = mlx5_glue->dv_query_device(ctx, &dv_attr);\n+\tif (err)\n+\t\treturn err;\n+\n+\tdevice_attr->flags = dv_attr.flags;\n+\tdevice_attr->comp_mask = dv_attr.comp_mask;\n+#ifdef HAVE_IBV_MLX5_MOD_SWP\n+\tdevice_attr->sw_parsing_offloads =\n+\t\tdv_attr.sw_parsing_caps.sw_parsing_offloads;\n+#endif\n+\tdevice_attr->min_single_stride_log_num_of_bytes =\n+\t\tdv_attr.striding_rq_caps.min_single_stride_log_num_of_bytes;\n+\tdevice_attr->max_single_stride_log_num_of_bytes =\n+\t\tdv_attr.striding_rq_caps.max_single_stride_log_num_of_bytes;\n+\tdevice_attr->min_single_wqe_log_num_of_strides =\n+\t\tdv_attr.striding_rq_caps.min_single_wqe_log_num_of_strides;\n+\tdevice_attr->max_single_wqe_log_num_of_strides =\n+\t\tdv_attr.striding_rq_caps.max_single_wqe_log_num_of_strides;\n+\tdevice_attr->stride_supported_qpts =\n+\t\tdv_attr.striding_rq_caps.supported_qpts;\n+#ifdef HAVE_IBV_DEVICE_TUNNEL_SUPPORT\n+\tdevice_attr->tunnel_offloads_caps = dv_attr.tunnel_offloads_caps;\n+#endif\n+\tstrlcpy(device_attr->fw_ver, attr_ex.orig_attr.fw_ver,\n+\t\tsizeof(device_attr->fw_ver));\n+\n+\treturn err;\n+}\n", "prefixes": [ "v2", "06/41" ] }{ "id": 100774, "url": "