get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 128105,
    "url": "http://patches.dpdk.org/api/patches/128105/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230605090641.36525-5-beilei.xing@intel.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": "<20230605090641.36525-5-beilei.xing@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230605090641.36525-5-beilei.xing@intel.com",
    "date": "2023-06-05T09:06:31",
    "name": "[v9,04/14] net/cpfl: support hairpin queue capbility get",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "e3b95be3c6ecd3ab5e6eecf3e2979293f7de00ac",
    "submitter": {
        "id": 410,
        "url": "http://patches.dpdk.org/api/people/410/?format=api",
        "name": "Xing, Beilei",
        "email": "beilei.xing@intel.com"
    },
    "delegate": {
        "id": 1540,
        "url": "http://patches.dpdk.org/api/users/1540/?format=api",
        "username": "qzhan15",
        "first_name": "Qi",
        "last_name": "Zhang",
        "email": "qi.z.zhang@intel.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20230605090641.36525-5-beilei.xing@intel.com/mbox/",
    "series": [
        {
            "id": 28351,
            "url": "http://patches.dpdk.org/api/series/28351/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=28351",
            "date": "2023-06-05T09:06:27",
            "name": "net/cpfl: add hairpin queue support",
            "version": 9,
            "mbox": "http://patches.dpdk.org/series/28351/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/128105/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/128105/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 3EC3B42C34;\n\tMon,  5 Jun 2023 11:32:20 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 5857D42D36;\n\tMon,  5 Jun 2023 11:32:06 +0200 (CEST)",
            "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n by mails.dpdk.org (Postfix) with ESMTP id 88FD0427F2\n for <dev@dpdk.org>; Mon,  5 Jun 2023 11:32:03 +0200 (CEST)",
            "from orsmga001.jf.intel.com ([10.7.209.18])\n by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 05 Jun 2023 02:32:01 -0700",
            "from dpdk-beileix-3.sh.intel.com ([10.67.110.253])\n by orsmga001.jf.intel.com with ESMTP; 05 Jun 2023 02:32:00 -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=1685957523; x=1717493523;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=ehwtPl09hBFYmOt36mTYt7mzkw0GSat4WthFB4XzqCY=;\n b=X9LZPb13CIq926lUDzOmKHQc8mGuO4SfCuBFZrlgoLBl/2B33uZtwZUa\n MHvih2el/ZaMyIlHN5WuH9A7p/roQlUNb+EFYMrzWWwDRkFpgE7j/4xmL\n 3+zOUWRusFM2nvu0aaKnV64EAVg+xUT506mIpdYqXDnpUE2+CMQBGh/Ed\n tXS9zFKQd32RsHR5AvPqup4EQ7xo55H1g1+g3WGv89aginxXE4BYvc02p\n /ABzkRjQA5UOUGlQmljhAOvsLeri281CAxKv0QGRxkQzf01Hcx50Q/Tgq\n Z0QAD/a1CpLZivL1L3krB1+QC9hHbuR0p47YFI4phwUFJRhkpVzYgyS8V g==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6600,9927,10731\"; a=\"355181055\"",
            "E=Sophos;i=\"6.00,217,1681196400\"; d=\"scan'208\";a=\"355181055\"",
            "E=McAfee;i=\"6600,9927,10731\"; a=\"741652036\"",
            "E=Sophos;i=\"6.00,217,1681196400\"; d=\"scan'208\";a=\"741652036\""
        ],
        "X-ExtLoop1": "1",
        "From": "beilei.xing@intel.com",
        "To": "jingjing.wu@intel.com",
        "Cc": "dev@dpdk.org, mingxia.liu@intel.com, Beilei Xing <beilei.xing@intel.com>,\n Xiao Wang <xiao.w.wang@intel.com>",
        "Subject": "[PATCH v9 04/14] net/cpfl: support hairpin queue capbility get",
        "Date": "Mon,  5 Jun 2023 09:06:31 +0000",
        "Message-Id": "<20230605090641.36525-5-beilei.xing@intel.com>",
        "X-Mailer": "git-send-email 2.26.2",
        "In-Reply-To": "<20230605090641.36525-1-beilei.xing@intel.com>",
        "References": "<20230605061724.88130-1-beilei.xing@intel.com>\n <20230605090641.36525-1-beilei.xing@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": "From: Beilei Xing <beilei.xing@intel.com>\n\nThis patch adds hairpin_cap_get ops support.\n\nSigned-off-by: Xiao Wang <xiao.w.wang@intel.com>\nSigned-off-by: Mingxia Liu <mingxia.liu@intel.com>\nSigned-off-by: Beilei Xing <beilei.xing@intel.com>\n---\n drivers/net/cpfl/cpfl_ethdev.c | 18 ++++++++++++++++++\n drivers/net/cpfl/cpfl_rxtx.h   |  3 +++\n 2 files changed, 21 insertions(+)",
    "diff": "diff --git a/drivers/net/cpfl/cpfl_ethdev.c b/drivers/net/cpfl/cpfl_ethdev.c\nindex 7f34cd288c..4a7e1124b1 100644\n--- a/drivers/net/cpfl/cpfl_ethdev.c\n+++ b/drivers/net/cpfl/cpfl_ethdev.c\n@@ -154,6 +154,23 @@ cpfl_dev_link_update(struct rte_eth_dev *dev,\n \treturn rte_eth_linkstatus_set(dev, &new_link);\n }\n \n+static int\n+cpfl_hairpin_cap_get(struct rte_eth_dev *dev,\n+\t\t     struct rte_eth_hairpin_cap *cap)\n+{\n+\tstruct cpfl_vport *cpfl_vport = dev->data->dev_private;\n+\n+\tif (cpfl_vport->p2p_q_chunks_info == NULL)\n+\t\treturn -ENOTSUP;\n+\n+\tcap->max_nb_queues = CPFL_MAX_P2P_NB_QUEUES;\n+\tcap->max_rx_2_tx = CPFL_MAX_HAIRPINQ_RX_2_TX;\n+\tcap->max_tx_2_rx = CPFL_MAX_HAIRPINQ_TX_2_RX;\n+\tcap->max_nb_desc = CPFL_MAX_HAIRPINQ_NB_DESC;\n+\n+\treturn 0;\n+}\n+\n static int\n cpfl_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)\n {\n@@ -904,6 +921,7 @@ static const struct eth_dev_ops cpfl_eth_dev_ops = {\n \t.xstats_get\t\t\t= cpfl_dev_xstats_get,\n \t.xstats_get_names\t\t= cpfl_dev_xstats_get_names,\n \t.xstats_reset\t\t\t= cpfl_dev_xstats_reset,\n+\t.hairpin_cap_get\t\t= cpfl_hairpin_cap_get,\n };\n \n static int\ndiff --git a/drivers/net/cpfl/cpfl_rxtx.h b/drivers/net/cpfl/cpfl_rxtx.h\nindex 1fe65778f0..a4a164d462 100644\n--- a/drivers/net/cpfl/cpfl_rxtx.h\n+++ b/drivers/net/cpfl/cpfl_rxtx.h\n@@ -14,6 +14,9 @@\n #define CPFL_MAX_RING_DESC\t4096\n #define CPFL_DMA_MEM_ALIGN\t4096\n \n+#define CPFL_MAX_HAIRPINQ_RX_2_TX\t1\n+#define CPFL_MAX_HAIRPINQ_TX_2_RX\t1\n+#define CPFL_MAX_HAIRPINQ_NB_DESC\t1024\n #define CPFL_MAX_P2P_NB_QUEUES\t16\n #define CPFL_P2P_NB_RX_BUFQ\t1\n #define CPFL_P2P_NB_TX_COMPLQ\t1\n",
    "prefixes": [
        "v9",
        "04/14"
    ]
}