get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 41073,
    "url": "https://patches.dpdk.org/api/patches/41073/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20180613162519.19205-1-adrien.mazarguil@6wind.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": "<20180613162519.19205-1-adrien.mazarguil@6wind.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20180613162519.19205-1-adrien.mazarguil@6wind.com",
    "date": "2018-06-13T16:27:43",
    "name": "app/testpmd: fix crash when attaching a device",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "f5965589ae93496f74dc9c4f84119914a55e8ab4",
    "submitter": {
        "id": 165,
        "url": "https://patches.dpdk.org/api/people/165/?format=api",
        "name": "Adrien Mazarguil",
        "email": "adrien.mazarguil@6wind.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/20180613162519.19205-1-adrien.mazarguil@6wind.com/mbox/",
    "series": [
        {
            "id": 113,
            "url": "https://patches.dpdk.org/api/series/113/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=113",
            "date": "2018-06-13T16:27:43",
            "name": "app/testpmd: fix crash when attaching a device",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/113/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/41073/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/41073/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id DFB3C1EF35;\n\tWed, 13 Jun 2018 18:28:01 +0200 (CEST)",
            "from mail-wr0-f195.google.com (mail-wr0-f195.google.com\n\t[209.85.128.195]) by dpdk.org (Postfix) with ESMTP id 147781EF24\n\tfor <dev@dpdk.org>; Wed, 13 Jun 2018 18:28:00 +0200 (CEST)",
            "by mail-wr0-f195.google.com with SMTP id w7-v6so3410648wrn.6\n\tfor <dev@dpdk.org>; Wed, 13 Jun 2018 09:28:00 -0700 (PDT)",
            "from 6wind.com (host.78.145.23.62.rev.coltfrance.com.\n\t[62.23.145.78]) by smtp.gmail.com with ESMTPSA id\n\tt17-v6sm4100789wrr.82.2018.06.13.09.27.58\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tWed, 13 Jun 2018 09:27:59 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=6wind-com.20150623.gappssmtp.com; s=20150623;\n\th=date:from:to:cc:subject:message-id:mime-version:content-disposition;\n\tbh=bbIWGVmA7Okm8sQEO21yp/eAbr7FeTc3mWIMi+XhiDE=;\n\tb=d6yAkq7nBo66ZFMEQ3YFqK8HqYgF23SczZMbWadYNA+uE54jiUv/uPB4ybql54S9t5\n\tsZrrYt/NsFAUKHs20dabOUfgXO22JCGkgY8YgjIORYx5u7PjIvreHxd3/tlGo/eYo0YX\n\tG+ypbI7mBVr9SlNzcgyPl8p86TuHF+C2PFuj/xVaN59429N7psxajorsV/PlsWmc/F9o\n\txEExsal6ewTRxL7/g5GbUD8h9E+KxwkzIkw45ob6fimjE1/u5k0g5YV+iKSdW4GFqecP\n\t+zIqll32YF6ZOSSl6xShQbqmbM1UetkpFFqXTnP0QfyutiyJhSH4yEQ+gi5TjLiJbSfx\n\tQJ+Q==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version\n\t:content-disposition;\n\tbh=bbIWGVmA7Okm8sQEO21yp/eAbr7FeTc3mWIMi+XhiDE=;\n\tb=UOT45MjVvdrxELh112JXtnZOBdcxEjLxpOAlLQyVX/8WPZmpEJ0EqG99hn4YN6veWJ\n\tr5FzcOK+fzNcuKZTFdxlq8/OYYIz3qUgouoK6Z36szEtrLkw38cslXntV7EIDmnIsnF9\n\tueNZacwsvYEE87BlrC27kfvKT//tRzOghd+6xaPVzrecQb9PCbdbWpcOPsfwS1bm6/fc\n\txYJgesKIV47v4uLK0HBRZfylrORy019fnIzKmbsCssY8CR+arLhEJ0rDAK//3NerizZl\n\tEnBAbiGEkKcW2uS8lniaPiIqMZhOpPbi/LXAYXhFCfNXv9CjE6+j+02QEUwKxdOZF5PV\n\t3qMA==",
        "X-Gm-Message-State": "APt69E3pdVDXf5cPGUrZYrCk8LDJsomoEIQhtdjqL/tT4PxEYCvHgEUH\n\tpfvCy3ui758HmqqDWAgqJrzJyg==",
        "X-Google-Smtp-Source": "ADUXVKLFIMZeIlrV1U+RC6JGG9VpT27sgu1dZgx/tnyLbwVijkXtZ1LnOp0SBTvAD6X8kNdgPS2XHQ==",
        "X-Received": "by 2002:adf:a292:: with SMTP id\n\ts18-v6mr4624342wra.114.1528907279832; \n\tWed, 13 Jun 2018 09:27:59 -0700 (PDT)",
        "Date": "Wed, 13 Jun 2018 18:27:43 +0200",
        "From": "Adrien Mazarguil <adrien.mazarguil@6wind.com>",
        "To": "Wenzhuo Lu <wenzhuo.lu@intel.com>, Jingjing Wu <jingjing.wu@intel.com>, \n\tBernard Iremonger <bernard.iremonger@intel.com>",
        "Cc": "dev@dpdk.org, stable@dpdk.org,\n\tJasvinder Singh <jasvinder.singh@intel.com>, \n\t\"Xueming(steven) Li\" <xuemingl@mellanox.com>",
        "Message-ID": "<20180613162519.19205-1-adrien.mazarguil@6wind.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=us-ascii",
        "Content-Disposition": "inline",
        "X-Mailer": "git-send-email 2.11.0",
        "Subject": "[dpdk-dev] [PATCH] app/testpmd: fix crash when attaching a device",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Below commit checks global device information to determine if a port uses\nthe softnic driver once initialized. Problem is that this information is\nnot available at this point when a port is initialized interactively\nthrough a \"port attach XXX\" command, crashing testpmd.\n\nThis patch systematically initializes global device information to address\nthis issue.\n\nFixes: 5b590fbe09b6 (\"app/testpmd: add traffic management forwarding mode\")\nCc: stable@dpdk.org\nCc: Jasvinder Singh <jasvinder.singh@intel.com>\n\nSigned-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>\n---\n app/test-pmd/testpmd.c | 5 ++---\n 1 file changed, 2 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c\nindex 35cf26674..24c199844 100644\n--- a/app/test-pmd/testpmd.c\n+++ b/app/test-pmd/testpmd.c\n@@ -2355,16 +2355,15 @@ init_port_config(void)\n {\n \tportid_t pid;\n \tstruct rte_port *port;\n-\tstruct rte_eth_dev_info dev_info;\n \n \tRTE_ETH_FOREACH_DEV(pid) {\n \t\tport = &ports[pid];\n \t\tport->dev_conf.fdir_conf = fdir_conf;\n+\t\trte_eth_dev_info_get(pid, &port->dev_info);\n \t\tif (nb_rxq > 1) {\n-\t\t\trte_eth_dev_info_get(pid, &dev_info);\n \t\t\tport->dev_conf.rx_adv_conf.rss_conf.rss_key = NULL;\n \t\t\tport->dev_conf.rx_adv_conf.rss_conf.rss_hf =\n-\t\t\t\trss_hf & dev_info.flow_type_rss_offloads;\n+\t\t\t\trss_hf & port->dev_info.flow_type_rss_offloads;\n \t\t} else {\n \t\t\tport->dev_conf.rx_adv_conf.rss_conf.rss_key = NULL;\n \t\t\tport->dev_conf.rx_adv_conf.rss_conf.rss_hf = 0;\n",
    "prefixes": []
}