get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 667226,
    "url": "http://patchwork.ozlabs.org/api/patches/667226/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20160908032817.25312.89293.stgit@localhost.localdomain/",
    "project": {
        "id": 46,
        "url": "http://patchwork.ozlabs.org/api/projects/46/?format=api",
        "name": "Intel Wired Ethernet development",
        "link_name": "intel-wired-lan",
        "list_id": "intel-wired-lan.osuosl.org",
        "list_email": "intel-wired-lan@osuosl.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20160908032817.25312.89293.stgit@localhost.localdomain>",
    "list_archive_url": null,
    "date": "2016-09-08T03:28:17",
    "name": "[next,2/3] ixgbe: Limit reporting of redirection table if SR-IOV is enabled",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "dda03f96e61340e59546778ab8dffdc46203cd4f",
    "submitter": {
        "id": 252,
        "url": "http://patchwork.ozlabs.org/api/people/252/?format=api",
        "name": "Alexander Duyck",
        "email": "alexander.duyck@gmail.com"
    },
    "delegate": {
        "id": 68,
        "url": "http://patchwork.ozlabs.org/api/users/68/?format=api",
        "username": "jtkirshe",
        "first_name": "Jeff",
        "last_name": "Kirsher",
        "email": "jeffrey.t.kirsher@intel.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20160908032817.25312.89293.stgit@localhost.localdomain/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/667226/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/667226/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<intel-wired-lan-bounces@lists.osuosl.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "intel-wired-lan@lists.osuosl.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "intel-wired-lan@lists.osuosl.org"
        ],
        "Received": [
            "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3sV5QH3WHGz9s5g\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu,  8 Sep 2016 13:28:23 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id E275A8CAC4;\n\tThu,  8 Sep 2016 03:28:21 +0000 (UTC)",
            "from whitealder.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id flNC5vBOwCXF; Thu,  8 Sep 2016 03:28:21 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 3317189F4D;\n\tThu,  8 Sep 2016 03:28:21 +0000 (UTC)",
            "from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n\tby ash.osuosl.org (Postfix) with ESMTP id 79B1E1C2D79\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tThu,  8 Sep 2016 03:28:20 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id 74B3D31CB8\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tThu,  8 Sep 2016 03:28:20 +0000 (UTC)",
            "from silver.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id Te29KZe0wpJW for <intel-wired-lan@lists.osuosl.org>;\n\tThu,  8 Sep 2016 03:28:19 +0000 (UTC)",
            "from mail-pf0-f196.google.com (mail-pf0-f196.google.com\n\t[209.85.192.196])\n\tby silver.osuosl.org (Postfix) with ESMTPS id A2F0531462\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tThu,  8 Sep 2016 03:28:19 +0000 (UTC)",
            "by mail-pf0-f196.google.com with SMTP id x24so1835731pfa.3\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 07 Sep 2016 20:28:19 -0700 (PDT)",
            "from localhost.localdomain ([2001:470:b:9c3:9e5c:8eff:fe4f:f2d0])\n\tby smtp.gmail.com with ESMTPSA id\n\tad15sm52071875pac.33.2016.09.07.20.28.18\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tWed, 07 Sep 2016 20:28:18 -0700 (PDT)"
        ],
        "Authentication-Results": "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com header.b=jtcZM8Ky;\n\tdkim-atps=neutral",
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\n\th=subject:from:to:cc:date:message-id:in-reply-to:references\n\t:user-agent:mime-version:content-transfer-encoding;\n\tbh=sYfJTRxjUIyTbJbFpymLo/MZAKG90lrZzgr2cFM9CSs=;\n\tb=jtcZM8KyYFEp9vFf1ewcOwNSLNYDQS6IZQpDh2mVE97199RpyP1mlYk0QteeoGnM55\n\tqreTkMn1TCPksKCJ5/EGzCt+Ywob7NU4Tgkk/xKPeG77PDcph56HF8ZgLBPlUEsTVpOt\n\t74CxZwtUMvdQdcaujKJ3LKiSaTxXTGSzXY0iGTcdWAgtpkT9soImFthhnCZzGWY2ZAmt\n\tJ5337dVRzqFFrue5KuaWQTCskynpHWVHoRx0hLJ0Mz/iuUiUH4hi5r3vaXm0PZ3n0qpI\n\tEnpQL0RS0iB1k+DN4BZTgksbxwwxwChNaYLCHseaAkeIr0IMZQzvfC1GOW96aiKvtT8E\n\tdwFw==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:subject:from:to:cc:date:message-id:in-reply-to\n\t:references:user-agent:mime-version:content-transfer-encoding;\n\tbh=sYfJTRxjUIyTbJbFpymLo/MZAKG90lrZzgr2cFM9CSs=;\n\tb=YOFD6cdO8tQzMYIy724OC+R7ddOq2UL87q60aaydzaHV6sQe0wqdp4shwhhwtEccgv\n\tEy2C3vYSH6b8zl6iYwgkGpUUyndr0SyBDEPPVCxj/foQJp07qs/j6KaCMO5ThI9wlHmc\n\t9AhbOFjb/n4pvO5qJU6PK+U6rWZOql32a9flmdEeucwYU3ITwT9vFf1dzPujDdxfoXW4\n\tFxUdGs2p/4NSlXhm4D9wfbG1Vb2tx1/GReV9aIGzSEgNgf6ub8wKu1AU7O69JndrkaCY\n\tpIhXtc0tmK3XW8bn8SlV4K9gCiOzVamRfjBFqEIbIV6NAC+loIq9ecCyQbRPCL2kzEpn\n\tQklA==",
        "X-Gm-Message-State": "AE9vXwNYc0h2Q/C6XyBWxaM0ahdPRxvc15wi8TeDaAktjHSru+Ez+gaFyT3DLR6NOt6FhA==",
        "X-Received": "by 10.98.89.91 with SMTP id n88mr56387081pfb.119.1473305299380; \n\tWed, 07 Sep 2016 20:28:19 -0700 (PDT)",
        "From": "Alexander Duyck <alexander.duyck@gmail.com>",
        "To": "intel-wired-lan@lists.osuosl.org",
        "Date": "Wed, 07 Sep 2016 20:28:17 -0700",
        "Message-ID": "<20160908032817.25312.89293.stgit@localhost.localdomain>",
        "In-Reply-To": "<20160908032606.25312.86849.stgit@localhost.localdomain>",
        "References": "<20160908032606.25312.86849.stgit@localhost.localdomain>",
        "User-Agent": "StGit/0.17.1-dirty",
        "MIME-Version": "1.0",
        "Cc": "ruslan@purestorage.com, muthurajan.jayakumar@intel.com,\n\tchristopher.r.blevins@intel.com",
        "Subject": "[Intel-wired-lan] [next PATCH 2/3] ixgbe: Limit reporting of\n\tredirection table if SR-IOV is enabled",
        "X-BeenThere": "intel-wired-lan@lists.osuosl.org",
        "X-Mailman-Version": "2.1.18-1",
        "Precedence": "list",
        "List-Id": "Intel Wired Ethernet Linux Kernel Driver Development\n\t<intel-wired-lan.lists.osuosl.org>",
        "List-Unsubscribe": "<http://lists.osuosl.org/mailman/options/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@lists.osuosl.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.osuosl.org/pipermail/intel-wired-lan/>",
        "List-Post": "<mailto:intel-wired-lan@lists.osuosl.org>",
        "List-Help": "<mailto:intel-wired-lan-request@lists.osuosl.org?subject=help>",
        "List-Subscribe": "<http://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@lists.osuosl.org?subject=subscribe>",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "intel-wired-lan-bounces@lists.osuosl.org",
        "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@lists.osuosl.org>"
    },
    "content": "From: Alexander Duyck <alexander.h.duyck@intel.com>\n\nThe hardware redirection table can support more queues then the PF\ncurrently has when SR-IOV is enabled.  In order to account for this use the\nRSS mask to trim of the bits that are not used.\n\nSigned-off-by: Alexander Duyck <alexander.h.duyck@intel.com>\n---\n drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c |    6 +++++-\n 1 file changed, 5 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c\nindex 2d872be336bb..f49f80380aa5 100644\n--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c\n+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c\n@@ -2947,9 +2947,13 @@ static u32 ixgbe_rss_indir_size(struct net_device *netdev)\n static void ixgbe_get_reta(struct ixgbe_adapter *adapter, u32 *indir)\n {\n \tint i, reta_size = ixgbe_rss_indir_tbl_entries(adapter);\n+\tu16 rss_m = adapter->ring_feature[RING_F_RSS].mask;\n+\n+\tif (adapter->flags & IXGBE_FLAG_SRIOV_ENABLED)\n+\t\trss_m = adapter->ring_feature[RING_F_RSS].indices - 1;\n \n \tfor (i = 0; i < reta_size; i++)\n-\t\tindir[i] = adapter->rss_indir_tbl[i];\n+\t\tindir[i] = adapter->rss_indir_tbl[i] & rss_m;\n }\n \n static int ixgbe_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key,\n",
    "prefixes": [
        "next",
        "2/3"
    ]
}