get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 118495,
    "url": "https://patches.dpdk.org/api/patches/118495/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20221018194131.23006-29-andrew.boyer@amd.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<20221018194131.23006-29-andrew.boyer@amd.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20221018194131.23006-29-andrew.boyer@amd.com",
    "date": "2022-10-18T19:41:23",
    "name": "[v2,28/36] net/ionic: add Tx descriptor status function",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "e1caeb92ed36655d8aa5f54b63c857b73298a3eb",
    "submitter": {
        "id": 2861,
        "url": "https://patches.dpdk.org/api/people/2861/?format=api",
        "name": "Andrew Boyer",
        "email": "Andrew.Boyer@amd.com"
    },
    "delegate": {
        "id": 319,
        "url": "https://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20221018194131.23006-29-andrew.boyer@amd.com/mbox/",
    "series": [
        {
            "id": 25088,
            "url": "https://patches.dpdk.org/api/series/25088/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=25088",
            "date": "2022-10-11T00:49:57",
            "name": "net/ionic: updates for 22.11 release",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/25088/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/118495/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/118495/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 DD191A0560;\n\tTue, 18 Oct 2022 21:47:14 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id EA7D242B6C;\n\tTue, 18 Oct 2022 21:47:12 +0200 (CEST)",
            "from NAM02-DM3-obe.outbound.protection.outlook.com\n (mail-dm3nam02on2041.outbound.protection.outlook.com [40.107.95.41])\n by mails.dpdk.org (Postfix) with ESMTP id A5A8C40E03\n for <dev@dpdk.org>; Tue, 18 Oct 2022 21:47:11 +0200 (CEST)",
            "from DM6PR06CA0067.namprd06.prod.outlook.com (2603:10b6:5:54::44) by\n MW4PR12MB6730.namprd12.prod.outlook.com (2603:10b6:303:1ec::7) with\n Microsoft\n SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.20.5723.29; Tue, 18 Oct 2022 19:47:06 +0000",
            "from DM6NAM11FT032.eop-nam11.prod.protection.outlook.com\n (2603:10b6:5:54:cafe::4d) by DM6PR06CA0067.outlook.office365.com\n (2603:10b6:5:54::44) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.31 via Frontend\n Transport; Tue, 18 Oct 2022 19:47:05 +0000",
            "from SATLEXMB04.amd.com (165.204.84.17) by\n DM6NAM11FT032.mail.protection.outlook.com (10.13.173.93) with Microsoft SMTP\n Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id\n 15.20.5746.16 via Frontend Transport; Tue, 18 Oct 2022 19:47:05 +0000",
            "from driver-dev1.pensando.io (10.180.168.240) by SATLEXMB04.amd.com\n (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 18 Oct\n 2022 14:47:03 -0500"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n b=JDAiWG7L5OjJjJ9rz1z9tbxBOUVGbn7mruCYBy0fTBjDI8QMU21XVqkA+qCTWJpTkGvnxVPpf69Su2ZdveTtOv4xBTU1c4S0KpdjWRnIq3VebV7rCTde+5CRITTLB91INO1azrFE4K1x7WfH88sR0fjWmpELPJHGw0rctixuM660BqCwufiYG+2NV74FQC7NXizLFSdTCXWyh/syyAAg0Lu6PfbUfW6Qz/NwxfQg+q80xTwVl2CgxKSMCE664j2NM4M4HNasuDIvqR1y5oeHVEVz70sRALVN2iQGOJWVaGWBm5iUbZ1bzcD2zI7/7tdJTHUQkwsmyk1DJu/7s3Sk7A==",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector9901;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;\n bh=HwVEpa5ivV8AbnWXjCY9NNfjsNcEyJGMcdiPfN5Trdg=;\n b=DIUOaw+LxmI0SSFcFl2xzf+hPzmTzXIrXYUiR+IcWwkFDPhlDb/mLpUeC3PxZz4ny4KJ5M3OCd3k6u1kGTgcgCgN36yWatlJeVh448z34ol7TLiyMgeT8CZFa8VJzKspgCv9FAOL+vSLz8uPnqW8ec1SwhbOHXCPJIuW3/XYSQ2bXHg42vpixfVPtQPZMCO5ado+HjbK+9DandDsmcF2GdjVjteJ60IRyyIKA37Bhe8484hCxEFAngXTP52P41xy8rts5d2T8pHWizGZgo61NgR4wqVrIY0Blg7Sx4vuu4NGRBZnn1OJ2whV3CZ/uM0PdcjRHP6WNdQdK6IlUh+wZg==",
        "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=pass (sender ip is\n 165.204.84.17) smtp.rcpttodomain=dpdk.org smtp.mailfrom=amd.com; dmarc=pass\n (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com;\n dkim=none (message not signed); arc=none",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=HwVEpa5ivV8AbnWXjCY9NNfjsNcEyJGMcdiPfN5Trdg=;\n b=RZoZoi/Mxof3nB1dilv2DeV/6EC19cOmxt9pmVdpNpUJJ0weR6cL6wRvq+qnrCxFNrUgGzN5rp5P5D8eKUqsqmpCNyRLam/wYip7FL9afkz6nwlZZ86tjCyoDkt8diQmKjNywLcIMFqxrlejTWbHXD0XmjyFDkpOppY3xqyD+Yg=",
        "X-MS-Exchange-Authentication-Results": "spf=pass (sender IP is 165.204.84.17)\n smtp.mailfrom=amd.com; dkim=none (message not signed)\n header.d=none;dmarc=pass action=none header.from=amd.com;",
        "Received-SPF": "Pass (protection.outlook.com: domain of amd.com designates\n 165.204.84.17 as permitted sender) receiver=protection.outlook.com;\n client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C",
        "From": "Andrew Boyer <andrew.boyer@amd.com>",
        "To": "<dev@dpdk.org>",
        "CC": "Andrew Boyer <andrew.boyer@amd.com>, Allen Hubbe <allen.hubbe@amd.com>",
        "Subject": "[PATCH v2 28/36] net/ionic: add Tx descriptor status function",
        "Date": "Tue, 18 Oct 2022 12:41:23 -0700",
        "Message-ID": "<20221018194131.23006-29-andrew.boyer@amd.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20221011005032.47584-1-andrew.boyer@amd.com>",
        "References": "<20221011005032.47584-1-andrew.boyer@amd.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Originating-IP": "[10.180.168.240]",
        "X-ClientProxiedBy": "SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com\n (10.181.40.145)",
        "X-EOPAttributedMessage": "0",
        "X-MS-PublicTrafficType": "Email",
        "X-MS-TrafficTypeDiagnostic": "DM6NAM11FT032:EE_|MW4PR12MB6730:EE_",
        "X-MS-Office365-Filtering-Correlation-Id": "25c0e7b1-edc1-463c-f7b6-08dab141891e",
        "X-MS-Exchange-SenderADCheck": "1",
        "X-MS-Exchange-AntiSpam-Relay": "0",
        "X-Microsoft-Antispam": "BCL:0;",
        "X-Microsoft-Antispam-Message-Info": "\n q68A+7s/KN2mk+x+lRMgyxc1IGgEmRNfkToqC6o8uo/wgSGgV7inNHj3PcfNmU4FOhxCEPd1qN2WkVspem1hZZS+K+2269MCHjuYxpNo0L2OfZkWW5Pvzuh4yLQfK5r89yGWluhF1tMZEEjWWevzA/2SfusdMfkeTAMM/wnsv3MCpgc5TbINNAzn/kvvZh9yMZC5B6nO46ZGtos+sEAg3XEYKuXBqAiD5pCo1mAWqPWWHVLm/vwDLvJtasluagyqpoLI/zMWE/Yx9C53nz7MuQRqQWfWknOU6TmNhDFd6WvpQdgxY3DZei0Z+ezJXJ544e/zOXVVEpxYmJKVu6VKnu8rkht1P71mQo92MdKv1d6BJ4m1W3+45ixlvBzXCKvZjdH91Br/Rn94vJVI9teg170zUQYb7aBSPDAN6rf4oxJCMSwCTYX8kbWzgj4sga3btKrtpCcvZuqsCG4Sx2TYT7ys6glpvv9Buj78rlb04PdsVyUF4frsG/nFcE3lOTlsFQlXdpUW/xqoAaRrM2vlebXb2giDyBLWSuFPCAedvSyJt0SojDA3CILqblQsA12D1x8tE98h8yJKGlfpcV1r0GWiYn0dZGL+lLnN+aSiWxfSlowVQXDT0PR2uc0ltQAM/40pkzXn2X5p0gsNI1JRry2wT+la2FFvJU3czfYu/p9nw7waUjAMtwMZpLEMNJjT88L+/5lDCvxt1ee7mdS6C9+AIhS6RobY9ao4kPkklJuaoBQWXF894e19JyhXMRz9WmU4ftrE7vAyFTBdr2RMuwWoxKadXwnrhrix8Di8Q/A=",
        "X-Forefront-Antispam-Report": "CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:;\n IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE;\n SFS:(13230022)(4636009)(136003)(346002)(376002)(39860400002)(396003)(451199015)(46966006)(36840700001)(40470700004)(478600001)(356005)(81166007)(6916009)(54906003)(8936002)(316002)(82740400003)(41300700001)(82310400005)(186003)(26005)(36756003)(40480700001)(4326008)(426003)(6666004)(1076003)(16526019)(40460700003)(2616005)(336012)(2906002)(5660300002)(47076005)(8676002)(86362001)(70586007)(36860700001)(44832011)(70206006)(36900700001);\n DIR:OUT; SFP:1101;",
        "X-OriginatorOrg": "amd.com",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "18 Oct 2022 19:47:05.7063 (UTC)",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n 25c0e7b1-edc1-463c-f7b6-08dab141891e",
        "X-MS-Exchange-CrossTenant-Id": "3dd8961f-e488-4e60-8e11-a82d994e183d",
        "X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp": "\n TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17];\n Helo=[SATLEXMB04.amd.com]",
        "X-MS-Exchange-CrossTenant-AuthSource": "\n DM6NAM11FT032.eop-nam11.prod.protection.outlook.com",
        "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "MW4PR12MB6730",
        "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": "This may be useful for clients.\n\nSigned-off-by: Andrew Boyer <andrew.boyer@amd.com>\nSigned-off-by: Allen Hubbe <allen.hubbe@amd.com>\n---\n doc/guides/nics/features/ionic.ini |  1 +\n drivers/net/ionic/ionic_ethdev.c   |  1 +\n drivers/net/ionic/ionic_rxtx.c     | 51 ++++++++++++++++++++++++++++++\n drivers/net/ionic/ionic_rxtx.h     |  1 +\n 4 files changed, 54 insertions(+)",
    "diff": "diff --git a/doc/guides/nics/features/ionic.ini b/doc/guides/nics/features/ionic.ini\nindex e01ba87135..af0fc5462a 100644\n--- a/doc/guides/nics/features/ionic.ini\n+++ b/doc/guides/nics/features/ionic.ini\n@@ -28,6 +28,7 @@ L3 checksum offload  = Y\n L4 checksum offload  = Y\n Packet type parsing  = Y\n Rx descriptor status = Y\n+Tx descriptor status = Y\n Basic stats          = Y\n Extended stats       = Y\n Stats per queue      = Y\ndiff --git a/drivers/net/ionic/ionic_ethdev.c b/drivers/net/ionic/ionic_ethdev.c\nindex f9b05e4a90..393d36d946 100644\n--- a/drivers/net/ionic/ionic_ethdev.c\n+++ b/drivers/net/ionic/ionic_ethdev.c\n@@ -985,6 +985,7 @@ eth_ionic_dev_init(struct rte_eth_dev *eth_dev, void *init_params)\n \teth_dev->tx_pkt_prepare = &ionic_prep_pkts;\n \n \teth_dev->rx_descriptor_status = ionic_dev_rx_descriptor_status;\n+\teth_dev->tx_descriptor_status = ionic_dev_tx_descriptor_status;\n \n \t/* Multi-process not supported, primary does initialization anyway */\n \tif (rte_eal_process_type() != RTE_PROC_PRIMARY)\ndiff --git a/drivers/net/ionic/ionic_rxtx.c b/drivers/net/ionic/ionic_rxtx.c\nindex 2c46a64dd2..24f498d910 100644\n--- a/drivers/net/ionic/ionic_rxtx.c\n+++ b/drivers/net/ionic/ionic_rxtx.c\n@@ -1274,3 +1274,54 @@ ionic_dev_rx_descriptor_status(void *rx_queue, uint16_t offset)\n \n \treturn RTE_ETH_RX_DESC_AVAIL;\n }\n+\n+int\n+ionic_dev_tx_descriptor_status(void *tx_queue, uint16_t offset)\n+{\n+\tstruct ionic_tx_qcq *txq = tx_queue;\n+\tstruct ionic_qcq *qcq = &txq->qcq;\n+\tstruct ionic_txq_comp *cq_desc;\n+\tuint16_t mask, head, tail, pos, cq_pos;\n+\tbool done_color;\n+\n+\tmask = qcq->q.size_mask;\n+\n+\t/* offset must be within the size of the ring */\n+\tif (offset > mask)\n+\t\treturn -EINVAL;\n+\n+\thead = qcq->q.head_idx;\n+\ttail = qcq->q.tail_idx;\n+\n+\t/* offset is beyond what is posted */\n+\tif (offset >= ((head - tail) & mask))\n+\t\treturn RTE_ETH_TX_DESC_DONE;\n+\n+\t/* interested in this absolute position in the txq */\n+\tpos = (tail + offset) & mask;\n+\n+\t/* tx cq position != tx q position, need to walk cq */\n+\tcq_pos = qcq->cq.tail_idx;\n+\tcq_desc = qcq->cq.base;\n+\tcq_desc = &cq_desc[cq_pos];\n+\n+\t/* how far behind is pos from head? */\n+\toffset = (head - pos) & mask;\n+\n+\t/* walk cq descriptors that match the expected done color */\n+\tdone_color = qcq->cq.done_color;\n+\twhile (color_match(cq_desc->color, done_color)) {\n+\t\t/* is comp index no further behind than pos? */\n+\t\ttail = rte_cpu_to_le_16(cq_desc->comp_index);\n+\t\tif (((head - tail) & mask) <= offset)\n+\t\t\treturn RTE_ETH_TX_DESC_DONE;\n+\n+\t\tcq_pos = (cq_pos + 1) & mask;\n+\t\tcq_desc = qcq->cq.base;\n+\t\tcq_desc = &cq_desc[cq_pos];\n+\n+\t\tdone_color = done_color != (cq_pos == 0);\n+\t}\n+\n+\treturn RTE_ETH_TX_DESC_FULL;\n+}\ndiff --git a/drivers/net/ionic/ionic_rxtx.h b/drivers/net/ionic/ionic_rxtx.h\nindex 09d8c9b152..5b9d9eac80 100644\n--- a/drivers/net/ionic/ionic_rxtx.h\n+++ b/drivers/net/ionic/ionic_rxtx.h\n@@ -41,6 +41,7 @@ void ionic_txq_info_get(struct rte_eth_dev *dev, uint16_t queue_id,\n \tstruct rte_eth_txq_info *qinfo);\n \n int ionic_dev_rx_descriptor_status(void *rx_queue, uint16_t offset);\n+int ionic_dev_tx_descriptor_status(void *tx_queue, uint16_t offset);\n \n const uint32_t *ionic_dev_supported_ptypes_get(struct rte_eth_dev *dev);\n \n",
    "prefixes": [
        "v2",
        "28/36"
    ]
}