Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/813774/?format=api
{ "id": 813774, "url": "http://patchwork.ozlabs.org/api/patches/813774/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/1505385988-94522-4-git-send-email-ilyal@mellanox.com/", "project": { "id": 7, "url": "http://patchwork.ozlabs.org/api/projects/7/?format=api", "name": "Linux network development", "link_name": "netdev", "list_id": "netdev.vger.kernel.org", "list_email": "netdev@vger.kernel.org", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<1505385988-94522-4-git-send-email-ilyal@mellanox.com>", "list_archive_url": null, "date": "2017-09-14T10:46:26", "name": "[net-next,3/5] net: Add TLS offload netdev ops", "commit_ref": null, "pull_url": null, "state": "deferred", "archived": true, "hash": "9d2ae484e429397ca68ffaac620bc2a3fc0145a8", "submitter": { "id": 67931, "url": "http://patchwork.ozlabs.org/api/people/67931/?format=api", "name": "Ilya Lesokhin", "email": "ilyal@mellanox.com" }, "delegate": { "id": 34, "url": "http://patchwork.ozlabs.org/api/users/34/?format=api", "username": "davem", "first_name": "David", "last_name": "Miller", "email": "davem@davemloft.net" }, "mbox": "http://patchwork.ozlabs.org/project/netdev/patch/1505385988-94522-4-git-send-email-ilyal@mellanox.com/mbox/", "series": [ { "id": 3066, "url": "http://patchwork.ozlabs.org/api/series/3066/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=3066", "date": "2017-09-14T10:46:26", "name": "tls: Add generic NIC offload infrastructure", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/3066/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/813774/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/813774/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<netdev-owner@vger.kernel.org>", "X-Original-To": "patchwork-incoming@ozlabs.org", "Delivered-To": "patchwork-incoming@ozlabs.org", "Authentication-Results": "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=netdev-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)", "Received": [ "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xtFZk6sfKz9sP1\n\tfor <patchwork-incoming@ozlabs.org>;\n\tThu, 14 Sep 2017 20:46:38 +1000 (AEST)", "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751908AbdINKqh (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tThu, 14 Sep 2017 06:46:37 -0400", "from mail-il-dmz.mellanox.com ([193.47.165.129]:37202 \"EHLO\n\tmellanox.co.il\" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org\n\twith ESMTP id S1751796AbdINKqf (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Thu, 14 Sep 2017 06:46:35 -0400", "from Internal Mail-Server by MTLPINE1 (envelope-from\n\tilyal@mellanox.com)\n\twith ESMTPS (AES256-SHA encrypted); 14 Sep 2017 13:46:30 +0300", "from gen-l-vrt-094.mtl.labs.mlnx (gen-l-vrt-094.mtl.labs.mlnx\n\t[10.137.9.1])\n\tby labmailer.mlnx (8.13.8/8.13.8) with ESMTP id v8EAkUp0020670;\n\tThu, 14 Sep 2017 13:46:30 +0300" ], "From": "Ilya Lesokhin <ilyal@mellanox.com>", "To": "netdev@vger.kernel.org, davem@davemloft.net", "Cc": "davejwatson@fb.com, tom@herbertland.com,\n\thannes@stressinduktion.org, borisp@mellanox.com,\n\tilyal@mellanox.com, aviadye@mellanox.com, liranl@mellanox.com", "Subject": "[PATCH net-next 3/5] net: Add TLS offload netdev ops", "Date": "Thu, 14 Sep 2017 13:46:26 +0300", "Message-Id": "<1505385988-94522-4-git-send-email-ilyal@mellanox.com>", "X-Mailer": "git-send-email 1.8.3.1", "In-Reply-To": "<1505385988-94522-1-git-send-email-ilyal@mellanox.com>", "References": "<1505385988-94522-1-git-send-email-ilyal@mellanox.com>", "Sender": "netdev-owner@vger.kernel.org", "Precedence": "bulk", "List-ID": "<netdev.vger.kernel.org>", "X-Mailing-List": "netdev@vger.kernel.org" }, "content": "Add new netdev ops to add and delete tls context\n\nSigned-off-by: Boris Pismenny <borisp@mellanox.com>\nSigned-off-by: Ilya Lesokhin <ilyal@mellanox.com>\nSigned-off-by: Aviad Yehezkel <aviadye@mellanox.com>\n---\n include/linux/netdevice.h | 21 +++++++++++++++++++++\n 1 file changed, 21 insertions(+)", "diff": "diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h\nindex cdfd9ad..4ea81bab 100644\n--- a/include/linux/netdevice.h\n+++ b/include/linux/netdevice.h\n@@ -826,6 +826,23 @@ struct xfrmdev_ops {\n };\n #endif\n \n+#if IS_ENABLED(CONFIG_TLS_DEVICE)\n+enum tls_offload_ctx_dir {\n+\tTLS_OFFLOAD_CTX_DIR_RX,\n+\tTLS_OFFLOAD_CTX_DIR_TX,\n+};\n+\n+struct tls_crypto_info;\n+\n+struct tlsdev_ops {\n+\tint (*tls_dev_add)(struct net_device *netdev, struct sock *sk,\n+\t\t\t enum tls_offload_ctx_dir direction,\n+\t\t\t struct tls_crypto_info *crypto_info);\n+\tvoid (*tls_dev_del)(struct net_device *netdev, struct sock *sk,\n+\t\t\t enum tls_offload_ctx_dir direction);\n+};\n+#endif\n+\n /*\n * This structure defines the management hooks for network devices.\n * The following hooks can be defined; unless noted otherwise, they are\n@@ -1713,6 +1730,10 @@ struct net_device {\n \tconst struct xfrmdev_ops *xfrmdev_ops;\n #endif\n \n+#if IS_ENABLED(CONFIG_TLS_DEVICE)\n+\tconst struct tlsdev_ops *tlsdev_ops;\n+#endif\n+\n \tconst struct header_ops *header_ops;\n \n \tunsigned int\t\tflags;\n", "prefixes": [ "net-next", "3/5" ] }