get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 139518,
    "url": "http://patches.dpdk.org/api/patches/139518/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20240419031226.1191069-4-chaoyong.he@corigine.com/",
    "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": "<20240419031226.1191069-4-chaoyong.he@corigine.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20240419031226.1191069-4-chaoyong.he@corigine.com",
    "date": "2024-04-19T03:12:21",
    "name": "[3/8] net/nfp: adjust the data field of Rx/Tx queue",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "53f7a42580068d92f851f7c2ef97eae5f8fa8d60",
    "submitter": {
        "id": 2554,
        "url": "http://patches.dpdk.org/api/people/2554/?format=api",
        "name": "Chaoyong He",
        "email": "chaoyong.he@corigine.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20240419031226.1191069-4-chaoyong.he@corigine.com/mbox/",
    "series": [
        {
            "id": 31786,
            "url": "http://patches.dpdk.org/api/series/31786/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=31786",
            "date": "2024-04-19T03:12:18",
            "name": "refactor logic to support secondary process",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/31786/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/139518/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/139518/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 4250F43EA9;\n\tFri, 19 Apr 2024 05:13:16 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 4C52940687;\n\tFri, 19 Apr 2024 05:13:00 +0200 (CEST)",
            "from NAM12-BN8-obe.outbound.protection.outlook.com\n (mail-bn8nam12on2093.outbound.protection.outlook.com [40.107.237.93])\n by mails.dpdk.org (Postfix) with ESMTP id 63CAE40395\n for <dev@dpdk.org>; Fri, 19 Apr 2024 05:12:56 +0200 (CEST)",
            "from SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5)\n by BY1PR13MB6310.namprd13.prod.outlook.com (2603:10b6:a03:52e::10)\n with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.38; Fri, 19 Apr\n 2024 03:12:55 +0000",
            "from SJ0PR13MB5545.namprd13.prod.outlook.com\n ([fe80::ec12:7411:559a:850e]) by SJ0PR13MB5545.namprd13.prod.outlook.com\n ([fe80::ec12:7411:559a:850e%5]) with mapi id 15.20.7472.042; Fri, 19 Apr 2024\n 03:12:55 +0000"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n b=SkMUC5HWVWZ2W5EQcapYzozMpNluPzuYCxN2RaQsCLpSTCeyDUt7wjbWcokckpl4t8OTXPGUXRhZdWfCB5Aqq/BYbJOQmMJwwbK7xBPiBnKZFEH/eYCzfztVplVM6ZPp7ibew5P0kCRmdrtHs3pMAqJQJf36WmZydA7p3/hqZClqjC6EizWsJP7ne7jYcbdoroeTPytHyBXp7ufOTXsBfFlR+w6VL1J4ug6Dhrx+J8f9jW6MGi0RM4HrLDh83S3NcxjaGQHY7GWdrmyD7ZYvD6Z6+vw/wXr9x7wavFkjLRgKhkACRRbdLq8cvmibuduHD7OYkf7SGZ2PAS87C1kGjA==",
        "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=qLrU4LDRZRZFvGKPWtuEx+PpBj+Wc6LuAtSEPf/cUb0=;\n b=OjW2vQUU7HHeTLWgLM7a6YKXnuEqdNvLTxH+3eIASY/vqmjvQiChLkvf939FysuZEK1RMei6wtE0by7nkVmhXJ1okIi2CVmYNagrqK9XqPeVOSg/17Rf5f1qYS5ZNcePdY1FI1CmlTEREyNUDKkGMNRmOtKZDqo/Gw+ogXIttInj01PIcQOuIVaI5SE1ktrKKSCB0NDTmY02CKVOJmclHQXjcaN1BiEtey062M1O5f4VqP0uW6nlFT9B2YHESxlhe/cE8ripjOZP6HAUU5Ob/RiW+4O1cdSF+pkF2bHNHNvT7nG0VixUAN/eIUwd+BMF3Rb2AdMEbEWRRhdhUQOTGA==",
        "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=pass\n smtp.mailfrom=corigine.com; dmarc=pass action=none header.from=corigine.com;\n dkim=pass header.d=corigine.com; arc=none",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=corigine.onmicrosoft.com; s=selector2-corigine-onmicrosoft-com;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=qLrU4LDRZRZFvGKPWtuEx+PpBj+Wc6LuAtSEPf/cUb0=;\n b=s5jiARflhbIWDfOlburP00dEU+l5nM9AQZvGJia1AeL2+Fgcv/szk6iaG/RZyIe5go4pmU5PX8G5WUVD8age/0Pt+UmM83yWYvOgjfym2RigCDSla/rA31r80nr8WiBYjmzgLVJFlu3wZ/J3LAqhs74U1Hq70d9NDBEVdXmfo0E=",
        "Authentication-Results": "dkim=none (message not signed)\n header.d=none;dmarc=none action=none header.from=corigine.com;",
        "From": "Chaoyong He <chaoyong.he@corigine.com>",
        "To": "dev@dpdk.org",
        "Cc": "oss-drivers@corigine.com, Chaoyong He <chaoyong.he@corigine.com>,\n Long Wu <long.wu@corigine.com>, Peng Zhang <peng.zhang@corigine.com>",
        "Subject": "[PATCH 3/8] net/nfp: adjust the data field of Rx/Tx queue",
        "Date": "Fri, 19 Apr 2024 11:12:21 +0800",
        "Message-Id": "<20240419031226.1191069-4-chaoyong.he@corigine.com>",
        "X-Mailer": "git-send-email 2.39.1",
        "In-Reply-To": "<20240419031226.1191069-1-chaoyong.he@corigine.com>",
        "References": "<20240419031226.1191069-1-chaoyong.he@corigine.com>",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-ClientProxiedBy": "SI2PR01CA0044.apcprd01.prod.exchangelabs.com\n (2603:1096:4:193::8) To SJ0PR13MB5545.namprd13.prod.outlook.com\n (2603:10b6:a03:424::5)",
        "MIME-Version": "1.0",
        "X-MS-PublicTrafficType": "Email",
        "X-MS-TrafficTypeDiagnostic": "SJ0PR13MB5545:EE_|BY1PR13MB6310:EE_",
        "X-MS-Office365-Filtering-Correlation-Id": "b797d433-199c-4d12-0a36-08dc601e9b2d",
        "X-MS-Exchange-SenderADCheck": "1",
        "X-MS-Exchange-AntiSpam-Relay": "0",
        "X-Microsoft-Antispam": "BCL:0;",
        "X-Microsoft-Antispam-Message-Info": "\n t9B5r5RLoJSRpCJbKw4IOS4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G4qNhtpL5aVbc50L/xmLO7IvcwYThQ48SAidNHRd2KDg2Bi762IDWHV4fGijGlJW+A72wNrzHpjVeV80QoDa1tSEZ5de4LTyklewRdwfQnKDr/eq+LdJg/qOFExxayGshFQ2+DaAXBmpc8eTS4VtHNb4OX65n8VubcKYwjLnZ4EuXAEU8ZcENQDSrVxIgGZf2XAZbu2DF+S3DcKOpRG6okOVyQtppjfQqdzw0fjxatAtA4obhJggxE8cYy8ug==",
        "X-Forefront-Antispam-Report": "CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;\n IPV:NLI; SFV:NSPM; H:SJ0PR13MB5545.namprd13.prod.outlook.com; PTR:; CAT:NONE;\n SFS:(13230031)(366007)(52116005)(376005)(1800799015)(38350700005); DIR:OUT;\n SFP:1102;",
        "X-MS-Exchange-AntiSpam-MessageData-ChunkCount": "1",
        "X-MS-Exchange-AntiSpam-MessageData-0": "\n K8Tv/p+VG8SwT67THZy+OsuzQRKs0IWuAWrSOocu6cs1WAhKjYsdN/OML2Jn3WcbVQzGONFGdzlAq4RWY0GLXbNsnoM+AGXZoHMeUskI5f7bUpX9DOVBcrRRuOKsPa+9qQUhAngjm0/ziR/1OoalHITUwZbRyj9jxSyivfuqlUBtIpqkiMtwuaIi1ncMDQVpjcZc5OLyOFRkbJZU/6VEHXbedByo81z7U8HRwz7YPbfYmOo/x5etYaHWg9Yrs9f1XC9Tubz78iZSlCZWcGLAH9D+8F90xT739DRdy3T5hkuCoOPbnqtnExv5CsTrGac9BwWOfw3M8aLNM8YWtaL77r5QffQfALrYBif4qKAXU/Ueqf7B5k0sF2YyLkctAXPHAsG2dKMS18V6H5Ik9AF9M7Wnh3670kgqkFpkxEYdyR+qdaYm+4wfeUCX+6Ct6Hv7ck5mTYPdHV0yW0W8gGH7ifQufrlWC2PF9RmwGx+ZCNQ2yP+rKQt6pB+0E166LaVCLrDP83Am8vj8wUFXoj6PKss+7D4Gnfxkv3ydlT9hJ2elgQF0tT19h5J7C2Qk40YP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Exchange-CrossTenant-Network-Message-Id": "\n b797d433-199c-4d12-0a36-08dc601e9b2d",
        "X-MS-Exchange-CrossTenant-AuthSource": "SJ0PR13MB5545.namprd13.prod.outlook.com",
        "X-MS-Exchange-CrossTenant-AuthAs": "Internal",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "19 Apr 2024 03:12:54.9957 (UTC)",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "Hosted",
        "X-MS-Exchange-CrossTenant-Id": "fe128f2c-073b-4c20-818e-7246a585940c",
        "X-MS-Exchange-CrossTenant-MailboxType": "HOSTED",
        "X-MS-Exchange-CrossTenant-UserPrincipalName": "\n 4GuIJQacAzSwNUg5hGknbp4sGvYxrUlhmMTEXIMepB3PLIebwK9nQ1j8JpJwTd6Yh3li5jm9W8JWNWyUsK/FXPRHBRoxp06zMJie3ek8ss8=",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "BY1PR13MB6310",
        "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": "Adjust the data field of Rx/Tx queue structure, move the cold data back\nand hold position for hot data.\n\nSigned-off-by: Chaoyong He <chaoyong.he@corigine.com>\nReviewed-by: Long Wu <long.wu@corigine.com>\nReviewed-by: Peng Zhang <peng.zhang@corigine.com>\n---\n drivers/net/nfp/nfp_rxtx.h | 71 +++++++++++++++++++-------------------\n 1 file changed, 36 insertions(+), 35 deletions(-)",
    "diff": "diff --git a/drivers/net/nfp/nfp_rxtx.h b/drivers/net/nfp/nfp_rxtx.h\nindex f463b9cf75..0aa73a6432 100644\n--- a/drivers/net/nfp/nfp_rxtx.h\n+++ b/drivers/net/nfp/nfp_rxtx.h\n@@ -31,21 +31,6 @@ struct nfp_net_txq {\n \t/** Backpointer to nfp_net structure */\n \tstruct nfp_net_hw *hw;\n \n-\t/** Point to the base of the queue structure on the NFP. */\n-\tuint8_t *qcp_q;\n-\n-\t/**\n-\t * Host side read and write pointer, they are free running and\n-\t * have little relation to the QCP pointers.\n-\t */\n-\tuint32_t wr_p;\n-\tuint32_t rd_p;\n-\n-\t/** The size of the queue in number of descriptors. */\n-\tuint32_t tx_count;\n-\n-\tuint32_t tx_free_thresh;\n-\n \t/**\n \t * For each descriptor keep a reference to the mbuf and\n \t * DMA address used until completion is signalled.\n@@ -61,6 +46,18 @@ struct nfp_net_txq {\n \t\tstruct nfp_net_nfdk_tx_desc *ktxds;\n \t};\n \n+\t/**\n+\t * Host side read and write pointer, they are free running and\n+\t * have little relation to the QCP pointers.\n+\t */\n+\tuint32_t wr_p;\n+\tuint32_t rd_p;\n+\n+\t/** The size of the queue in number of descriptors. */\n+\tuint32_t tx_count;\n+\n+\tuint32_t tx_free_thresh;\n+\n \t/** The index of the QCP queue relative to the TX queue BAR. */\n \tuint32_t tx_qcidx;\n \n@@ -72,8 +69,8 @@ struct nfp_net_txq {\n \tuint16_t data_pending;\n \n \t/**\n-\t * At this point 58 bytes have been used for all the fields in the\n-\t * TX critical path. We have room for 6 bytes and still all placed\n+\t * At this point 50 bytes have been used for all the fields in the\n+\t * TX critical path. We have room for 14 bytes and still all placed\n \t * in a cache line.\n \t */\n \tuint64_t dma;\n@@ -83,6 +80,9 @@ struct nfp_net_txq {\n \n \t/** TX pointer ring write back area DMA address */\n \tuint64_t txrwb_dma;\n+\n+\t/** Point to the base of the queue structure on the NFP. */\n+\tuint8_t *qcp_q;\n } __rte_aligned(64);\n \n /* RX and freelist descriptor format */\n@@ -145,19 +145,6 @@ struct nfp_net_rxq {\n \t */\n \tuint8_t *qcp_fl;\n \n-\t/**\n-\t * Host side read pointer, free running and have little relation\n-\t * to the QCP pointers. It is where the driver start reading\n-\t * descriptors for newly arrive packets from.\n-\t */\n-\tuint32_t rd_p;\n-\n-\t/**\n-\t * The index of the QCP queue relative to the RX queue BAR\n-\t * used for the freelist.\n-\t */\n-\tuint32_t fl_qcidx;\n-\n \t/**\n \t * For each buffer placed on the freelist, record the\n \t * associated mbuf.\n@@ -177,6 +164,14 @@ struct nfp_net_rxq {\n \t * safely copied to the mbuf using the NFP_NET_RX_OFFSET.\n \t */\n \tstruct rte_mempool *mem_pool;\n+\n+\t/**\n+\t * Host side read pointer, free running and have little relation\n+\t * to the QCP pointers. It is where the driver start reading\n+\t * descriptors for newly arrive packets from.\n+\t */\n+\tuint32_t rd_p;\n+\n \tuint16_t mbuf_size;\n \n \t/**\n@@ -186,9 +181,6 @@ struct nfp_net_rxq {\n \tuint16_t rx_free_thresh;\n \tuint16_t nb_rx_hold;\n \n-\t /** The size of the queue in number of descriptors */\n-\tuint16_t rx_count;\n-\n \t/** Referencing dev->data->port_id */\n \tuint16_t port_id;\n \n@@ -196,11 +188,20 @@ struct nfp_net_rxq {\n \tuint16_t qidx;\n \n \t/**\n-\t * At this point 60 bytes have been used for all the fields in the\n-\t * RX critical path. We have room for 4 bytes and still all placed\n+\t * At this point 54 bytes have been used for all the fields in the\n+\t * RX critical path. We have room for 10 bytes and still all placed\n \t * in a cache line.\n \t */\n \n+\t/** The size of the queue in number of descriptors */\n+\tuint16_t rx_count;\n+\n+\t/**\n+\t * The index of the QCP queue relative to the RX queue BAR\n+\t * used for the freelist.\n+\t */\n+\tuint32_t fl_qcidx;\n+\n \t/** DMA address of the queue */\n \tuint64_t dma;\n } __rte_aligned(64);\n",
    "prefixes": [
        "3/8"
    ]
}