get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2189,
    "url": "https://patches.dpdk.org/api/patches/2189/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1420355937-18484-7-git-send-email-changchun.ouyang@intel.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": "<1420355937-18484-7-git-send-email-changchun.ouyang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1420355937-18484-7-git-send-email-changchun.ouyang@intel.com",
    "date": "2015-01-04T07:18:57",
    "name": "[dpdk-dev,v4,6/6] testpmd: Set Rx VMDq RSS mode",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "60965d9a323d5df93ecf6f5cc0af3454fc74fbdb",
    "submitter": {
        "id": 31,
        "url": "https://patches.dpdk.org/api/people/31/?format=api",
        "name": "Ouyang Changchun",
        "email": "changchun.ouyang@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1420355937-18484-7-git-send-email-changchun.ouyang@intel.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/2189/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/2189/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 [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id CB0325A72;\n\tSun,  4 Jan 2015 08:19:21 +0100 (CET)",
            "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby dpdk.org (Postfix) with ESMTP id 9E6A35A60\n\tfor <dev@dpdk.org>; Sun,  4 Jan 2015 08:19:19 +0100 (CET)",
            "from fmsmga002.fm.intel.com ([10.253.24.26])\n\tby orsmga102.jf.intel.com with ESMTP; 03 Jan 2015 23:17:00 -0800",
            "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby fmsmga002.fm.intel.com with ESMTP; 03 Jan 2015 23:19:18 -0800",
            "from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com\n\t[10.239.29.89])\n\tby shvmail01.sh.intel.com with ESMTP id t047JGFP032364;\n\tSun, 4 Jan 2015 15:19:16 +0800",
            "from shecgisg004.sh.intel.com (localhost [127.0.0.1])\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP\n\tid t047JDQD018560; Sun, 4 Jan 2015 15:19:15 +0800",
            "(from couyang@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id t047JD44018556; \n\tSun, 4 Jan 2015 15:19:13 +0800"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.07,694,1413270000\"; d=\"scan'208\";a=\"656516667\"",
        "From": "Ouyang Changchun <changchun.ouyang@intel.com>",
        "To": "dev@dpdk.org",
        "Date": "Sun,  4 Jan 2015 15:18:57 +0800",
        "Message-Id": "<1420355937-18484-7-git-send-email-changchun.ouyang@intel.com>",
        "X-Mailer": "git-send-email 1.7.12.2",
        "In-Reply-To": "<1420355937-18484-1-git-send-email-changchun.ouyang@intel.com>",
        "References": "<1419398584-19520-1-git-send-email-changchun.ouyang@intel.com>\n\t<1420355937-18484-1-git-send-email-changchun.ouyang@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v4 6/6] testpmd: Set Rx VMDq RSS mode",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "List-Unsubscribe": "<http://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": "<http://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": "Set VMDq RSS mode if it has VF(VF number is more than 1) and has RSS information.\n\nSigned-off-by: Changchun Ouyang <changchun.ouyang@intel.com>\n---\n app/test-pmd/testpmd.c | 10 ++++++++++\n 1 file changed, 10 insertions(+)",
    "diff": "diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c\nindex 8c69756..6230f8b 100644\n--- a/app/test-pmd/testpmd.c\n+++ b/app/test-pmd/testpmd.c\n@@ -1708,6 +1708,16 @@ init_port_config(void)\n \t\t\t\tport->dev_conf.rxmode.mq_mode = ETH_MQ_RX_NONE;\n \t\t}\n \n+\t\tif (port->dev_info.max_vfs != 0) {\n+\t\t\tif (port->dev_conf.rx_adv_conf.rss_conf.rss_hf != 0)\n+\t\t\t\tport->dev_conf.rxmode.mq_mode =\n+\t\t\t\t\tETH_MQ_RX_VMDQ_RSS;\n+\t\t\telse {\n+\t\t\t\tport->dev_conf.rxmode.mq_mode = ETH_MQ_RX_NONE;\n+\t\t\t\tport->dev_conf.txmode.mq_mode = ETH_MQ_TX_NONE;\n+\t\t\t}\n+\t\t}\n+\n \t\tport->rx_conf.rx_thresh = rx_thresh;\n \t\tport->rx_conf.rx_free_thresh = rx_free_thresh;\n \t\tport->rx_conf.rx_drop_en = rx_drop_en;\n",
    "prefixes": [
        "dpdk-dev",
        "v4",
        "6/6"
    ]
}