get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 116653,
    "url": "http://patches.dpdk.org/api/patches/116653/?format=api",
    "web_url": "http://patches.dpdk.org/project/dts/patch/20220922230352.14237-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": "<20220922230352.14237-1-zhiminx.huang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20220922230352.14237-1-zhiminx.huang@intel.com",
    "date": "2022-09-22T23:03:51",
    "name": "[V4,1/2] test_plans/telemetry: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/20220922230352.14237-1-zhiminx.huang@intel.com/mbox/",
    "series": [
        {
            "id": 24784,
            "url": "http://patches.dpdk.org/api/series/24784/?format=api",
            "web_url": "http://patches.dpdk.org/project/dts/list/?series=24784",
            "date": "2022-09-22T23:03:51",
            "name": "[V4,1/2] test_plans/telemetry:add cases to check laser power in dpdk",
            "version": 4,
            "mbox": "http://patches.dpdk.org/series/24784/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/116653/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/116653/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 D6C94A0543;\n\tThu, 22 Sep 2022 16:51:20 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 9865640156;\n\tThu, 22 Sep 2022 16:51:20 +0200 (CEST)",
            "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n by mails.dpdk.org (Postfix) with ESMTP id 0ECAA400D7\n for <dts@dpdk.org>; Thu, 22 Sep 2022 16:51:18 +0200 (CEST)",
            "from orsmga006.jf.intel.com ([10.7.209.51])\n by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 22 Sep 2022 07:51:17 -0700",
            "from unknown (HELO localhost.localdomain) ([10.239.252.93])\n by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 22 Sep 2022 07:51:16 -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=1663858279; x=1695394279;\n h=from:to:cc:subject:date:message-id;\n bh=SQrwwdaf166AuoSveJzwM2OczxMEAIxRXfW6RrGz3rw=;\n b=TBWs4dqXJjOHGEXXpQhnJBIzepZIL+c2di8GdEw+CgNrLYEp09CMh6/8\n vdBzo8H2Be30al2KbX0AQ71AU/xcvYmmCf7lGujPzkxNfPriavzskwJ3u\n uOOcI6pOmJvpqvk0q91zC1XWsutTK8SiV/kXLxDWiwiABmFwG9Lj5kPvu\n +r1yEgMTif0GBwK/CBrxUgj1myn/4f4OO0jmlG7p4fGXixFKrjcnJ0r4O\n 4q1U7mtfkMf+/t96iyAkQW6ExvoQQMNZghwaf/UXZo4hTKd1p06sEwSQJ\n kfA9MCzJI1jgjSB1BUYmuyS5FPCwVCJIWCTNjOEaZ9uezzs7h+Pm1YjcG g==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6500,9779,10478\"; a=\"301163945\"",
            "E=Sophos;i=\"5.93,335,1654585200\"; d=\"scan'208\";a=\"301163945\"",
            "E=Sophos;i=\"5.93,335,1654585200\"; d=\"scan'208\";a=\"597459480\""
        ],
        "From": "Zhimin Huang <zhiminx.huang@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "Zhimin Huang <zhiminx.huang@intel.com>",
        "Subject": "[dts][PATCH V4 1/2] test_plans/telemetry:add cases to check laser\n power in dpdk",
        "Date": "Fri, 23 Sep 2022 07:03:51 +0800",
        "Message-Id": "<20220922230352.14237-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---\nv4:\n-optimized code in testcase.\n\nv3:\n-detail subject and comments.\n-add some descriptions related to ethtool version.\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": [
        "V4",
        "1/2"
    ]
}