Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1314352/?format=api
{ "id": 1314352, "url": "http://patchwork.ozlabs.org/api/patches/1314352/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20200622124624.18847-1-ciara.loftus@intel.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": "<20200622124624.18847-1-ciara.loftus@intel.com>", "list_archive_url": null, "date": "2020-06-22T12:46:22", "name": "[net-next,1/3] i40e: add xdp ring statistics to vsi stats", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "250e8edd3e09ad003170eb4e419a983c39efd5ef", "submitter": { "id": 67255, "url": "http://patchwork.ozlabs.org/api/people/67255/?format=api", "name": "Ciara Loftus", "email": "ciara.loftus@intel.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/20200622124624.18847-1-ciara.loftus@intel.com/mbox/", "series": [ { "id": 184976, "url": "http://patchwork.ozlabs.org/api/series/184976/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=184976", "date": "2020-06-22T12:46:22", "name": "[net-next,1/3] i40e: add xdp ring statistics to vsi stats", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/184976/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/1314352/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/1314352/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 spf=pass (sender SPF authorized) smtp.mailfrom=osuosl.org\n (client-ip=140.211.166.133; helo=hemlock.osuosl.org;\n envelope-from=intel-wired-lan-bounces@osuosl.org; receiver=<UNKNOWN>)", "ozlabs.org;\n dmarc=fail (p=none dis=none) header.from=intel.com" ], "Received": [ "from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 49r8pS2WsLz9sRW\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 22 Jun 2020 23:07:42 +1000 (AEST)", "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 4A62D893EC;\n\tMon, 22 Jun 2020 13:07:40 +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 Irpy1sNemL1g; Mon, 22 Jun 2020 13:07:38 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 81CC589352;\n\tMon, 22 Jun 2020 13:07:38 +0000 (UTC)", "from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n by ash.osuosl.org (Postfix) with ESMTP id DE3981BF390\n for <intel-wired-lan@lists.osuosl.org>; Mon, 22 Jun 2020 13:07:37 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n by silver.osuosl.org (Postfix) with ESMTP id 7F654221F5\n for <intel-wired-lan@lists.osuosl.org>; Mon, 22 Jun 2020 13:07:37 +0000 (UTC)", "from silver.osuosl.org ([127.0.0.1])\n by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n with ESMTP id E-Te2aCNWJnD for <intel-wired-lan@lists.osuosl.org>;\n Mon, 22 Jun 2020 13:07:36 +0000 (UTC)", "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n by silver.osuosl.org (Postfix) with ESMTPS id 039D620520\n for <intel-wired-lan@lists.osuosl.org>; Mon, 22 Jun 2020 13:07:35 +0000 (UTC)", "from fmsmga003.fm.intel.com ([10.253.24.29])\n by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 22 Jun 2020 06:07:34 -0700", "from silpixa00399839.ir.intel.com (HELO localhost.localdomain)\n ([10.237.222.8])\n by FMSMGA003.fm.intel.com with ESMTP; 22 Jun 2020 06:07:32 -0700" ], "X-Virus-Scanned": [ "amavisd-new at osuosl.org", "amavisd-new at osuosl.org" ], "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6", "IronPort-SDR": [ "\n VOnxWYmhmoJEVzSo/b3SuFJhlWEpKUddVZLJkSaPdpuiuOwovW81muf3P0Yiagks0uQhS9cZVv\n rj0ojOgjpNeA==", "\n nTE/JJ46Xst4SKPlqla4lLoWBObgoRIBYaRcPXGqIQPe61w2TTAhtYDu4q/UUsuJ9VjugwhQAv\n 7/69NOiUbAIw==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9659\"; a=\"143712426\"", "E=Sophos;i=\"5.75,266,1589266800\"; d=\"scan'208\";a=\"143712426\"", "E=Sophos;i=\"5.75,266,1589266800\"; d=\"scan'208\";a=\"318774357\"" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "From": "Ciara Loftus <ciara.loftus@intel.com>", "To": "intel-wired-lan@lists.osuosl.org", "Date": "Mon, 22 Jun 2020 12:46:22 +0000", "Message-Id": "<20200622124624.18847-1-ciara.loftus@intel.com>", "X-Mailer": "git-send-email 2.17.1", "MIME-Version": "1.0", "Subject": "[Intel-wired-lan] [PATCH net-next 1/3] i40e: add xdp ring\n statistics to vsi stats", "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 <intel-wired-lan.osuosl.org>", "List-Unsubscribe": "<https://lists.osuosl.org/mailman/options/intel-wired-lan>,\n <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 <mailto:intel-wired-lan-request@osuosl.org?subject=subscribe>", "Cc": "netdev@vger.kernel.org, magnus.karlsson@intel.com", "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": "Prior to this, only rx and tx ring statistics were accounted for.\n\nSigned-off-by: Ciara Loftus <ciara.loftus@intel.com>\n---\n drivers/net/ethernet/intel/i40e/i40e_main.c | 19 +++++++++++++++++++\n 1 file changed, 19 insertions(+)", "diff": "diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c\nindex 5d807c8004f8..13aef0e51c24 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_main.c\n+++ b/drivers/net/ethernet/intel/i40e/i40e_main.c\n@@ -811,6 +811,25 @@ static void i40e_update_vsi_stats(struct i40e_vsi *vsi)\n \t\trx_p += packets;\n \t\trx_buf += p->rx_stats.alloc_buff_failed;\n \t\trx_page += p->rx_stats.alloc_page_failed;\n+\n+\t\tif (i40e_enabled_xdp_vsi(vsi)) {\n+\t\t\t/* locate xdp ring */\n+\t\t\tp = READ_ONCE(vsi->xdp_rings[q]);\n+\t\t\tif (!p)\n+\t\t\t\tcontinue;\n+\n+\t\t\tdo {\n+\t\t\t\tstart = u64_stats_fetch_begin_irq(&p->syncp);\n+\t\t\t\tpackets = p->stats.packets;\n+\t\t\t\tbytes = p->stats.bytes;\n+\t\t\t} while (u64_stats_fetch_retry_irq(&p->syncp, start));\n+\t\t\ttx_b += bytes;\n+\t\t\ttx_p += packets;\n+\t\t\ttx_restart += p->tx_stats.restart_queue;\n+\t\t\ttx_busy += p->tx_stats.tx_busy;\n+\t\t\ttx_linearize += p->tx_stats.tx_linearize;\n+\t\t\ttx_force_wb += p->tx_stats.tx_force_wb;\n+\t\t}\n \t}\n \trcu_read_unlock();\n \tvsi->tx_restart = tx_restart;\n", "prefixes": [ "net-next", "1/3" ] }