get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/116452/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 116452,
    "url": "http://patches.dpdk.org/api/patches/116452/?format=api",
    "web_url": "http://patches.dpdk.org/project/dts/patch/20220920114352.18414-1-zhiminx.huang@intel.com/",
    "project": {
        "id": 3,
        "url": "http://patches.dpdk.org/api/projects/3/?format=api",
        "name": "DTS",
        "link_name": "dts",
        "list_id": "dts.dpdk.org",
        "list_email": "dts@dpdk.org",
        "web_url": "",
        "scm_url": "git://dpdk.org/tools/dts",
        "webscm_url": "http://git.dpdk.org/tools/dts/",
        "list_archive_url": "https://inbox.dpdk.org/dts",
        "list_archive_url_format": "https://inbox.dpdk.org/dts/{}",
        "commit_url_format": ""
    },
    "msgid": "<20220920114352.18414-1-zhiminx.huang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20220920114352.18414-1-zhiminx.huang@intel.com",
    "date": "2022-09-20T11:43:51",
    "name": "[V3,1/2] test_plans/telemetry_test_plan:add cases to check laser power in dpdk",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "99853704daac3773d12c9cb7350c4dd1391e5c1f",
    "submitter": {
        "id": 1685,
        "url": "http://patches.dpdk.org/api/people/1685/?format=api",
        "name": "Huang, ZhiminX",
        "email": "zhiminx.huang@intel.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dts/patch/20220920114352.18414-1-zhiminx.huang@intel.com/mbox/",
    "series": [
        {
            "id": 24718,
            "url": "http://patches.dpdk.org/api/series/24718/?format=api",
            "web_url": "http://patches.dpdk.org/project/dts/list/?series=24718",
            "date": "2022-09-20T11:43:51",
            "name": "[V3,1/2] test_plans/telemetry_test_plan:add cases to check laser power in dpdk",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/24718/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/116452/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/116452/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dts-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 53816A00C3;\n\tTue, 20 Sep 2022 05:31:02 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 4CEE5410E8;\n\tTue, 20 Sep 2022 05:31:02 +0200 (CEST)",
            "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n by mails.dpdk.org (Postfix) with ESMTP id 704FB4069B\n for <dts@dpdk.org>; Tue, 20 Sep 2022 05:31:00 +0200 (CEST)",
            "from fmsmga007.fm.intel.com ([10.253.24.52])\n by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 19 Sep 2022 20:30:59 -0700",
            "from unknown (HELO localhost.localdomain) ([10.239.252.93])\n by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 19 Sep 2022 20:30:58 -0700"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1663644660; x=1695180660;\n h=from:to:cc:subject:date:message-id;\n bh=u2bm+ksgNL8S3Y2jl/w4OOylKRK0xbIclrCtcP2vroo=;\n b=Zyzlj2+a+ZSwNSQ4wdbllLhIQkmBn13bTamgNp6o9dY0qU6brfC4eLno\n t7WvUoAf6O9dVKb7QQeLxiEihYt7bmcRa398fhQR4vKV8WF4FbYA/1kho\n 4DHW9ngOGi3XbULyrnYjYZRMiYy9EK41uOMiqbtU6IetOhb/PZz0Q8TDA\n JIYQHzS1HO5B+YvGCMCK6L5v0Zs5XhlgLZFrE7oVC+o1NGjXQOOupiYTg\n Eg3vy5pmCSw0AJQmimUnlzvIhvjj2huyWtTDdNjpd76d2n0MQuRL9seeY\n bny02teLl0wol2TpSd2o6RLJEgcr4MxjBrn9ZbIupMrIMqfvVXEIDbUL9 g==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6500,9779,10475\"; a=\"325884523\"",
            "E=Sophos;i=\"5.93,329,1654585200\"; d=\"scan'208\";a=\"325884523\"",
            "E=Sophos;i=\"5.93,329,1654585200\"; d=\"scan'208\";a=\"621101446\""
        ],
        "From": "Zhimin Huang <zhiminx.huang@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "Zhimin Huang <zhiminx.huang@intel.com>",
        "Subject": "[dts][PATCH V3 1/2] test_plans/telemetry_test_plan:add cases to check\n laser power in dpdk",
        "Date": "Tue, 20 Sep 2022 19:43:51 +0800",
        "Message-Id": "<20220920114352.18414-1-zhiminx.huang@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "X-BeenThere": "dts@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "test suite reviews and discussions <dts.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dts>,\n <mailto:dts-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dts/>",
        "List-Post": "<mailto:dts@dpdk.org>",
        "List-Help": "<mailto:dts-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dts>,\n <mailto:dts-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dts-bounces@dpdk.org"
    },
    "content": "the customer need to get the laser power values in dpdk.\nso a new telemtry command /ethdev/module_eeprom to show module\nEEPROM for each port in dpdk22.07.\nwe add new test cases to check laser power value.\n1.check the laser power values same as that of 'ethtool -m'.\n2.check different/same optical modules have different/same laser power values.\n\nSigned-off-by: Zhimin Huang <zhiminx.huang@intel.com>\nAcked-by: Peng, Yuan <yuan.peng@intel.com>\n---\nv3:\n-detail the comments and add some descriptions related to ethtool\n\n test_plans/telemetry_test_plan.rst | 74 +++++++++++++++++++++++++++++-\n 1 file changed, 73 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/test_plans/telemetry_test_plan.rst b/test_plans/telemetry_test_plan.rst\nindex 16568cd3..b1ac5844 100644\n--- a/test_plans/telemetry_test_plan.rst\n+++ b/test_plans/telemetry_test_plan.rst\n@@ -200,4 +200,76 @@ Test case:  Stats of 4 ports for testpmd and telemetry with different  type nic\n \ta.\tEnsure # of ports stats being returned == # of ports\n \tb.\tEnsure packet counts (eg rx_good_packets) is 0\n \tc.   Ensure extended NIC stats are shown (depends on PMD used for testing, refer to ixgbe/i40e tests for PMD xstats)\n-\td.\tEnsure extended NIC stats are 0 (eg: rx_q0_packets == 0)\n\\ No newline at end of file\n+\td.\tEnsure extended NIC stats are 0 (eg: rx_q0_packets == 0)\n+\n+Test case: read nic Laser Power via dpdk\n+========================================\n+\n+1.Bind ports to dpdk::\n+\n+      ./usertools/dpdk-devbind.py --bind=vfio-pci 18:00.0 18.00.1\n+\n+2.Launch the dpdk testpmd with teltmetry::\n+\n+      ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd --telemetry  -- -i\n+\n+3.Launch the telemetry client::\n+\n+      python ./usertools/dpdk-telemetry.py\n+\n+4.Excute command in telemtry client::\n+\n+      --> /ethdev/module_eeprom,<port number>\n+\n+5.check the testpmd and telemetry show info same as 'ethtool -m'::\n+\n+      ethtool -m ens25f1 | grep 'Laser output power'\n+      Laser output power                        : 0.6703 mW / -1.74 dBm\n+\n+.. note::\n+\n+   refer to command 'ethtool -m' of ethtool v5.4\n+\n+Test case: check Laser Power in different optical modules\n+=========================================================\n+\n+1.set port 0 and port 1 with diffent optical modules\n+\n+2.Launch the dpdk testpmd with teltmetry::\n+\n+      ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd --telemetry  -- -i\n+\n+3.Launch the telemetry client::\n+\n+      python ./usertools/dpdk-telemetry.py\n+\n+4.Excute command in telemtry client::\n+\n+      --> /ethdev/module_eeprom,0\n+      --> /ethdev/module_eeprom,1\n+\n+5.check port 0 and port 1 have different Laser Power\n+\n+Test case: check Laser Power in same optical modules\n+====================================================\n+\n+1.set port 0 and port 1 with same optical modules\n+\n+2.Launch the dpdk testpmd with teltmetry::\n+\n+      ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd --telemetry  -- -i\n+\n+3.Launch the telemetry client::\n+\n+      python ./usertools/dpdk-telemetry.py\n+\n+4.Excute command in telemtry client::\n+\n+      --> /ethdev/module_eeprom,0\n+      --> /ethdev/module_eeprom,1\n+\n+5.check port 0 and port 1 have same Laser Power\n+\n+.. note::\n+\n+   the laser power will change slightly with the voltage and temperature\n",
    "prefixes": [
        "V3",
        "1/2"
    ]
}