get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 8493,
    "url": "https://patches.dpdk.org/api/patches/8493/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1446259484-21070-2-git-send-email-shaopeng.he@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": "<1446259484-21070-2-git-send-email-shaopeng.he@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1446259484-21070-2-git-send-email-shaopeng.he@intel.com",
    "date": "2015-10-31T02:44:41",
    "name": "[dpdk-dev,v4,1/4] fm10k: add multi-queue checking",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "7e2823d43532bea5d0599d8a9bff779993e6cd5c",
    "submitter": {
        "id": 226,
        "url": "https://patches.dpdk.org/api/people/226/?format=api",
        "name": "He, Shaopeng",
        "email": "shaopeng.he@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1446259484-21070-2-git-send-email-shaopeng.he@intel.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/8493/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/8493/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 9D7AD8E8F;\n\tSat, 31 Oct 2015 03:45:22 +0100 (CET)",
            "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n\tby dpdk.org (Postfix) with ESMTP id 58E1B8E8C\n\tfor <dev@dpdk.org>; Sat, 31 Oct 2015 03:45:11 +0100 (CET)",
            "from fmsmga001.fm.intel.com ([10.253.24.23])\n\tby fmsmga101.fm.intel.com with ESMTP; 30 Oct 2015 19:44:54 -0700",
            "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby fmsmga001.fm.intel.com with ESMTP; 30 Oct 2015 19:44:53 -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 t9V2iqe6027065;\n\tSat, 31 Oct 2015 10:44:52 +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 t9V2inU1021112; Sat, 31 Oct 2015 10:44:51 +0800",
            "(from heshaope@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id t9V2inBv021108; \n\tSat, 31 Oct 2015 10:44:49 +0800"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.20,221,1444719600\"; d=\"scan'208\";a=\"823587688\"",
        "From": "Shaopeng He <shaopeng.he@intel.com>",
        "To": "dev@dpdk.org",
        "Date": "Sat, 31 Oct 2015 10:44:41 +0800",
        "Message-Id": "<1446259484-21070-2-git-send-email-shaopeng.he@intel.com>",
        "X-Mailer": "git-send-email 1.7.4.1",
        "In-Reply-To": "<1446259484-21070-1-git-send-email-shaopeng.he@intel.com>",
        "References": "<1445937709-5445-1-git-send-email-shaopeng.he@intel.com>\n\t<1446259484-21070-1-git-send-email-shaopeng.he@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v4 1/4] fm10k: add multi-queue checking",
        "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": "Add multi-queue checking in device configure function.\nCurrently, VMDQ and RSS are supported.\n\nSigned-off-by: Shaopeng He <shaopeng.he@intel.com>\nAcked-by: Jingjing Wu <jingjing.wu@intel.com>\nAcked-by: Michael Qiu <michael.qiu@intel.com>\n---\n drivers/net/fm10k/fm10k_ethdev.c | 44 ++++++++++++++++++++++++++++++++++++++++\n 1 file changed, 44 insertions(+)",
    "diff": "diff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers/net/fm10k/fm10k_ethdev.c\nindex b104fc2..75d1fa3 100644\n--- a/drivers/net/fm10k/fm10k_ethdev.c\n+++ b/drivers/net/fm10k/fm10k_ethdev.c\n@@ -283,12 +283,56 @@ tx_queue_disable(struct fm10k_hw *hw, uint16_t qnum)\n }\n \n static int\n+fm10k_check_mq_mode(struct rte_eth_dev *dev)\n+{\n+\tenum rte_eth_rx_mq_mode rx_mq_mode = dev->data->dev_conf.rxmode.mq_mode;\n+\tstruct fm10k_hw *hw = FM10K_DEV_PRIVATE_TO_HW(dev->data->dev_private);\n+\tstruct rte_eth_vmdq_rx_conf *vmdq_conf;\n+\tuint16_t nb_rx_q = dev->data->nb_rx_queues;\n+\n+\tvmdq_conf = &dev->data->dev_conf.rx_adv_conf.vmdq_rx_conf;\n+\n+\tif (rx_mq_mode & ETH_MQ_RX_DCB_FLAG) {\n+\t\tPMD_INIT_LOG(ERR, \"DCB mode is not supported.\");\n+\t\treturn -EINVAL;\n+\t}\n+\n+\tif (!(rx_mq_mode & ETH_MQ_RX_VMDQ_FLAG))\n+\t\treturn 0;\n+\n+\tif (hw->mac.type == fm10k_mac_vf) {\n+\t\tPMD_INIT_LOG(ERR, \"VMDQ mode is not supported in VF.\");\n+\t\treturn -EINVAL;\n+\t}\n+\n+\t/* Check VMDQ queue pool number */\n+\tif (vmdq_conf->nb_queue_pools >\n+\t\t\tsizeof(vmdq_conf->pool_map[0].pools) * CHAR_BIT ||\n+\t\t\tvmdq_conf->nb_queue_pools > nb_rx_q) {\n+\t\tPMD_INIT_LOG(ERR, \"Too many of queue pools: %d\",\n+\t\t\tvmdq_conf->nb_queue_pools);\n+\t\treturn -EINVAL;\n+\t}\n+\n+\treturn 0;\n+}\n+\n+static int\n fm10k_dev_configure(struct rte_eth_dev *dev)\n {\n+\tint ret;\n+\n \tPMD_INIT_FUNC_TRACE();\n \n \tif (dev->data->dev_conf.rxmode.hw_strip_crc == 0)\n \t\tPMD_INIT_LOG(WARNING, \"fm10k always strip CRC\");\n+\t/* multipe queue mode checking */\n+\tret  = fm10k_check_mq_mode(dev);\n+\tif (ret != 0) {\n+\t\tPMD_DRV_LOG(ERR, \"fm10k_check_mq_mode fails with %d.\",\n+\t\t\t    ret);\n+\t\treturn ret;\n+\t}\n \n \treturn 0;\n }\n",
    "prefixes": [
        "dpdk-dev",
        "v4",
        "1/4"
    ]
}