Show a patch.

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

{
    "id": 52,
    "url": "http://patches.dpdk.org/api/patches/52/",
    "web_url": "http://patches.dpdk.org/patch/52/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/",
        "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"
    },
    "msgid": "<1405651521-14545-3-git-send-email-helin.zhang@intel.com>",
    "date": "2014-07-18T02:45:20",
    "name": "[dpdk-dev,2/3] app/testpmd: enable RSS support for i40e",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "12071dd4165484f7ceb378aed845637ec8a8a801",
    "submitter": {
        "id": 14,
        "url": "http://patches.dpdk.org/api/people/14/",
        "name": "Helin Zhang",
        "email": "helin.zhang@intel.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/patch/52/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/52/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/52/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<hzhan75@shecgisg004.sh.intel.com>",
        "References": "<1405651521-14545-1-git-send-email-helin.zhang@intel.com>",
        "X-Mailman-Version": "2.1.15",
        "X-IronPort-AV": "E=Sophos;i=\"5.01,682,1400050800\"; d=\"scan'208\";a=\"575000492\"",
        "From": "Helin Zhang <helin.zhang@intel.com>",
        "X-List-Received-Date": "Fri, 18 Jul 2014 02:44:38 -0000",
        "X-BeenThere": "dev@dpdk.org",
        "Message-Id": "<1405651521-14545-3-git-send-email-helin.zhang@intel.com>",
        "Received": [
            "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby dpdk.org (Postfix) with ESMTP id E6F9CB34B\n\tfor <dev@dpdk.org>; Fri, 18 Jul 2014 04:44:37 +0200 (CEST)",
            "from orsmga002.jf.intel.com ([10.7.209.21])\n\tby orsmga102.jf.intel.com with ESMTP; 17 Jul 2014 19:39:57 -0700",
            "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby orsmga002.jf.intel.com with ESMTP; 17 Jul 2014 19:45:33 -0700",
            "from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com\n\t[10.239.29.89])\n\tby shvmail01.sh.intel.com with ESMTP id s6I2jUPT025165;\n\tFri, 18 Jul 2014 10:45:30 +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 s6I2jRKk014668; Fri, 18 Jul 2014 10:45:29 +0800",
            "(from hzhan75@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id s6I2jRbN014664; \n\tFri, 18 Jul 2014 10:45:27 +0800"
        ],
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "X-Mailer": "git-send-email 1.7.0.7",
        "Precedence": "list",
        "Date": "Fri, 18 Jul 2014 10:45:20 +0800",
        "Subject": "[dpdk-dev] [PATCH 2/3] app/testpmd: enable RSS support for i40e",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "X-ExtLoop1": "1",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "In-Reply-To": "<1405651521-14545-1-git-send-email-helin.zhang@intel.com>",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "To": "dev@dpdk.org"
    },
    "content": "i40e can support RSS no matter if SR-IOV is enabled or not, while\nixgbe/igb can not support RSS if it is SR-IOV. Code changes are\nneeded to support i40e RSS if SR-IOV is enabled.\n\nSigned-off-by: Helin Zhang <helin.zhang@intel.com>\nAcked-by: Jijiang Liu <jijiang.liu@intel.com>\nAcked-by: Cunming Liang <cunming.liang@intel.com>\n---\n app/test-pmd/testpmd.c | 13 +++++++++++--\n 1 file changed, 11 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c\nindex e8a4b45..2a2ec76 100644\n--- a/app/test-pmd/testpmd.c\n+++ b/app/test-pmd/testpmd.c\n@@ -1684,8 +1684,17 @@ init_port_config(void)\n \t\t\tport->dev_conf.rx_adv_conf.rss_conf.rss_hf = 0;\n \t\t}\n \n-\t\t/* In SR-IOV mode, RSS mode is not available */\n-\t\tif (port->dcb_flag == 0 && port->dev_info.max_vfs == 0) {\n+\t\t/**\n+\t\t * For i40e, RSS is always available.\n+\t\t * For non-i40e, RSS is available in non-SRIOV mode,\n+\t\t * according to datasheet.\n+\t\t */\n+\t\tif (port->dcb_flag == 0 &&\n+\t\t\t((port->dev_info.max_vfs == 0) ||\n+\t\t\t(!strcmp(port->dev_info.driver_name,\n+\t\t\t\t\t\"rte_i40e_pmd\")) ||\n+\t\t\t(!strcmp(port->dev_info.driver_name,\n+\t\t\t\t\t\"rte_i40evf_pmd\")))) {\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 = ETH_MQ_RX_RSS;\n \t\t\telse\n",
    "prefixes": [
        "dpdk-dev",
        "2/3"
    ]
}