get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 117065,
    "url": "http://patches.dpdk.org/api/patches/117065/?format=api",
    "web_url": "http://patches.dpdk.org/project/dts/patch/20220928225253.20539-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": "<20220928225253.20539-1-zhiminx.huang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20220928225253.20539-1-zhiminx.huang@intel.com",
    "date": "2022-09-28T22:52:52",
    "name": "[V5,1/2] test_plans/telemetry:add cases to check laser power in dpdk",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "c8bd1750217b8b6bcaa9a9b4311239fbb8b6a2ff",
    "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/20220928225253.20539-1-zhiminx.huang@intel.com/mbox/",
    "series": [
        {
            "id": 24883,
            "url": "http://patches.dpdk.org/api/series/24883/?format=api",
            "web_url": "http://patches.dpdk.org/project/dts/list/?series=24883",
            "date": "2022-09-28T22:52:52",
            "name": "[V5,1/2] test_plans/telemetry:add cases to check laser power in dpdk",
            "version": 5,
            "mbox": "http://patches.dpdk.org/series/24883/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/117065/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/117065/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 7C4E8A00C4;\n\tWed, 28 Sep 2022 16:41:07 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 78C914113C;\n\tWed, 28 Sep 2022 16:41:07 +0200 (CEST)",
            "from mga05.intel.com (mga05.intel.com [192.55.52.43])\n by mails.dpdk.org (Postfix) with ESMTP id EE9D9410FA\n for <dts@dpdk.org>; Wed, 28 Sep 2022 16:41:05 +0200 (CEST)",
            "from orsmga004.jf.intel.com ([10.7.209.38])\n by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 28 Sep 2022 07:41:04 -0700",
            "from unknown (HELO localhost.localdomain) ([10.239.252.93])\n by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 28 Sep 2022 07:41:03 -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=1664376066; x=1695912066;\n h=from:to:cc:subject:date:message-id;\n bh=9BddlYQTmT6MoWUqpxyay0PWziAErM/zJE7mXJ4sm94=;\n b=YO/fZVkooRp1Wqv+8CKVFhAUrXPnsjHSSs98fK5ypjKHiizhjvkZ4OsO\n 40W+rmFcK37QgG84/QFWY60mqgR1vIqWhPi/SGQMBVCtb5xk6sYCOpFl0\n WnCx7si7GiN+dSbNkVXY+MJL3CclebiRuhF9qmxrQ/csUgv3MKMT/CSdC\n 0nk3rjliPmP+WZvOcVvPqxZXLW5+g4cYVqa4ykW/u4PwkaU9fEfCoMkEC\n q0EyNYBPhE6hPmXU+NeYrCBbhmvtvJGZp8FKn7ucnhz+htN8Top9wj4No\n jTXyadpy3bCXlgZibmUUOX9ofsBCQdKUVicmcoXcrkQQIwoVWBeiEyl8A Q==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6500,9779,10484\"; a=\"387900548\"",
            "E=Sophos;i=\"5.93,352,1654585200\"; d=\"scan'208\";a=\"387900548\"",
            "E=McAfee;i=\"6500,9779,10484\"; a=\"747452165\"",
            "E=Sophos;i=\"5.93,352,1654585200\"; d=\"scan'208\";a=\"747452165\""
        ],
        "From": "Zhimin Huang <zhiminx.huang@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "Zhimin Huang <zhiminx.huang@intel.com>",
        "Subject": "[dts][PATCH V5 1/2] test_plans/telemetry:add cases to check laser\n power in dpdk",
        "Date": "Thu, 29 Sep 2022 06:52:52 +0800",
        "Message-Id": "<20220928225253.20539-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---\nv5:\n-add command '/ethdev/module_eeprom' output in testplan\n\nv4:\n-optimized code in testcase.\n\nv3:\n-detail subject and comments.\n\n test_plans/telemetry_test_plan.rst | 107 ++++++++++++++++++++++++++++-\n 1 file changed, 106 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/test_plans/telemetry_test_plan.rst b/test_plans/telemetry_test_plan.rst\nindex 16568cd3..949280e0 100644\n--- a/test_plans/telemetry_test_plan.rst\n+++ b/test_plans/telemetry_test_plan.rst\n@@ -200,4 +200,109 @@ 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+      take a example:/ethdev/module_eeprom,0\n+      {\"/ethdev/module_eeprom\": {\"Identifier\": \"0x03 (SFP)\", \"Extended identifier\": \"0x04 (GBIC/SFP defined by 2-wire\n+       interface ID)\", \"Connector\": \"0x07 (LC)\", \"Transceiver codes\": \"0x10 0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x00\",\n+        \"Transceiver type\": \"10G Ethernet: 10G Base-SR; Ethernet: 1000BASE-SX\", \"Encoding\": \"0x06 (64B/66B)\", \"BR,\n+        Nominal\": \"10300MBd\", \"Rate identifier\": \"0x00 (unspecified)\", \"Length (SMF,km)\": \"0km\", \"Length (SMF)\":\n+        \"0m\", \"Length (50um)\": \"80m\", \"Length (62.5um)\": \"30m\", \"Length (Copper)\": \"0m\", \"Length (OM3)\": \"300m\",\n+        \"Laser wavelength\": \"850nm\", \"Vendor name\": \"Intel Corp\", \"Vendor OUI\": \"00:1b:21\", \"Vendor PN\":\n+        \"AFBR-703SDZ-IN2\", \"Vendor rev\": \"G2.3\", \"Option values\": \"0x00 0x3a\", \"Option\": \"RX_LOS implemented;\n+        TX_FAULT implemented; TX_DISABLE implemented; RATE_SELECT implemented\", \"BR margin, max\": \"0%\", \"BR margin,\n+        min\": \"0%\", \"Vendor SN\": \"AD1345A04JR\", \"Date code\": \"131108\", \"Optical diagnostics support\": \"Yes\", \"Laser\n+        bias current\": \"5.942 mA\", \"Laser output power\": \"0.6703 mW / -1.74 dBm\", \"Receiver signal average optical\n+        power\": \"0.8002 mW / -0.97 dBm\", \"Module temperature\": \"38.50 degrees C / 101.30 degrees F\", \"Module\n+        voltage\": \"3.3960 V\", \"Alarm/warning flags implemented\": \"Yes\", \"Laser bias current high alarm\": \"Off\",\n+        \"Laser bias current low alarm\": \"Off\", \"Laser bias current high warning\": \"Off\", \"Laser bias current low\n+        warning\": \"Off\", \"Laser output power high alarm\": \"Off\", \"Laser output power low alarm\": \"Off\", \"Laser output\n+        power high warning\": \"Off\", \"Laser output power low warning\": \"Off\", \"Module temperature high alarm\": \"Off\",\n+        \"Module temperature low alarm\": \"Off\", \"Module temperature high warning\": \"Off\", \"Module temperature low\n+        warning\": \"Off\", \"Module voltage high alarm\": \"Off\", \"Module voltage low alarm\": \"Off\", \"Module voltage\n+        high warning\": \"Off\", \"Module voltage low warning\": \"Off\", \"Laser rx power high alarm\": \"Off\", \"Laser rx\n+        power low alarm\": \"Off\", \"Laser rx power high warning\": \"On\", \"Laser rx power low warning\": \"Off\", \"Laser\n+        bias current high alarm threshold\": \"10.500 mA\", \"Laser bias current low alarm threshold\": \"2.500 mA\",\n+        \"Laser bias current high warning threshold\": \"10.500 mA\", \"Laser bias current low warning threshold\": \"2\n+        .500 mA\", \"Laser output power high alarm threshold\": \"2.0000 mW / 3.01 dBm\", \"Laser output power low alarm\n+        threshold\": \"0.0600 mW / -12.22 dBm\", \"Laser output power high warning threshold\": \"0.7900 mW / -1.02 dBm\",\n+        \"Laser output power low warning threshold\": \"0.0850 mW / -10.71 dBm\", \"Module temperature high alarm\n+        threshold\": \"85.00 degrees C / 185.00 degrees F\", \"Module temperature low alarm threshold\": \"-5.00 degrees\n+        C / 23.00 degrees F\", \"Module temperature high warning threshold\": \"80.00 degrees C / 176.00 degrees F\",\n+        \"Module temperature low warning threshold\": \"0.00 degrees C / 32.00 degrees F\", \"Module voltage high\n+        alarm threshold\": \"3.6000 V\", \"Module voltage low alarm threshold\": \"3.1300 V\", \"Module voltage high\n+        warning threshold\": \"3.4600 V\", \"Laser rx power high alarm threshold\": \"2.0000 mW / 3.01 dBm\", \"Laser rx\n+        power low alarm threshold\": \"0.0000 mW / -inf dBm\", \"Laser rx power high warning threshold\": \"0.7900 mW /\n+        -1.02 dBm\", \"Laser rx power low warning threshold\": \"0.0200 mW / -16.99 dBm\"}}\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": [
        "V5",
        "1/2"
    ]
}