Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/130461/?format=api
http://patches.dpdk.org/api/patches/130461/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230817084226.55327-2-lihuisong@huawei.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": "<20230817084226.55327-2-lihuisong@huawei.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20230817084226.55327-2-lihuisong@huawei.com", "date": "2023-08-17T08:42:25", "name": "[v3,1/2] examples/ptpclient: add the check for PTP capability", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": true, "hash": "01ce970120499ed287ea8bb7f484e519f8764d9c", "submitter": { "id": 2085, "url": "http://patches.dpdk.org/api/people/2085/?format=api", "name": "lihuisong (C)", "email": "lihuisong@huawei.com" }, "delegate": { "id": 319, "url": "http://patches.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20230817084226.55327-2-lihuisong@huawei.com/mbox/", "series": [ { "id": 29261, "url": "http://patches.dpdk.org/api/series/29261/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=29261", "date": "2023-08-17T08:42:25", "name": "ethdev: add the check for PTP capability", "version": 3, "mbox": "http://patches.dpdk.org/series/29261/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/130461/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/130461/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 426264308C;\n\tThu, 17 Aug 2023 10:45:25 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id C65DB40EE2;\n\tThu, 17 Aug 2023 10:45:24 +0200 (CEST)", "from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187])\n by mails.dpdk.org (Postfix) with ESMTP id 8F39140685\n for <dev@dpdk.org>; Thu, 17 Aug 2023 10:45:22 +0200 (CEST)", "from kwepemm600004.china.huawei.com (unknown [172.30.72.53])\n by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4RRJSt0F2fzrSwj;\n Thu, 17 Aug 2023 16:43:58 +0800 (CST)", "from localhost.localdomain (10.69.192.56) by\n kwepemm600004.china.huawei.com (7.193.23.242) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id\n 15.1.2507.31; Thu, 17 Aug 2023 16:45:19 +0800" ], "From": "Huisong Li <lihuisong@huawei.com>", "To": "<dev@dpdk.org>", "CC": "<thomas@monjalon.net>, <ferruh.yigit@amd.com>,\n <andrew.rybchenko@oktetlabs.ru>, <liuyonglong@huawei.com>,\n <lihuisong@huawei.com>", "Subject": "[PATCH v3 1/2] examples/ptpclient: add the check for PTP capability", "Date": "Thu, 17 Aug 2023 16:42:25 +0800", "Message-ID": "<20230817084226.55327-2-lihuisong@huawei.com>", "X-Mailer": "git-send-email 2.33.0", "In-Reply-To": "<20230817084226.55327-1-lihuisong@huawei.com>", "References": "<20220628133959.21381-1-liudongdong3@huawei.com>\n <20230817084226.55327-1-lihuisong@huawei.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-Originating-IP": "[10.69.192.56]", "X-ClientProxiedBy": "dggems706-chm.china.huawei.com (10.3.19.183) To\n kwepemm600004.china.huawei.com (7.193.23.242)", "X-CFilter-Loop": "Reflected", "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" }, "content": "If a port doesn't support PTP, there is no need to keep running\napp. So this patch adds the check for PTP capability.\n\nFixes: 7a04a4f67dca (\"examples/ptpclient: enable Rx timestamp offload\")\nCc: stable@dpdk.org\n\nSigned-off-by: Huisong Li <lihuisong@huawei.com>\nSigned-off-by: Dongdong Liu <liudongdong3@huawei.com>\n---\n examples/ptpclient/ptpclient.c | 5 +++++\n 1 file changed, 5 insertions(+)", "diff": "diff --git a/examples/ptpclient/ptpclient.c b/examples/ptpclient/ptpclient.c\nindex cdf2da64df..181d8fb357 100644\n--- a/examples/ptpclient/ptpclient.c\n+++ b/examples/ptpclient/ptpclient.c\n@@ -196,6 +196,11 @@ port_init(uint16_t port, struct rte_mempool *mbuf_pool)\n \n \tif (dev_info.rx_offload_capa & RTE_ETH_RX_OFFLOAD_TIMESTAMP)\n \t\tport_conf.rxmode.offloads |= RTE_ETH_RX_OFFLOAD_TIMESTAMP;\n+\telse {\n+\t\tprintf(\"port(%u) doesn't support PTP: %s\\n\", port,\n+\t\t strerror(-retval));\n+\t\treturn -ENOTSUP;\n+\t}\n \n \tif (dev_info.tx_offload_capa & RTE_ETH_TX_OFFLOAD_MBUF_FAST_FREE)\n \t\tport_conf.txmode.offloads |=\n", "prefixes": [ "v3", "1/2" ] }{ "id": 130461, "url": "