get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 197,
    "url": "https://patches.dpdk.org/api/patches/197/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1408932572-10343-3-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": "<1408932572-10343-3-git-send-email-changchun.ouyang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1408932572-10343-3-git-send-email-changchun.ouyang@intel.com",
    "date": "2014-08-25T02:09:29",
    "name": "[dpdk-dev,2/5] e1000: config VMDQ offload register to receive multicast packet",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "22f397410e27c30cfa692e8e4e5f9b85338ce284",
    "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/1408932572-10343-3-git-send-email-changchun.ouyang@intel.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/197/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/197/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<couyang@shecgisg004.sh.intel.com>",
        "Received": [
            "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n\tby dpdk.org (Postfix) with ESMTP id 207E9B36D\n\tfor <dev@dpdk.org>; Mon, 25 Aug 2014 04:05:53 +0200 (CEST)",
            "from fmsmga002.fm.intel.com ([10.253.24.26])\n\tby fmsmga101.fm.intel.com with ESMTP; 24 Aug 2014 19:09:46 -0700",
            "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby fmsmga002.fm.intel.com with ESMTP; 24 Aug 2014 19:09:45 -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 s7P29hRg025035;\n\tMon, 25 Aug 2014 10:09:43 +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 s7P29evB010458; Mon, 25 Aug 2014 10:09:42 +0800",
            "(from couyang@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id s7P29eWJ010454; \n\tMon, 25 Aug 2014 10:09:40 +0800"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.04,393,1406617200\"; d=\"scan'208\";a=\"589307319\"",
        "From": "Ouyang Changchun <changchun.ouyang@intel.com>",
        "To": "dev@dpdk.org",
        "Date": "Mon, 25 Aug 2014 10:09:29 +0800",
        "Message-Id": "<1408932572-10343-3-git-send-email-changchun.ouyang@intel.com>",
        "X-Mailer": "git-send-email 1.7.0.7",
        "In-Reply-To": "<1408932572-10343-1-git-send-email-changchun.ouyang@intel.com>",
        "References": "<1408932572-10343-1-git-send-email-changchun.ouyang@intel.com>",
        "Subject": "[dpdk-dev] [PATCH 2/5] e1000: config VMDQ offload register to\n\treceive multicast packet",
        "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>",
        "X-List-Received-Date": "Mon, 25 Aug 2014 02:05:54 -0000"
    },
    "content": "This patch set VM offload register according to VMDQ config for e1000\nPMD to support multicast and broadcast packets.\n\nSigned-off-by: Changchun Ouyang <changchun.ouyang@intel.com>\nAcked-by: Huawei Xie <huawei.xie@intel.com>\nAcked-by: Cunming Liang <cunming.liang@intel.com>\n\n---\n lib/librte_pmd_e1000/igb_rxtx.c | 20 ++++++++++++++++++++\n 1 file changed, 20 insertions(+)",
    "diff": "diff --git a/lib/librte_pmd_e1000/igb_rxtx.c b/lib/librte_pmd_e1000/igb_rxtx.c\nindex 977c4a2..51b1206 100644\n--- a/lib/librte_pmd_e1000/igb_rxtx.c\n+++ b/lib/librte_pmd_e1000/igb_rxtx.c\n@@ -1768,6 +1768,26 @@ igb_vmdq_rx_hw_configure(struct rte_eth_dev *dev)\n \tvt_ctl |= E1000_VT_CTL_IGNORE_MAC;\n \tE1000_WRITE_REG(hw, E1000_VT_CTL, vt_ctl);\n \n+\tfor (i = 0; i < E1000_VMOLR_SIZE; i++) {\n+\t\tvmolr = E1000_READ_REG(hw, E1000_VMOLR(i));\n+\t\tvmolr &= ~(E1000_VMOLR_AUPE | E1000_VMOLR_ROMPE |\n+\t\t\tE1000_VMOLR_ROPE | E1000_VMOLR_BAM |\n+\t\t\tE1000_VMOLR_MPME);\n+\n+\t\tif (cfg->rx_mode & ETH_VMDQ_ACCEPT_UNTAG)\n+\t\t\tvmolr |= E1000_VMOLR_AUPE;\n+\t\tif (cfg->rx_mode & ETH_VMDQ_ACCEPT_HASH_MC)\n+\t\t\tvmolr |= E1000_VMOLR_ROMPE;\n+\t\tif (cfg->rx_mode & ETH_VMDQ_ACCEPT_HASH_UC)\n+\t\t\tvmolr |= E1000_VMOLR_ROPE;\n+\t\tif (cfg->rx_mode & ETH_VMDQ_ACCEPT_BROADCAST)\n+\t\t\tvmolr |= E1000_VMOLR_BAM;\n+\t\tif (cfg->rx_mode & ETH_VMDQ_ACCEPT_MULTICAST)\n+\t\t\tvmolr |= E1000_VMOLR_MPME;\n+\n+\t\tE1000_WRITE_REG(hw, E1000_VMOLR(i), vmolr);\n+\t}\n+\n \t/*\n \t * VMOLR: set STRVLAN as 1 if IGMAC in VTCTL is set as 1\n \t * Both 82576 and 82580 support it\n",
    "prefixes": [
        "dpdk-dev",
        "2/5"
    ]
}