Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/925191/?format=api
{ "id": 925191, "url": "http://patchwork.ozlabs.org/api/patches/925191/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/1528138710-31848-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": "<1528138710-31848-1-git-send-email-shannon.nelson@oracle.com>", "list_archive_url": null, "date": "2018-06-04T18:58:30", "name": "[net-queue] ixgbe: check that ipsec is available on the chip", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "a52676988378390a23ebb3b397282c81d9854669", "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/1528138710-31848-1-git-send-email-shannon.nelson@oracle.com/mbox/", "series": [ { "id": 48465, "url": "http://patchwork.ozlabs.org/api/series/48465/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=48465", "date": "2018-06-04T18:58:30", "name": "[net-queue] ixgbe: check that ipsec is available on the chip", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/48465/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/925191/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/925191/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.133; helo=hemlock.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=\"I5yMY+Qx\"; dkim-atps=neutral" ], "Received": [ "from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\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 4104392BlXz9s1R\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 5 Jun 2018 04:58:44 +1000 (AEST)", "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 2EE19895D5;\n\tMon, 4 Jun 2018 18:58:43 +0000 (UTC)", "from hemlock.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id 1e8GJxs2yx5A; Mon, 4 Jun 2018 18:58:42 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 78C8E895AF;\n\tMon, 4 Jun 2018 18:58:42 +0000 (UTC)", "from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n\tby ash.osuosl.org (Postfix) with ESMTP id 6BB481C286F\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 4 Jun 2018 18:58:41 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id 6800B24527\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 4 Jun 2018 18:58:41 +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 JIoBSD6bRvMb for <intel-wired-lan@lists.osuosl.org>;\n\tMon, 4 Jun 2018 18:58:40 +0000 (UTC)", "from userp2120.oracle.com (userp2120.oracle.com [156.151.31.85])\n\tby silver.osuosl.org (Postfix) with ESMTPS id B300D230FE\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 4 Jun 2018 18:58:40 +0000 (UTC)", "from pps.filterd (userp2120.oracle.com [127.0.0.1])\n\tby userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id\n\tw54ItwcP133158; Mon, 4 Jun 2018 18:58:38 GMT", "from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233])\n\tby userp2120.oracle.com with ESMTP id 2jbvypcvdh-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256\n\tverify=OK); Mon, 04 Jun 2018 18:58:38 +0000", "from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235])\n\tby aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id\n\tw54IwbtF028945\n\t(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256\n\tverify=OK); Mon, 4 Jun 2018 18:58:38 GMT", "from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12])\n\tby aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id\n\tw54Iwb6F007165; Mon, 4 Jun 2018 18:58:37 GMT", "from slnelson-mint18.us.oracle.com (/10.39.237.170)\n\tby default (Oracle Beehive Gateway v4.0)\n\twith ESMTP ; Mon, 04 Jun 2018 11:58:37 -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-2017-10-26;\n\tbh=VChj+p5MioxYXJKesRax4q/CDb1yjk29WyheYrKhkIE=;\n\tb=I5yMY+Qx00DGt744vAiOKqnS9S9YcsfuWR5bZ8d+XXC9VPzCgTsUu/rRYI7/XwzWi4Ev\n\tY3w0U8VsDzdj9lA4qnoyjdTV7YIK/8U+YXm797VSqzpQGLN4M7OD7HeQRUnFyQgIqLOE\n\tRxtJo3DnEnBEPhYKGOC8nSgMjk6eCyXCcpAEy+y1nKPtHi1kPkjXth1TDWKuGqZseies\n\tZ7KQjAOc8+l/IMov3h8CC1doK6Pq8VPiKCTYzBVN9hiGPSfvMbK4j6ubimSZkwmo1BPS\n\tiGtsq+jk0DRwH0A9vnwbVN614ppewwbgWNoevxUzwqQVLZNou71tHfdW0voJOIp8pROi\n\teQ== ", "From": "Shannon Nelson <shannon.nelson@oracle.com>", "To": "intel-wired-lan@lists.osuosl.org, jeffrey.t.kirsher@intel.com,\n\tandre@tomt.net", "Date": "Mon, 4 Jun 2018 11:58:30 -0700", "Message-Id": "<1528138710-31848-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=8914\n\tsignatures=668702", "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=592\n\tadultscore=0 classifier=spam adjust=0 reason=mlx scancount=1\n\tengine=8.0.1-1805220000 definitions=main-1806040218", "Subject": "[Intel-wired-lan] [net-queue PATCH] ixgbe: check that ipsec is\n\tavailable on the chip", "X-BeenThere": "intel-wired-lan@osuosl.org", "X-Mailman-Version": "2.1.24", "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>", "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": "Check the writability of the IPsec configuration registers\nbefore setting up the offload.\n\nFixes: 49a94d74d948 (\"ixgbe: add ipsec engine start and stop routines\")\nReported-by: Andre Tomt <andre@tomt.net>\nCc: Alexander Duyck <alexander.h.duyck@intel.com>\nSigned-off-by: Shannon Nelson <shannon.nelson@oracle.com>\n---\n drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c | 20 +++++++++++++++++++-\n 1 file changed, 19 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 344a1f2..003b53f 100644\n--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c\n+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c\n@@ -210,7 +210,10 @@ static void ixgbe_ipsec_stop_engine(struct ixgbe_adapter *adapter)\n \tstruct ixgbe_hw *hw = &adapter->hw;\n \tu32 reg;\n \n-\tixgbe_ipsec_stop_data(adapter);\n+\t/* stop data if it has been running */\n+\treg = IXGBE_READ_REG(hw, IXGBE_SECTXCTRL);\n+\tif (!(reg & IXGBE_SECTXCTRL_SECTX_DIS))\n+\t\tixgbe_ipsec_stop_data(adapter);\n \n \t/* disable Rx and Tx SA lookup */\n \tIXGBE_WRITE_REG(hw, IXGBE_IPSTXIDX, 0);\n@@ -966,12 +969,27 @@ void ixgbe_ipsec_rx(struct ixgbe_ring *rx_ring,\n **/\n void ixgbe_init_ipsec_offload(struct ixgbe_adapter *adapter)\n {\n+\tstruct ixgbe_hw *hw = &adapter->hw;\n \tstruct ixgbe_ipsec *ipsec;\n \tsize_t size;\n+\tu32 reg1, reg2;\n \n \tif (adapter->hw.mac.type == ixgbe_mac_82598EB)\n \t\treturn;\n \n+\t/* verify that the ipsec offload is available by checking\n+\t * the writability of the engine DISable bit - can we clear\n+\t * the bit? If not, don't set up ipsec. If yes, the put\n+\t * it back and continue the setup.\n+\t */\n+\treg1 = IXGBE_READ_REG(hw, IXGBE_SECTXCTRL);\n+\treg2 = reg1 & ~IXGBE_SECTXCTRL_SECTX_DIS;\n+\tIXGBE_WRITE_REG(hw, IXGBE_SECTXCTRL, reg2);\n+\treg2 = IXGBE_READ_REG(hw, IXGBE_SECTXCTRL);\n+\tif (reg2 & IXGBE_SECTXCTRL_SECTX_DIS)\n+\t\treturn;\n+\tIXGBE_WRITE_REG(hw, IXGBE_SECTXCTRL, reg1);\n+\n \tipsec = kzalloc(sizeof(*ipsec), GFP_KERNEL);\n \tif (!ipsec)\n \t\tgoto err1;\n", "prefixes": [ "net-queue" ] }