Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/100792/?format=api
https://patches.dpdk.org/api/patches/100792/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20211007184350.73858-25-srikanth.k@oneconvergence.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": "<20211007184350.73858-25-srikanth.k@oneconvergence.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20211007184350.73858-25-srikanth.k@oneconvergence.com", "date": "2021-10-07T18:43:33", "name": "[v2,24/41] net/mlx5: read device clock", "commit_ref": null, "pull_url": null, "state": "deferred", "archived": false, "hash": "f481aec231935550cec1d5e1f9de9db91bd60c76", "submitter": { "id": 2368, "url": "https://patches.dpdk.org/api/people/2368/?format=api", "name": "Srikanth Kaka", "email": "srikanth.k@oneconvergence.com" }, "delegate": { "id": 3268, "url": "https://patches.dpdk.org/api/users/3268/?format=api", "username": "rasland", "first_name": "Raslan", "last_name": "Darawsheh", "email": "rasland@nvidia.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20211007184350.73858-25-srikanth.k@oneconvergence.com/mbox/", "series": [ { "id": 19455, "url": "https://patches.dpdk.org/api/series/19455/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=19455", "date": "2021-10-07T18:43:09", "name": "add MLX5 FreeBSD support", "version": 2, "mbox": "https://patches.dpdk.org/series/19455/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/100792/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/100792/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 D82DCA034F;\n\tFri, 8 Oct 2021 12:58:11 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 2C083411BF;\n\tFri, 8 Oct 2021 12:56:25 +0200 (CEST)", "from mail-pl1-f178.google.com (mail-pl1-f178.google.com\n [209.85.214.178])\n by mails.dpdk.org (Postfix) with ESMTP id AAEA1411E0\n for <dev@dpdk.org>; Thu, 7 Oct 2021 20:45:19 +0200 (CEST)", "by mail-pl1-f178.google.com with SMTP id w11so4460812plz.13\n for <dev@dpdk.org>; Thu, 07 Oct 2021 11:45:19 -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.45.16\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 07 Oct 2021 11:45:18 -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=S9Cn4hcXEh6D9+/Yvdeg18iBAGpkDiqGaTyozeG3jNU=;\n b=Sj3j7z0f/Ek112PnGN/AGMduWpJxqoKFcQxTOF3q7R3p0sGXh86gcfamS9mqgmp1kg\n r8PSrefksltguYinretWTQHtKIgoPeA09Pu1K1JCUj4Pj6+0enVl+BnwBYGnYP9olhIC\n 3zMghKbY9UQSJrP0y/7aigcu633Fvh8hQdZnY=", "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=S9Cn4hcXEh6D9+/Yvdeg18iBAGpkDiqGaTyozeG3jNU=;\n b=NGQPV3rpP1efTRCVumzgLPhLe94BK/2lhkc1zeSal9PA0E8XgojnfBzQQYpxQIkuus\n Ps9GRL8sHoohQrgligvAKnIXeXl9fiuniJMqMC1Q5AV0BdaTM4Xla6Ozq9eBEMMO02/c\n wdz9SI94LmQBDeaKSebNe8kHx8/Gksc1sALX9MQV90KJ4hr+dI61NkVxfCGUwDJqxuD5\n oMGxXgajygFdDYUNL7t1xagNUbI9xTFGuQFxLLXGs0WNctqBj9us+A7xmy5ovkp+Jco8\n rpCitcvkEuCR1kuV59q0fCc4t9f8SZdIFBg+so2MCN18DcAXUzbS1U15j4nTsje6ASaq\n p8hA==", "X-Gm-Message-State": "AOAM531hCRv6sbnRdCHMRuOyKkFkT3D96k4pKBBASelTd3fXDXsu7d8x\n qyUS26Bd/Kcs10ZzGo7uoOofww==", "X-Google-Smtp-Source": "\n ABdhPJy6diteasxIG6ytMJSjflnmk2mcqUEo7liWGxjHiTTC9ShQatxMIdkfxWWR9Gyoj1GaUnQkGQ==", "X-Received": "by 2002:a17:902:e78f:b0:13d:f99f:34bb with SMTP id\n cp15-20020a170902e78f00b0013df99f34bbmr5220145plb.48.1633632318871;\n Thu, 07 Oct 2021 11:45:18 -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:33 +0530", "Message-Id": "<20211007184350.73858-25-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 24/41] net/mlx5: read device clock", "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": "read device clock\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_ethdev_os.c | 31 +++++++++++++++++++++++\n 1 file changed, 31 insertions(+)", "diff": "diff --git a/drivers/net/mlx5/freebsd/mlx5_ethdev_os.c b/drivers/net/mlx5/freebsd/mlx5_ethdev_os.c\nindex d100addd51..5d66f17513 100644\n--- a/drivers/net/mlx5/freebsd/mlx5_ethdev_os.c\n+++ b/drivers/net/mlx5/freebsd/mlx5_ethdev_os.c\n@@ -11,6 +11,7 @@\n \n #include <ethdev_driver.h>\n \n+#include <mlx5_glue.h>\n #include <mlx5_common.h>\n \n #include \"mlx5.h\"\n@@ -165,6 +166,36 @@ mlx5_set_flags(struct rte_eth_dev *dev, unsigned int keep, unsigned int flags)\n \treturn mlx5_ifreq(dev, SIOCSIFFLAGS, &request);\n }\n \n+/**\n+ * Get device current raw clock counter\n+ *\n+ * @param dev\n+ * Pointer to Ethernet device structure.\n+ * @param[out] time\n+ * Current raw clock counter of the device.\n+ *\n+ * @return\n+ * 0 if the clock has correctly been read\n+ * The value of errno in case of error\n+ */\n+int\n+mlx5_read_clock(struct rte_eth_dev *dev, uint64_t *clock)\n+{\n+\tstruct mlx5_priv *priv = dev->data->dev_private;\n+\tstruct ibv_context *ctx = priv->sh->ctx;\n+\tstruct ibv_values_ex values;\n+\tint err = 0;\n+\n+\tvalues.comp_mask = IBV_VALUES_MASK_RAW_CLOCK;\n+\terr = mlx5_glue->query_rt_values_ex(ctx, &values);\n+\tif (err != 0) {\n+\t\tDRV_LOG(WARNING, \"Could not query the clock !\");\n+\t\treturn err;\n+\t}\n+\t*clock = values.raw_clock.tv_nsec;\n+\treturn 0;\n+}\n+\n static const struct ifmedia_baudrate ifmedia_baudrate_desc[] =\n \tIFM_BAUDRATE_DESCRIPTIONS;\n \n", "prefixes": [ "v2", "24/41" ] }{ "id": 100792, "url": "