get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 118878,
    "url": "http://patchwork.dpdk.org/api/patches/118878/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20221021051821.2164939-7-junfeng.guo@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": "<20221021051821.2164939-7-junfeng.guo@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20221021051821.2164939-7-junfeng.guo@intel.com",
    "date": "2022-10-21T05:18:13",
    "name": "[v9,06/14] net/idpf: add support for device information get",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "59917a6298fe5f15609c56df43b742aeb8797af0",
    "submitter": {
        "id": 1785,
        "url": "http://patchwork.dpdk.org/api/people/1785/?format=api",
        "name": "Junfeng Guo",
        "email": "junfeng.guo@intel.com"
    },
    "delegate": {
        "id": 3961,
        "url": "http://patchwork.dpdk.org/api/users/3961/?format=api",
        "username": "arybchenko",
        "first_name": "Andrew",
        "last_name": "Rybchenko",
        "email": "andrew.rybchenko@oktetlabs.ru"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20221021051821.2164939-7-junfeng.guo@intel.com/mbox/",
    "series": [
        {
            "id": 25359,
            "url": "http://patchwork.dpdk.org/api/series/25359/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=25359",
            "date": "2022-10-21T05:18:07",
            "name": "add support for idpf PMD in DPDK",
            "version": 9,
            "mbox": "http://patchwork.dpdk.org/series/25359/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/118878/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/118878/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 6023FA0552;\n\tFri, 21 Oct 2022 07:20:40 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 0873D42BC5;\n\tFri, 21 Oct 2022 07:20:07 +0200 (CEST)",
            "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n by mails.dpdk.org (Postfix) with ESMTP id F1BEC42BBC\n for <dev@dpdk.org>; Fri, 21 Oct 2022 07:20:02 +0200 (CEST)",
            "from fmsmga001.fm.intel.com ([10.253.24.23])\n by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 20 Oct 2022 22:20:02 -0700",
            "from dpdk-jf-ntb-one.sh.intel.com ([10.67.111.104])\n by fmsmga001.fm.intel.com with ESMTP; 20 Oct 2022 22:20: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=1666329603; x=1697865603;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=TQnsOnaCjJtutq80497m3q44L6w/dusdLHFbOyCn8ag=;\n b=Z/a2O5iK5v3mJngbRdRy8tguVX7z5qSE32ALlk+sIVmjB2hcIXA3kR9C\n 6tIrG78AJg2LO0M8sleegy4l5/EixphvlMkZduT5MNv3I/Fq8O927vhH7\n G/ywkMwg68KT8sQelj0HTF8PfYiBTTdHgY24AtmpbdAHmNbMp9uG/4Lpy\n 16lg4drRYdGARpmTR6pmR/1RKPOQrgPXHMKwB6oJgHlU90YOgEree1Djq\n /Ob2gCZKThxaj03sN4hldAMSVlIJGqmIY1TYbQi3D7/wXDlN+8BCzSaPC\n kxsRyPHZFA8eg843QINhI2r1ZhQauIuM7CaqXVW5TsIth/HRaRqRlV3sk g==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6500,9779,10506\"; a=\"371128574\"",
            "E=Sophos;i=\"5.95,200,1661842800\"; d=\"scan'208\";a=\"371128574\"",
            "E=McAfee;i=\"6500,9779,10506\"; a=\"772826353\"",
            "E=Sophos;i=\"5.95,200,1661842800\"; d=\"scan'208\";a=\"772826353\""
        ],
        "X-ExtLoop1": "1",
        "From": "Junfeng Guo <junfeng.guo@intel.com>",
        "To": "andrew.rybchenko@oktetlabs.ru, qi.z.zhang@intel.com,\n jingjing.wu@intel.com,\n beilei.xing@intel.com",
        "Cc": "dev@dpdk.org,\n\tJunfeng Guo <junfeng.guo@intel.com>",
        "Subject": "[PATCH v9 06/14] net/idpf: add support for device information get",
        "Date": "Fri, 21 Oct 2022 13:18:13 +0800",
        "Message-Id": "<20221021051821.2164939-7-junfeng.guo@intel.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "In-Reply-To": "<20221021051821.2164939-1-junfeng.guo@intel.com>",
        "References": "<20221020062951.645121-2-junfeng.guo@intel.com>\n <20221021051821.2164939-1-junfeng.guo@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": "Add dev ops dev_infos_get.\n\nSigned-off-by: Beilei Xing <beilei.xing@intel.com>\nSigned-off-by: Junfeng Guo <junfeng.guo@intel.com>\n---\n drivers/net/idpf/idpf_ethdev.c | 50 ++++++++++++++++++++++++++++++++++\n 1 file changed, 50 insertions(+)",
    "diff": "diff --git a/drivers/net/idpf/idpf_ethdev.c b/drivers/net/idpf/idpf_ethdev.c\nindex c25f222c5e..d1b6797d4a 100644\n--- a/drivers/net/idpf/idpf_ethdev.c\n+++ b/drivers/net/idpf/idpf_ethdev.c\n@@ -30,6 +30,8 @@ static int idpf_dev_configure(struct rte_eth_dev *dev);\n static int idpf_dev_start(struct rte_eth_dev *dev);\n static int idpf_dev_stop(struct rte_eth_dev *dev);\n static int idpf_dev_close(struct rte_eth_dev *dev);\n+static int idpf_dev_info_get(struct rte_eth_dev *dev,\n+\t\t\t     struct rte_eth_dev_info *dev_info);\n static void idpf_adapter_rel(struct idpf_adapter *adapter);\n \n int\n@@ -65,9 +67,57 @@ static const struct eth_dev_ops idpf_eth_dev_ops = {\n \t.rx_queue_release\t\t= idpf_dev_rx_queue_release,\n \t.tx_queue_setup\t\t\t= idpf_tx_queue_setup,\n \t.tx_queue_release\t\t= idpf_dev_tx_queue_release,\n+\t.dev_infos_get\t\t\t= idpf_dev_info_get,\n \t.link_update\t\t\t= idpf_dev_link_update,\n };\n \n+static int\n+idpf_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)\n+{\n+\tstruct idpf_vport *vport = dev->data->dev_private;\n+\tstruct idpf_adapter *adapter = vport->adapter;\n+\n+\tdev_info->max_rx_queues = adapter->caps->max_rx_q;\n+\tdev_info->max_tx_queues = adapter->caps->max_tx_q;\n+\tdev_info->min_rx_bufsize = IDPF_MIN_BUF_SIZE;\n+\tdev_info->max_rx_pktlen = IDPF_MAX_FRAME_SIZE;\n+\n+\tdev_info->max_mac_addrs = IDPF_NUM_MACADDR_MAX;\n+\tdev_info->dev_capa = RTE_ETH_DEV_CAPA_RUNTIME_RX_QUEUE_SETUP |\n+\t\tRTE_ETH_DEV_CAPA_RUNTIME_TX_QUEUE_SETUP;\n+\n+\tdev_info->default_rxconf = (struct rte_eth_rxconf) {\n+\t\t.rx_free_thresh = IDPF_DEFAULT_RX_FREE_THRESH,\n+\t\t.rx_drop_en = 0,\n+\t\t.offloads = 0,\n+\t};\n+\n+\tdev_info->default_txconf = (struct rte_eth_txconf) {\n+\t\t.tx_free_thresh = IDPF_DEFAULT_TX_FREE_THRESH,\n+\t\t.tx_rs_thresh = IDPF_DEFAULT_TX_RS_THRESH,\n+\t\t.offloads = 0,\n+\t};\n+\n+\tdev_info->rx_desc_lim = (struct rte_eth_desc_lim) {\n+\t\t.nb_max = IDPF_MAX_RING_DESC,\n+\t\t.nb_min = IDPF_MIN_RING_DESC,\n+\t\t.nb_align = IDPF_ALIGN_RING_DESC,\n+\t};\n+\n+\tdev_info->tx_desc_lim = (struct rte_eth_desc_lim) {\n+\t\t.nb_max = IDPF_MAX_RING_DESC,\n+\t\t.nb_min = IDPF_MIN_RING_DESC,\n+\t\t.nb_align = IDPF_ALIGN_RING_DESC,\n+\t};\n+\n+\tdev_info->default_rxportconf.burst_size = IDPF_RX_MAX_BURST;\n+\tdev_info->default_txportconf.burst_size = IDPF_TX_MAX_BURST;\n+\tdev_info->default_rxportconf.nb_queues = 1;\n+\tdev_info->default_txportconf.nb_queues = 1;\n+\n+\treturn 0;\n+}\n+\n static int\n idpf_init_vport_req_info(struct rte_eth_dev *dev)\n {\n",
    "prefixes": [
        "v9",
        "06/14"
    ]
}