Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/847668/?format=api
{ "id": 847668, "url": "http://patchwork.ozlabs.org/api/patches/847668/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/1513121823-27944-5-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": "<1513121823-27944-5-git-send-email-shannon.nelson@oracle.com>", "list_archive_url": null, "date": "2017-12-12T23:36:57", "name": "[v2,next-queue,04/10] ixgbe: add ipsec data structures", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "880e2c94b8a08c4cc782e3e6f13ef08ad659301d", "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/1513121823-27944-5-git-send-email-shannon.nelson@oracle.com/mbox/", "series": [ { "id": 18198, "url": "http://patchwork.ozlabs.org/api/series/18198/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=18198", "date": "2017-12-12T23:36:53", "name": "ixgbe: Add ipsec offload", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/18198/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/847668/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/847668/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\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=oracle.com header.i=@oracle.com\n\theader.b=\"LDvd/VcK\"; dkim-atps=neutral" ], "Received": [ "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\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 3yxGT329jSz9t2W\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 13 Dec 2017 10:37:26 +1100 (AEDT)", "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 30A1387063;\n\tTue, 12 Dec 2017 23:37:25 +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 2l4V3dWB3fLZ; Tue, 12 Dec 2017 23:37:24 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id B34DC86FF4;\n\tTue, 12 Dec 2017 23:37:24 +0000 (UTC)", "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\tby ash.osuosl.org (Postfix) with ESMTP id 77F831BF54B\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue, 12 Dec 2017 23:37:23 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 7248D86FF4\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue, 12 Dec 2017 23:37:23 +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 DXcVbb4bfyqF for <intel-wired-lan@lists.osuosl.org>;\n\tTue, 12 Dec 2017 23:37:22 +0000 (UTC)", "from userp2120.oracle.com (userp2120.oracle.com [156.151.31.85])\n\tby fraxinus.osuosl.org (Postfix) with ESMTPS id ADC7986FD9\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue, 12 Dec 2017 23:37:22 +0000 (UTC)", "from pps.filterd (userp2120.oracle.com [127.0.0.1])\n\tby userp2120.oracle.com (8.16.0.21/8.16.0.21) with SMTP id\n\tvBCNQf0k095529; Tue, 12 Dec 2017 23:37:20 GMT", "from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233])\n\tby userp2120.oracle.com with ESMTP id 2etrm3g4nq-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256\n\tverify=OK); Tue, 12 Dec 2017 23:37:20 +0000", "from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72])\n\tby aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id vBCNbIt5028606\n\t(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256\n\tverify=OK); Tue, 12 Dec 2017 23:37:19 GMT", "from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7])\n\tby userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id vBCNbHCn006410; \n\tTue, 12 Dec 2017 23:37:18 GMT", "from slnelson-mint18.us.oracle.com (/10.159.225.160)\n\tby default (Oracle Beehive Gateway v4.0)\n\twith ESMTP ; Tue, 12 Dec 2017 15:37:17 -0800" ], "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 : in-reply-to : references;\n\ts=corp-2017-10-26; \n\tbh=uJvEoZzUw7gYZg0dCQOn6qjtWi8VOAUpbXZXjqBplK0=;\n\tb=LDvd/VcKMxn3WPFpWNgTupOEQLPKotyQZ4eYuXSD2mNS+aUEecIqSBZE9JwoY83ahYp3\n\tajtPq6yZgCeNiFHc5dpQ3FG2HJ4K6WU0iULu28zVoQM0G55Vmmey1o63ciaNBCVm/71v\n\tZ9497b3I2mg/Lum3rpR6RZfVZ1BcubmzRVNe8KFWlvNMNzTyohLayQ97EVCvuCUiQMSx\n\tWNe46u/AUb1fG0JlZdHsL+YzrP3z3su/doNSPLeazeK4GAaNR2qNkEo36jW3N58xlSc7\n\t6/7tAbQJ45hMdxZr1Br3a9ZkRboujU0cEV2+/FXfb1YszVPE0HlXQGMJSCxjLKRVrnj2\n\tEA== ", "From": "Shannon Nelson <shannon.nelson@oracle.com>", "To": "intel-wired-lan@lists.osuosl.org, jeffrey.t.kirsher@intel.com", "Date": "Tue, 12 Dec 2017 15:36:57 -0800", "Message-Id": "<1513121823-27944-5-git-send-email-shannon.nelson@oracle.com>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1513121823-27944-1-git-send-email-shannon.nelson@oracle.com>", "References": "<1513121823-27944-1-git-send-email-shannon.nelson@oracle.com>", "X-Proofpoint-Virus-Version": "vendor=nai engine=5900 definitions=8743\n\tsignatures=668646", "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=931\n\tadultscore=0 classifier=spam adjust=0 reason=mlx scancount=1\n\tengine=8.0.1-1711220000 definitions=main-1712120331", "Subject": "[Intel-wired-lan] [PATCH v2 next-queue 04/10] ixgbe: add ipsec data\n\tstructures", "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>", "Cc": "steffen.klassert@secunet.com, netdev@vger.kernel.org,\n\tsowmini.varadhan@oracle.com", "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": "Set up the data structures to be used by the ipsec offload.\n\nSigned-off-by: Shannon Nelson <shannon.nelson@oracle.com>\n---\nv2: ipaddr[] becomes __be32\n increase the hash table size\n\n drivers/net/ethernet/intel/ixgbe/ixgbe.h | 5 ++++\n drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.h | 40 ++++++++++++++++++++++++++\n 2 files changed, 45 insertions(+)", "diff": "diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe.h b/drivers/net/ethernet/intel/ixgbe/ixgbe.h\nindex 1e11462..9487750 100644\n--- a/drivers/net/ethernet/intel/ixgbe/ixgbe.h\n+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe.h\n@@ -622,6 +622,7 @@ struct ixgbe_adapter {\n #define IXGBE_FLAG2_EEE_CAPABLE\t\t\tBIT(14)\n #define IXGBE_FLAG2_EEE_ENABLED\t\t\tBIT(15)\n #define IXGBE_FLAG2_RX_LEGACY\t\t\tBIT(16)\n+#define IXGBE_FLAG2_IPSEC_ENABLED\t\tBIT(17)\n \n \t/* Tx fast path data */\n \tint num_tx_queues;\n@@ -772,6 +773,10 @@ struct ixgbe_adapter {\n \n #define IXGBE_RSS_KEY_SIZE 40 /* size of RSS Hash Key in bytes */\n \tu32 *rss_key;\n+\n+#ifdef CONFIG_XFRM\n+\tstruct ixgbe_ipsec *ipsec;\n+#endif /* CONFIG_XFRM */\n };\n \n static inline u8 ixgbe_max_rss_indices(struct ixgbe_adapter *adapter)\ndiff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.h b/drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.h\nindex 341d3f0..ba1c82e 100644\n--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.h\n+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.h\n@@ -49,4 +49,44 @@ enum ixgbe_ipsec_tbl_sel {\n #define IXGBE_RXMOD_DECRYPT\t\t0x00000008\n #define IXGBE_RXMOD_IPV6\t\t0x00000010\n \n+struct rx_sa {\n+\tstruct hlist_node hlist;\n+\tstruct xfrm_state *xs;\n+\t__be32 ipaddr[4];\n+\tu32 key[4];\n+\tu32 salt;\n+\tu32 mode;\n+\tu8 iptbl_ind;\n+\tbool used;\n+\tbool decrypt;\n+};\n+\n+struct rx_ip_sa {\n+\t__be32 ipaddr[4];\n+\tu32 ref_cnt;\n+\tbool used;\n+};\n+\n+struct tx_sa {\n+\tstruct xfrm_state *xs;\n+\tu32 key[4];\n+\tu32 salt;\n+\tbool encrypt;\n+\tbool used;\n+};\n+\n+struct ixgbe_ipsec_tx_data {\n+\tu32 flags;\n+\tu16 trailer_len;\n+\tu16 sa_idx;\n+};\n+\n+struct ixgbe_ipsec {\n+\tu16 num_rx_sa;\n+\tu16 num_tx_sa;\n+\tstruct rx_ip_sa *ip_tbl;\n+\tstruct rx_sa *rx_tbl;\n+\tstruct tx_sa *tx_tbl;\n+\tDECLARE_HASHTABLE(rx_sa_list, 10);\n+};\n #endif /* _IXGBE_IPSEC_H_ */\n", "prefixes": [ "v2", "next-queue", "04/10" ] }