get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 979253,
    "url": "http://patchwork.ozlabs.org/api/patches/979253/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/1538695732-10203-1-git-send-email-shannon.nelson@oracle.com/",
    "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": "<1538695732-10203-1-git-send-email-shannon.nelson@oracle.com>",
    "list_archive_url": null,
    "date": "2018-10-04T23:28:52",
    "name": "ixgbe: allow IPsec Tx offload in VEPA mode",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "c487db439381de3d447c7ca8f258546bb2de2408",
    "submitter": {
        "id": 70766,
        "url": "http://patchwork.ozlabs.org/api/people/70766/?format=api",
        "name": "Shannon Nelson",
        "email": "shannon.nelson@oracle.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/1538695732-10203-1-git-send-email-shannon.nelson@oracle.com/mbox/",
    "series": [
        {
            "id": 69141,
            "url": "http://patchwork.ozlabs.org/api/series/69141/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=69141",
            "date": "2018-10-04T23:28:52",
            "name": "ixgbe: allow IPsec Tx offload in VEPA mode",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/69141/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/979253/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/979253/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<intel-wired-lan-bounces@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"
        ],
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=osuosl.org\n\t(client-ip=140.211.166.137; helo=fraxinus.osuosl.org;\n\tenvelope-from=intel-wired-lan-bounces@osuosl.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org;\n\tdmarc=fail (p=none dis=none) header.from=oracle.com",
            "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=oracle.com header.i=@oracle.com\n\theader.b=\"HZkzmAIw\"; dkim-atps=neutral"
        ],
        "Received": [
            "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 42R8Gw3XRrz9s4V\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri,  5 Oct 2018 09:29:10 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id F305D8608D;\n\tThu,  4 Oct 2018 23:29:08 +0000 (UTC)",
            "from fraxinus.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id r5VfhWe7rBH0; Thu,  4 Oct 2018 23:29:07 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id CAB8B8602D;\n\tThu,  4 Oct 2018 23:29:07 +0000 (UTC)",
            "from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n\tby ash.osuosl.org (Postfix) with ESMTP id 166E31BF5E3\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tThu,  4 Oct 2018 23:29:06 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id 12BEB2EE3D\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tThu,  4 Oct 2018 23:29:06 +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 cXLZvi3PkZdC for <intel-wired-lan@lists.osuosl.org>;\n\tThu,  4 Oct 2018 23:29:05 +0000 (UTC)",
            "from userp2130.oracle.com (userp2130.oracle.com [156.151.31.86])\n\tby silver.osuosl.org (Postfix) with ESMTPS id 914F2232BD\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tThu,  4 Oct 2018 23:29:05 +0000 (UTC)",
            "from pps.filterd (userp2130.oracle.com [127.0.0.1])\n\tby userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id\n\tw94NOgYs169771; Thu, 4 Oct 2018 23:29:04 GMT",
            "from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71])\n\tby userp2130.oracle.com with ESMTP id 2mt0tu7fc0-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256\n\tverify=OK); Thu, 04 Oct 2018 23:29:04 +0000",
            "from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75])\n\tby userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w94NSwMj025127\n\t(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256\n\tverify=OK); Thu, 4 Oct 2018 23:28:58 GMT",
            "from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10])\n\tby userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id\n\tw94NSwFF019181; Thu, 4 Oct 2018 23:28:58 GMT",
            "from slnelson-mint18.us.oracle.com (/10.159.239.227)\n\tby default (Oracle Beehive Gateway v4.0)\n\twith ESMTP ; Thu, 04 Oct 2018 16:28:58 -0700"
        ],
        "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=oracle.com;\n\th=from : to : cc :\n\tsubject : date : message-id; s=corp-2018-07-02;\n\tbh=qjWtr+p68M2uC4sfC+V3l8oZWpvC2d8xIA56btrzLU8=;\n\tb=HZkzmAIwb3KZTUJZ+twH+2qn/WK7Vkeydtj6I33CggxyGpkBedb26q5nlJFvFHIo+UNn\n\tZXLhd9TQlAwTG8nA3qFALuTLeBl6r9CIkxHY8zOW9TCGQHrwJb34CedQmaHRogN/dKeo\n\tCMKXQoqx5dp99eEhbYncz35CM/DsHX1/E8bi4Z3P/WrmkhSYGyiHHP9UfGTsfAJJw0ff\n\t81RTkVUerGBhVFJWcmR/+cXlts9n35BZRG9TNAqEeU2fOvM7x229H/U+i+BsFM7TxmTg\n\tKBncaWpf+bMeEnT/TYe4KVFHblHdZVSYO18tMPDZZGEgmwe+yJoJry1+AsSAXn6gRVg6\n\tNQ== ",
        "From": "Shannon Nelson <shannon.nelson@oracle.com>",
        "To": "intel-wired-lan@lists.osuosl.org, jeffrey.t.kirsher@intel.com",
        "Date": "Thu,  4 Oct 2018 16:28:52 -0700",
        "Message-Id": "<1538695732-10203-1-git-send-email-shannon.nelson@oracle.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "X-Proofpoint-Virus-Version": "vendor=nai engine=5900 definitions=9036\n\tsignatures=668706",
        "X-Proofpoint-Spam-Details": "rule=notspam policy=default score=0 suspectscore=0\n\tmalwarescore=0\n\tphishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999\n\tadultscore=0 classifier=spam adjust=0 reason=mlx scancount=1\n\tengine=8.0.1-1807170000 definitions=main-1810040210",
        "Subject": "[Intel-wired-lan] [PATCH] ixgbe: allow IPsec Tx offload in VEPA mode",
        "X-BeenThere": "intel-wired-lan@osuosl.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "Intel Wired Ethernet Linux Kernel Driver Development\n\t<intel-wired-lan.osuosl.org>",
        "List-Unsubscribe": "<https://lists.osuosl.org/mailman/options/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.osuosl.org/pipermail/intel-wired-lan/>",
        "List-Post": "<mailto:intel-wired-lan@osuosl.org>",
        "List-Help": "<mailto:intel-wired-lan-request@osuosl.org?subject=help>",
        "List-Subscribe": "<https://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=subscribe>",
        "Cc": "netdev@vger.kernel.org",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "intel-wired-lan-bounces@osuosl.org",
        "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@osuosl.org>"
    },
    "content": "When it's possible that the PF might end up trying to send a\npacket to one of its own VFs, we have to forbid IPsec offload\nbecause the device drops the packets into a black hole.\nSee commit 47b6f50077e6 (\"ixgbe: disallow IPsec Tx offload\nwhen in SR-IOV mode\") for more info.\n\nThis really is only necessary when the device is in the default\nVEB mode.  If instead the device is running in VEPA mode,\nthe packets will go through the encryption engine and out the\nMAC/PHY as normal, and get \"hairpinned\" as needed by the switch.\n\nSo let's not block IPsec offload when in VEPA mode.  To get\nthere with the ixgbe device, use the handy 'bridge' command:\n\tbridge link set dev eth1 hwmode vepa\n\nSigned-off-by: Shannon Nelson <shannon.nelson@oracle.com>\n---\n drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c | 4 +++-\n 1 file changed, 3 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c\nindex fd1b054..4d77f42 100644\n--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c\n+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c\n@@ -4,6 +4,7 @@\n #include \"ixgbe.h\"\n #include <net/xfrm.h>\n #include <crypto/aead.h>\n+#include <linux/if_bridge.h>\n \n #define IXGBE_IPSEC_KEY_BITS  160\n static const char aes_gcm_name[] = \"rfc4106(gcm(aes))\";\n@@ -693,7 +694,8 @@ static int ixgbe_ipsec_add_sa(struct xfrm_state *xs)\n \t} else {\n \t\tstruct tx_sa tsa;\n \n-\t\tif (adapter->num_vfs)\n+\t\tif (adapter->num_vfs &&\n+\t\t    adapter->bridge_mode != BRIDGE_MODE_VEPA)\n \t\t\treturn -EOPNOTSUPP;\n \n \t\t/* find the first unused index */\n",
    "prefixes": []
}