get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 8002,
    "url": "https://patches.dpdk.org/api/patches/8002/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1445831265-14256-5-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": "<1445831265-14256-5-git-send-email-shaopeng.he@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1445831265-14256-5-git-send-email-shaopeng.he@intel.com",
    "date": "2015-10-26T03:47:42",
    "name": "[dpdk-dev,v2,4/7] fm10k: add rx queue interrupt en/dis functions",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "4ab67022ec09c03e787856b6a34eb42c8dd773c6",
    "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/1445831265-14256-5-git-send-email-shaopeng.he@intel.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/8002/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/8002/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 5123D8D95;\n\tMon, 26 Oct 2015 04:48:21 +0100 (CET)",
            "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n\tby dpdk.org (Postfix) with ESMTP id 3BCBA8D8D\n\tfor <dev@dpdk.org>; Mon, 26 Oct 2015 04:48:18 +0100 (CET)",
            "from orsmga002.jf.intel.com ([10.7.209.21])\n\tby fmsmga102.fm.intel.com with ESMTP; 25 Oct 2015 20:48:05 -0700",
            "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby orsmga002.jf.intel.com with ESMTP; 25 Oct 2015 20:48:05 -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 t9Q3m3wq007815;\n\tMon, 26 Oct 2015 11:48:03 +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 t9Q3lxGq014318; Mon, 26 Oct 2015 11:48:02 +0800",
            "(from heshaope@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id t9Q3lxZ1014314; \n\tMon, 26 Oct 2015 11:47:59 +0800"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.20,199,1444719600\"; d=\"scan'208\";a=\"834886455\"",
        "From": "Shaopeng He <shaopeng.he@intel.com>",
        "To": "dev@dpdk.org",
        "Date": "Mon, 26 Oct 2015 11:47:42 +0800",
        "Message-Id": "<1445831265-14256-5-git-send-email-shaopeng.he@intel.com>",
        "X-Mailer": "git-send-email 1.7.4.1",
        "In-Reply-To": "<1445831265-14256-1-git-send-email-shaopeng.he@intel.com>",
        "References": "<1443159425-32502-1-git-send-email-shaopeng.he@intel.com>\n\t<1445831265-14256-1-git-send-email-shaopeng.he@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v2 4/7] fm10k: add rx queue interrupt en/dis\n\tfunctions",
        "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": "Interrupt mode framework has enable/disable functions for individual\nrx queue, this patch implements these two functions.\n\nSigned-off-by: Shaopeng He <shaopeng.he@intel.com>\n---\n drivers/net/fm10k/fm10k_ethdev.c | 33 +++++++++++++++++++++++++++++++++\n 1 file changed, 33 insertions(+)",
    "diff": "diff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers/net/fm10k/fm10k_ethdev.c\nindex 45571f2..ce4d916 100644\n--- a/drivers/net/fm10k/fm10k_ethdev.c\n+++ b/drivers/net/fm10k/fm10k_ethdev.c\n@@ -1821,6 +1821,37 @@ fm10k_dev_disable_intr_vf(struct rte_eth_dev *dev)\n }\n \n static int\n+fm10k_dev_rx_queue_intr_enable(struct rte_eth_dev *dev, uint16_t queue_id)\n+{\n+\tstruct fm10k_hw *hw = FM10K_DEV_PRIVATE_TO_HW(dev->data->dev_private);\n+\n+\t/* Enable ITR */\n+\tif (hw->mac.type == fm10k_mac_pf)\n+\t\tFM10K_WRITE_REG(hw, FM10K_ITR(Q2V(dev, queue_id)),\n+\t\t\tFM10K_ITR_AUTOMASK | FM10K_ITR_MASK_CLEAR);\n+\telse\n+\t\tFM10K_WRITE_REG(hw, FM10K_VFITR(Q2V(dev, queue_id)),\n+\t\t\tFM10K_ITR_AUTOMASK | FM10K_ITR_MASK_CLEAR);\n+\trte_intr_enable(&dev->pci_dev->intr_handle);\n+\treturn 0;\n+}\n+\n+static int\n+fm10k_dev_rx_queue_intr_disable(struct rte_eth_dev *dev, uint16_t queue_id)\n+{\n+\tstruct fm10k_hw *hw = FM10K_DEV_PRIVATE_TO_HW(dev->data->dev_private);\n+\n+\t/* Disable ITR */\n+\tif (hw->mac.type == fm10k_mac_pf)\n+\t\tFM10K_WRITE_REG(hw, FM10K_ITR(Q2V(dev, queue_id)),\n+\t\t\tFM10K_ITR_MASK_SET);\n+\telse\n+\t\tFM10K_WRITE_REG(hw, FM10K_VFITR(Q2V(dev, queue_id)),\n+\t\t\tFM10K_ITR_MASK_SET);\n+\treturn 0;\n+}\n+\n+static int\n fm10k_dev_rxq_interrupt_setup(struct rte_eth_dev *dev)\n {\n \tstruct fm10k_hw *hw = FM10K_DEV_PRIVATE_TO_HW(dev->data->dev_private);\n@@ -2151,6 +2182,8 @@ static const struct eth_dev_ops fm10k_eth_dev_ops = {\n \t.tx_queue_setup\t\t= fm10k_tx_queue_setup,\n \t.tx_queue_release\t= fm10k_tx_queue_release,\n \t.rx_descriptor_done\t= fm10k_dev_rx_descriptor_done,\n+\t.rx_queue_intr_enable\t= fm10k_dev_rx_queue_intr_enable,\n+\t.rx_queue_intr_disable\t= fm10k_dev_rx_queue_intr_disable,\n \t.reta_update\t\t= fm10k_reta_update,\n \t.reta_query\t\t= fm10k_reta_query,\n \t.rss_hash_update\t= fm10k_rss_hash_update,\n",
    "prefixes": [
        "dpdk-dev",
        "v2",
        "4/7"
    ]
}