Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/847678/?format=api
{ "id": 847678, "url": "http://patchwork.ozlabs.org/api/patches/847678/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/1513121823-27944-10-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-10-git-send-email-shannon.nelson@oracle.com>", "list_archive_url": null, "date": "2017-12-12T23:37:02", "name": "[v2,next-queue,09/10] ixgbe: ipsec offload stats", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "28c31ab8a849789037706d2b053d0c2c50df3d26", "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-10-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/847678/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/847678/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\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=oracle.com header.i=@oracle.com\n\theader.b=\"WvJHko2m\"; 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 3yxGTF2wJ1z9t3R\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 13 Dec 2017 10:37:37 +1100 (AEDT)", "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id BE55488250;\n\tTue, 12 Dec 2017 23:37:35 +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 JAcJB7q17dow; Tue, 12 Dec 2017 23:37:35 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 0055A882E5;\n\tTue, 12 Dec 2017 23:37:34 +0000 (UTC)", "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\tby ash.osuosl.org (Postfix) with ESMTP id B35701BF54B\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue, 12 Dec 2017 23:37:32 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id AB8F487FA0\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue, 12 Dec 2017 23:37:32 +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 5Q-iHqZJ4ass for <intel-wired-lan@lists.osuosl.org>;\n\tTue, 12 Dec 2017 23:37:31 +0000 (UTC)", "from userp2130.oracle.com (userp2130.oracle.com [156.151.31.86])\n\tby whitealder.osuosl.org (Postfix) with ESMTPS id 72DA687F45\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue, 12 Dec 2017 23:37:31 +0000 (UTC)", "from pps.filterd (userp2130.oracle.com [127.0.0.1])\n\tby userp2130.oracle.com (8.16.0.21/8.16.0.21) with SMTP id\n\tvBCNULpS182961; Tue, 12 Dec 2017 23:37:30 GMT", "from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233])\n\tby userp2130.oracle.com with ESMTP id 2etrug80q9-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256\n\tverify=OK); Tue, 12 Dec 2017 23:37:29 +0000", "from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236])\n\tby aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id\n\tvBCNbTtr028879\n\t(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256\n\tverify=OK); Tue, 12 Dec 2017 23:37:29 GMT", "from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7])\n\tby aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id vBCNbSmG017562; \n\tTue, 12 Dec 2017 23:37:28 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:28 -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=+MnuIAFshCHKD7v5hg4QMYHM+hEOwOdwmAjiLCq50gE=;\n\tb=WvJHko2mVMBU07Zq8vkg0c2F05mlKXSejKUyooTWEe3kr2MLtDCxg93aMY9AUheYXfEs\n\tr7bqMjuLhzaYyTI151oGerJP/N8huztiXzCyMWPgA7qXAQiGP4bdEQQ1L/teZdYS9Jjz\n\tQ2ID39oQaQJXWRcmC9LtWBZMBKw+JCnezMD5F++yj3QZtQAx67HP9ry7Gotz62GdTbpn\n\t7hVuowO+nHRBzhPM+S/l95t3LaPNjC+btcHmQ4+2JzNO6XgjlfM2+V2kwzY3T4tsIdg9\n\tfEKVozO2etKIoO+XOPX9g/a6AmejkEOBcBwiyhXgn7j6DVHwYmLdxIjhjfGBPqVBIOyC\n\t2w== ", "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:37:02 -0800", "Message-Id": "<1513121823-27944-10-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=2\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-1711220000 definitions=main-1712120331", "Subject": "[Intel-wired-lan] [PATCH v2 next-queue 09/10] ixgbe: ipsec offload\n\tstats", "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": "Add a simple statistic to count the ipsec offloads.\n\nSigned-off-by: Shannon Nelson <shannon.nelson@oracle.com>\n---\nv2: change per ring counter to adapter rx and tx counters\n move tx_ipsec count to the tx clean code\n\n drivers/net/ethernet/intel/ixgbe/ixgbe.h | 2 ++\n drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c | 2 ++\n drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c | 2 ++\n drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 5 ++++-\n 4 files changed, 10 insertions(+), 1 deletion(-)", "diff": "diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe.h b/drivers/net/ethernet/intel/ixgbe/ixgbe.h\nindex 3d2b7bf..1dfe147 100644\n--- a/drivers/net/ethernet/intel/ixgbe/ixgbe.h\n+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe.h\n@@ -629,10 +629,12 @@ struct ixgbe_adapter {\n \tint num_tx_queues;\n \tu16 tx_itr_setting;\n \tu16 tx_work_limit;\n+\tu64 tx_ipsec;\n \n \t/* Rx fast path data */\n \tint num_rx_queues;\n \tu16 rx_itr_setting;\n+\tu64 rx_ipsec;\n \n \t/* Port number used to identify VXLAN traffic */\n \t__be16 vxlan_port;\ndiff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c\nindex c3e7a81..bcf011e 100644\n--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c\n+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c\n@@ -114,6 +114,8 @@ static const struct ixgbe_stats ixgbe_gstrings_stats[] = {\n \t{\"tx_hwtstamp_timeouts\", IXGBE_STAT(tx_hwtstamp_timeouts)},\n \t{\"tx_hwtstamp_skipped\", IXGBE_STAT(tx_hwtstamp_skipped)},\n \t{\"rx_hwtstamp_cleared\", IXGBE_STAT(rx_hwtstamp_cleared)},\n+\t{\"tx_ipsec\", IXGBE_STAT(tx_ipsec)},\n+\t{\"rx_ipsec\", IXGBE_STAT(rx_ipsec)},\n #ifdef IXGBE_FCOE\n \t{\"fcoe_bad_fccrc\", IXGBE_STAT(stats.fccrc)},\n \t{\"rx_fcoe_dropped\", IXGBE_STAT(stats.fcoerpdc)},\ndiff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c\nindex 5ed8a4f..ed3a4c8 100644\n--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c\n+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c\n@@ -837,6 +837,8 @@ void ixgbe_ipsec_rx(struct ixgbe_ring *rx_ring,\n \txo = xfrm_offload(skb);\n \txo->flags = CRYPTO_DONE;\n \txo->status = CRYPTO_SUCCESS;\n+\n+\tadapter->rx_ipsec++;\n }\n \n /**\ndiff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c\nindex 84fbfb9..814268f 100644\n--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c\n+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c\n@@ -1173,7 +1173,7 @@ static bool ixgbe_clean_tx_irq(struct ixgbe_q_vector *q_vector,\n \tstruct ixgbe_adapter *adapter = q_vector->adapter;\n \tstruct ixgbe_tx_buffer *tx_buffer;\n \tunion ixgbe_adv_tx_desc *tx_desc;\n-\tunsigned int total_bytes = 0, total_packets = 0;\n+\tunsigned int total_bytes = 0, total_packets = 0, total_ipsec = 0;\n \tunsigned int budget = q_vector->tx.work_limit;\n \tunsigned int i = tx_ring->next_to_clean;\n \n@@ -1204,6 +1204,8 @@ static bool ixgbe_clean_tx_irq(struct ixgbe_q_vector *q_vector,\n \t\t/* update the statistics for this packet */\n \t\ttotal_bytes += tx_buffer->bytecount;\n \t\ttotal_packets += tx_buffer->gso_segs;\n+\t\tif (tx_buffer->tx_flags & IXGBE_TX_FLAGS_IPSEC)\n+\t\t\ttotal_ipsec++;\n \n \t\t/* free the skb */\n \t\tif (ring_is_xdp(tx_ring))\n@@ -1266,6 +1268,7 @@ static bool ixgbe_clean_tx_irq(struct ixgbe_q_vector *q_vector,\n \tu64_stats_update_end(&tx_ring->syncp);\n \tq_vector->tx.total_bytes += total_bytes;\n \tq_vector->tx.total_packets += total_packets;\n+\tadapter->tx_ipsec += total_ipsec;\n \n \tif (check_for_tx_hang(tx_ring) && ixgbe_check_tx_hang(tx_ring)) {\n \t\t/* schedule immediate reset if we believe we hung */\n", "prefixes": [ "v2", "next-queue", "09/10" ] }