get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 133984,
    "url": "http://patches.dpdk.org/api/patches/133984/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20231108125324.191005-13-juraj.linkes@pantheon.tech/",
    "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": "<20231108125324.191005-13-juraj.linkes@pantheon.tech>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20231108125324.191005-13-juraj.linkes@pantheon.tech",
    "date": "2023-11-08T12:53:14",
    "name": "[v6,13/23] dts: port and virtual device docstring update",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "ea49d2f0fb556eefc3eba64c228d8555d4d84109",
    "submitter": {
        "id": 1626,
        "url": "http://patches.dpdk.org/api/people/1626/?format=api",
        "name": "Juraj Linkeš",
        "email": "juraj.linkes@pantheon.tech"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20231108125324.191005-13-juraj.linkes@pantheon.tech/mbox/",
    "series": [
        {
            "id": 30201,
            "url": "http://patches.dpdk.org/api/series/30201/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=30201",
            "date": "2023-11-08T12:53:03",
            "name": "[v6,01/23] dts: code adjustments for doc generation",
            "version": 6,
            "mbox": "http://patches.dpdk.org/series/30201/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/133984/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/133984/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 C3A6B432D6;\n\tWed,  8 Nov 2023 13:55:21 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id EC27942E14;\n\tWed,  8 Nov 2023 13:53:46 +0100 (CET)",
            "from mail-ej1-f47.google.com (mail-ej1-f47.google.com\n [209.85.218.47]) by mails.dpdk.org (Postfix) with ESMTP id C0E3042E30\n for <dev@dpdk.org>; Wed,  8 Nov 2023 13:53:41 +0100 (CET)",
            "by mail-ej1-f47.google.com with SMTP id\n a640c23a62f3a-991c786369cso1040182766b.1\n for <dev@dpdk.org>; Wed, 08 Nov 2023 04:53:41 -0800 (PST)",
            "from jlinkes-PT-Latitude-5530.pantheon.local\n (81.89.53.154.host.vnet.sk. [81.89.53.154])\n by smtp.gmail.com with ESMTPSA id\n v10-20020aa7dbca000000b0052ff9bae873sm6589289edt.5.2023.11.08.04.53.40\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 08 Nov 2023 04:53:40 -0800 (PST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=pantheon.tech; s=google; t=1699448021; x=1700052821; darn=dpdk.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=nNWqU1DLwXxy+jHTYIQUWcQVb4gb9gLJSwll5Z93zLQ=;\n b=ag2//IqW9LHkXMRIV1/Ug9FPKMzy9UyBXBDDNdOpfWnLe0+LXlDg4yC7UvjX5xOa22\n 45qFWwDZkV9B0f5zKyBuqYyODBbDEsc8kIwPFDA8tgPVan+7h9nnhfAWmxL6LjPFShM4\n eZ9/1crjYOLJITfUY3HII/B84ROESeEMJZIAAoXmEyXrpYOQFAAlgEKLO7E3OD6LYOE7\n PPHMTAhaZqhRcZmPCsD3545k44A5V+w25Cg9Q5OU2v79pDYIE6EiF9ldiGlgcH5fix7B\n qMOuLMn/Wn4Xy4SfUIJUbJHb+tuXdpQReU5EQTiZjRGGzVVA5Y0lPxXe2TBO9EF1p5/w\n BMqg==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1699448021; x=1700052821;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc\n :subject:date:message-id:reply-to;\n bh=nNWqU1DLwXxy+jHTYIQUWcQVb4gb9gLJSwll5Z93zLQ=;\n b=OslDgovjIpTiIzsTtRAxB6GXFNb6gL5W0wSJ9xqOGny31s+j5E1WD78YTK4+qbr+pP\n 5jszrbSjErPYLCRQG3pNaLHzK3mp7J1tHMy/g6yt2nR7cc1ODSnKZuwxdyEu5oB6NurE\n syyrS9Qf/9+JU05MtFqED46ePrWlEhY7Lf4C8Gy1qL5TZc6XP9AuHVWUGpwrQdf6WWt0\n YlmWc2HPd8vK6u9aTHDUInBzySlzSG3rAcmRsMGgVqW5pFk3Cp+IK1K2ht0/bJqzj+uQ\n EwbajcUbUohbqEvieMGlTgow4cdPF1t5NLZTyzqdvjzfUC0RsU25jDL1UrTBxwQHjhNj\n Z3iw==",
        "X-Gm-Message-State": "AOJu0YyK4LkRmvZTS+/XQIVHol76A5P40QBLCoBu2sDHLTRwpjhlYbId\n /L1XEneFLfffk3y49WhDkk15ng==",
        "X-Google-Smtp-Source": "\n AGHT+IHgv7KuqRVhhfJf+Z6FV0tUg7Mn8fytKKbEmYHkTENbxU5MV73HxG90lV+B8kMDwmoFBiqZwA==",
        "X-Received": "by 2002:a17:906:b842:b0:9e4:3b4:68f7 with SMTP id\n ga2-20020a170906b84200b009e403b468f7mr726325ejb.60.1699448021449;\n Wed, 08 Nov 2023 04:53:41 -0800 (PST)",
        "From": "=?utf-8?q?Juraj_Linke=C5=A1?= <juraj.linkes@pantheon.tech>",
        "To": "thomas@monjalon.net, Honnappa.Nagarahalli@arm.com,\n bruce.richardson@intel.com, jspewock@iol.unh.edu, probb@iol.unh.edu,\n paul.szczepanek@arm.com, yoan.picchi@foss.arm.com",
        "Cc": "dev@dpdk.org, =?utf-8?q?Juraj_Linke=C5=A1?= <juraj.linkes@pantheon.tech>",
        "Subject": "[PATCH v6 13/23] dts: port and virtual device docstring update",
        "Date": "Wed,  8 Nov 2023 13:53:14 +0100",
        "Message-Id": "<20231108125324.191005-13-juraj.linkes@pantheon.tech>",
        "X-Mailer": "git-send-email 2.34.1",
        "In-Reply-To": "<20231108125324.191005-1-juraj.linkes@pantheon.tech>",
        "References": "<20231106171601.160749-1-juraj.linkes@pantheon.tech>\n <20231108125324.191005-1-juraj.linkes@pantheon.tech>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit",
        "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": "Format according to the Google format and PEP257, with slight\ndeviations.\n\nSigned-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech>\n---\n dts/framework/testbed_model/__init__.py       | 16 ++++--\n dts/framework/testbed_model/port.py           | 53 +++++++++++++++----\n dts/framework/testbed_model/virtual_device.py | 17 +++++-\n 3 files changed, 71 insertions(+), 15 deletions(-)",
    "diff": "diff --git a/dts/framework/testbed_model/__init__.py b/dts/framework/testbed_model/__init__.py\nindex 8ced05653b..a02be1f2d9 100644\n--- a/dts/framework/testbed_model/__init__.py\n+++ b/dts/framework/testbed_model/__init__.py\n@@ -2,9 +2,19 @@\n # Copyright(c) 2022-2023 University of New Hampshire\n # Copyright(c) 2023 PANTHEON.tech s.r.o.\n \n-\"\"\"\n-This package contains the classes used to model the physical traffic generator,\n-system under test and any other components that need to be interacted with.\n+\"\"\"Testbed modelling.\n+\n+This package defines the testbed elements DTS works with:\n+\n+    * A system under test node: :class:`SutNode`,\n+    * A traffic generator node: :class:`TGNode`,\n+    * The ports of network interface cards (NICs) present on nodes: :class:`Port`,\n+    * The logical cores of CPUs present on nodes: :class:`LogicalCore`,\n+    * The virtual devices that can be created on nodes: :class:`VirtualDevice`,\n+    * The operating systems running on nodes: :class:`LinuxSession` and :class:`PosixSession`.\n+\n+DTS needs to be able to connect to nodes and understand some of the hardware present on these nodes\n+to properly build and test DPDK.\n \"\"\"\n \n # pylama:ignore=W0611\ndiff --git a/dts/framework/testbed_model/port.py b/dts/framework/testbed_model/port.py\nindex 680c29bfe3..817405bea4 100644\n--- a/dts/framework/testbed_model/port.py\n+++ b/dts/framework/testbed_model/port.py\n@@ -2,6 +2,13 @@\n # Copyright(c) 2022 University of New Hampshire\n # Copyright(c) 2023 PANTHEON.tech s.r.o.\n \n+\"\"\"NIC port model.\n+\n+Basic port information, such as location (the port are identified by their PCI address on a node),\n+drivers and address.\n+\"\"\"\n+\n+\n from dataclasses import dataclass\n \n from framework.config import PortConfig\n@@ -9,24 +16,35 @@\n \n @dataclass(slots=True, frozen=True)\n class PortIdentifier:\n+    \"\"\"The port identifier.\n+\n+    Attributes:\n+        node: The node where the port resides.\n+        pci: The PCI address of the port on `node`.\n+    \"\"\"\n+\n     node: str\n     pci: str\n \n \n @dataclass(slots=True)\n class Port:\n-    \"\"\"\n-    identifier: The PCI address of the port on a node.\n-\n-    os_driver: The driver used by this port when the OS is controlling it.\n-        Example: i40e\n-    os_driver_for_dpdk: The driver the device must be bound to for DPDK to use it,\n-        Example: vfio-pci.\n+    \"\"\"Physical port on a node.\n \n-    Note: os_driver and os_driver_for_dpdk may be the same thing.\n-        Example: mlx5_core\n+    The ports are identified by the node they're on and their PCI addresses. The port on the other\n+    side of the connection is also captured here.\n+    Each port is serviced by a driver, which may be different for the operating system (`os_driver`)\n+    and for DPDK (`os_driver_for_dpdk`). For some devices, they are the same, e.g.: ``mlx5_core``.\n \n-    peer: The identifier of a port this port is connected with.\n+    Attributes:\n+        identifier: The PCI address of the port on a node.\n+        os_driver: The operating system driver name when the operating system controls the port,\n+            e.g.: ``i40e``.\n+        os_driver_for_dpdk: The operating system driver name for use with DPDK, e.g.: ``vfio-pci``.\n+        peer: The identifier of a port this port is connected with.\n+            The `peer` is on a different node.\n+        mac_address: The MAC address of the port.\n+        logical_name: The logical name of the port. Must be discovered.\n     \"\"\"\n \n     identifier: PortIdentifier\n@@ -37,6 +55,12 @@ class Port:\n     logical_name: str = \"\"\n \n     def __init__(self, node_name: str, config: PortConfig):\n+        \"\"\"Initialize the port from `node_name` and `config`.\n+\n+        Args:\n+            node_name: The name of the port's node.\n+            config: The test run configuration of the port.\n+        \"\"\"\n         self.identifier = PortIdentifier(\n             node=node_name,\n             pci=config.pci,\n@@ -47,14 +71,23 @@ def __init__(self, node_name: str, config: PortConfig):\n \n     @property\n     def node(self) -> str:\n+        \"\"\"The node where the port resides.\"\"\"\n         return self.identifier.node\n \n     @property\n     def pci(self) -> str:\n+        \"\"\"The PCI address of the port.\"\"\"\n         return self.identifier.pci\n \n \n @dataclass(slots=True, frozen=True)\n class PortLink:\n+    \"\"\"The physical, cabled connection between the ports.\n+\n+    Attributes:\n+        sut_port: The port on the SUT node connected to `tg_port`.\n+        tg_port: The port on the TG node connected to `sut_port`.\n+    \"\"\"\n+\n     sut_port: Port\n     tg_port: Port\ndiff --git a/dts/framework/testbed_model/virtual_device.py b/dts/framework/testbed_model/virtual_device.py\nindex eb664d9f17..e9b5e9c3be 100644\n--- a/dts/framework/testbed_model/virtual_device.py\n+++ b/dts/framework/testbed_model/virtual_device.py\n@@ -1,16 +1,29 @@\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright(c) 2023 PANTHEON.tech s.r.o.\n \n+\"\"\"Virtual devices model.\n+\n+Alongside support for physical hardware, DPDK can create various virtual devices.\n+\"\"\"\n+\n \n class VirtualDevice(object):\n-    \"\"\"\n-    Base class for virtual devices used by DPDK.\n+    \"\"\"Base class for virtual devices used by DPDK.\n+\n+    Attributes:\n+        name: The name of the virtual device.\n     \"\"\"\n \n     name: str\n \n     def __init__(self, name: str):\n+        \"\"\"Initialize the virtual device.\n+\n+        Args:\n+            name: The name of the virtual device.\n+        \"\"\"\n         self.name = name\n \n     def __str__(self) -> str:\n+        \"\"\"This corresponds to the name used for DPDK devices.\"\"\"\n         return self.name\n",
    "prefixes": [
        "v6",
        "13/23"
    ]
}