get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 129493,
    "url": "http://patchwork.dpdk.org/api/patches/129493/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230712074215.3249336-4-qiming.yang@intel.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.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": "<20230712074215.3249336-4-qiming.yang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230712074215.3249336-4-qiming.yang@intel.com",
    "date": "2023-07-12T07:42:15",
    "name": "[3/3] net/e1000: fix Rx and Tx queue status",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "079bc645da1634f997ff702df4bcefc49df022cc",
    "submitter": {
        "id": 522,
        "url": "http://patchwork.dpdk.org/api/people/522/?format=api",
        "name": "Qiming Yang",
        "email": "qiming.yang@intel.com"
    },
    "delegate": {
        "id": 1540,
        "url": "http://patchwork.dpdk.org/api/users/1540/?format=api",
        "username": "qzhan15",
        "first_name": "Qi",
        "last_name": "Zhang",
        "email": "qi.z.zhang@intel.com"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20230712074215.3249336-4-qiming.yang@intel.com/mbox/",
    "series": [
        {
            "id": 28918,
            "url": "http://patchwork.dpdk.org/api/series/28918/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=28918",
            "date": "2023-07-12T07:42:12",
            "name": "fix Rx and Tx queue status get",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/28918/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/129493/comments/",
    "check": "fail",
    "checks": "http://patchwork.dpdk.org/api/patches/129493/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 BA1E242E52;\n\tWed, 12 Jul 2023 10:00:22 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 7293442C54;\n\tWed, 12 Jul 2023 10:00:10 +0200 (CEST)",
            "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n by mails.dpdk.org (Postfix) with ESMTP id 4561A427F5\n for <dev@dpdk.org>; Wed, 12 Jul 2023 10:00:07 +0200 (CEST)",
            "from orsmga004.jf.intel.com ([10.7.209.38])\n by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 12 Jul 2023 01:00:06 -0700",
            "from dpdk-qiming3.sh.intel.com ([10.67.111.4])\n by orsmga004.jf.intel.com with ESMTP; 12 Jul 2023 00:59:56 -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=1689148807; x=1720684807;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=2OB3z+lqKYgO4Yyf/dzrb1q0gTAcC0ZbVTJ7Nk+8N4g=;\n b=YxPzcvxIC3EbECZ7BU1YYrCJk7mTKcgCCmB9sWtixc8TFuhO0rcglB+j\n U3O0NML0uk2hyYNdibWNno/ZWodGS9beOZ6CGin1F/l1CWoMJDVncuRXa\n vOHMxZUJaNX8TVnh83pD4QiUj+peP2uO+hDtPEm/JkJko6OpbRZUhS/Gq\n yq4xKrMnIU8y+BU4JKK39dqETdbNV5ppuTr9Xrlzoqw18At1N7+10x2dF\n EIS14g2smZOIrA7aPjNwZhjsvrOQw+WLR9W1MGQ5FkfmOU0TLS1lWKKoj\n cOfZ9xNaWVS92J+V0Hw8jubN1heoCdFLcsyhwqOv0H9Yve8vW68bOMuRu A==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6600,9927,10768\"; a=\"354736666\"",
            "E=Sophos;i=\"6.01,199,1684825200\"; d=\"scan'208\";a=\"354736666\"",
            "E=McAfee;i=\"6600,9927,10768\"; a=\"845564079\"",
            "E=Sophos;i=\"6.01,199,1684825200\"; d=\"scan'208\";a=\"845564079\""
        ],
        "X-ExtLoop1": "1",
        "From": "Qiming Yang <qiming.yang@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "beilei.xing@intel.com, qi.z.zhang@intel.com,\n Qiming Yang <qiming.yang@intel.com>, Mingjin Ye <mingjinx.ye@intel.com>",
        "Subject": "[PATCH 3/3] net/e1000: fix Rx and Tx queue status",
        "Date": "Wed, 12 Jul 2023 07:42:15 +0000",
        "Message-Id": "<20230712074215.3249336-4-qiming.yang@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20230712074215.3249336-1-qiming.yang@intel.com>",
        "References": "<20230712074215.3249336-1-qiming.yang@intel.com>",
        "MIME-Version": "1.0",
        "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": "Igb driver don't enable queue start/stop functions, queue status is not\nupdated when the HW queue enabled or disabled. It caused application can't\nget correct queue status.\nThis patch fixes the issue by updating the queue states when the queue is\ndisabled or enabled.\n\nFixes: be2d648a2dd3 (\"igb: add PF support\")\n\nSigned-off-by: Qiming Yang <qiming.yang@intel.com>\nSigned-off-by: Mingjin Ye <mingjinx.ye@intel.com>\n---\n drivers/net/e1000/igb_rxtx.c | 4 ++++\n 1 file changed, 4 insertions(+)",
    "diff": "diff --git a/drivers/net/e1000/igb_rxtx.c b/drivers/net/e1000/igb_rxtx.c\nindex 25ad9eb4e5..61c6394310 100644\n--- a/drivers/net/e1000/igb_rxtx.c\n+++ b/drivers/net/e1000/igb_rxtx.c\n@@ -1854,6 +1854,7 @@ igb_dev_clear_queues(struct rte_eth_dev *dev)\n \t\tif (txq != NULL) {\n \t\t\tigb_tx_queue_release_mbufs(txq);\n \t\t\tigb_reset_tx_queue(txq, dev);\n+\t\t\tdev->data->tx_queue_state[i] = RTE_ETH_QUEUE_STATE_STOPPED;\n \t\t}\n \t}\n \n@@ -1862,6 +1863,7 @@ igb_dev_clear_queues(struct rte_eth_dev *dev)\n \t\tif (rxq != NULL) {\n \t\t\tigb_rx_queue_release_mbufs(rxq);\n \t\t\tigb_reset_rx_queue(rxq);\n+\t\t\tdev->data->rx_queue_state[i] = RTE_ETH_QUEUE_STATE_STOPPED;\n \t\t}\n \t}\n }\n@@ -2442,6 +2444,7 @@ eth_igb_rx_init(struct rte_eth_dev *dev)\n \t\trxdctl |= ((rxq->hthresh & 0x1F) << 8);\n \t\trxdctl |= ((rxq->wthresh & 0x1F) << 16);\n \t\tE1000_WRITE_REG(hw, E1000_RXDCTL(rxq->reg_idx), rxdctl);\n+\t\tdev->data->rx_queue_state[i] = RTE_ETH_QUEUE_STATE_STARTED;\n \t}\n \n \tif (dev->data->dev_conf.rxmode.offloads & RTE_ETH_RX_OFFLOAD_SCATTER) {\n@@ -2606,6 +2609,7 @@ eth_igb_tx_init(struct rte_eth_dev *dev)\n \t\ttxdctl |= ((txq->wthresh & 0x1F) << 16);\n \t\ttxdctl |= E1000_TXDCTL_QUEUE_ENABLE;\n \t\tE1000_WRITE_REG(hw, E1000_TXDCTL(txq->reg_idx), txdctl);\n+\t\tdev->data->tx_queue_state[i] = RTE_ETH_QUEUE_STATE_STARTED;\n \t}\n \n \t/* Program the Transmit Control Register. */\n",
    "prefixes": [
        "3/3"
    ]
}