Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/834179/?format=api
{ "id": 834179, "url": "http://patchwork.ozlabs.org/api/1.2/patches/834179/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/20171104085030.25430-9-saeedm@mellanox.com/", "project": { "id": 7, "url": "http://patchwork.ozlabs.org/api/1.2/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": "<20171104085030.25430-9-saeedm@mellanox.com>", "list_archive_url": null, "date": "2017-11-04T08:50:26", "name": "[net-next,08/12] net/mlx5e: DCBNL, Add debug messages log", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "e289355e9402c64283a36f26681543217afdfcba", "submitter": { "id": 65299, "url": "http://patchwork.ozlabs.org/api/1.2/people/65299/?format=api", "name": "Saeed Mahameed", "email": "saeedm@mellanox.com" }, "delegate": { "id": 34, "url": "http://patchwork.ozlabs.org/api/1.2/users/34/?format=api", "username": "davem", "first_name": "David", "last_name": "Miller", "email": "davem@davemloft.net" }, "mbox": "http://patchwork.ozlabs.org/project/netdev/patch/20171104085030.25430-9-saeedm@mellanox.com/mbox/", "series": [ { "id": 11869, "url": "http://patchwork.ozlabs.org/api/1.2/series/11869/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=11869", "date": "2017-11-04T08:50:18", "name": "[net-next,01/12] net/dcb: Add dscp to priority selector type", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/11869/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/834179/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/834179/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 3yTXdc3Bhqz9sBW\n\tfor <patchwork-incoming@ozlabs.org>;\n\tSat, 4 Nov 2017 19:52:36 +1100 (AEDT)", "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S932721AbdKDIwe (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tSat, 4 Nov 2017 04:52:34 -0400", "from mail-il-dmz.mellanox.com ([193.47.165.129]:54560 \"EHLO\n\tmellanox.co.il\" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org\n\twith ESMTP id S1755973AbdKDIwK (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Sat, 4 Nov 2017 04:52:10 -0400", "from Internal Mail-Server by MTLPINE1 (envelope-from\n\tsaeedm@mellanox.com)\n\twith ESMTPS (AES256-SHA encrypted); 4 Nov 2017 10:52:03 +0200", "from mti-swat15.mti.labs.mlnx. (mti-swat15.mti.labs.mlnx\n\t[10.20.1.123])\n\tby labmailer.mlnx (8.13.8/8.13.8) with ESMTP id vA48pkiW022678;\n\tSat, 4 Nov 2017 10:52:02 +0200" ], "From": "Saeed Mahameed <saeedm@mellanox.com>", "To": "\"David S. Miller\" <davem@davemloft.net>", "Cc": "netdev@vger.kernel.org, Inbar Karmy <inbark@mellanox.com>,\n\tSaeed Mahameed <saeedm@mellanox.com>", "Subject": "[net-next 08/12] net/mlx5e: DCBNL, Add debug messages log", "Date": "Sat, 4 Nov 2017 01:50:26 -0700", "Message-Id": "<20171104085030.25430-9-saeedm@mellanox.com>", "X-Mailer": "git-send-email 2.14.2", "In-Reply-To": "<20171104085030.25430-1-saeedm@mellanox.com>", "References": "<20171104085030.25430-1-saeedm@mellanox.com>", "Sender": "netdev-owner@vger.kernel.org", "Precedence": "bulk", "List-ID": "<netdev.vger.kernel.org>", "X-Mailing-List": "netdev@vger.kernel.org" }, "content": "From: Inbar Karmy <inbark@mellanox.com>\n\nAdd debug print when changing the configuration of QoS through dcbnl.\nUse ethtool -s <devname> msglvl hw on/off to toggle debug messages.\n\nSigned-off-by: Inbar Karmy <inbark@mellanox.com>\nReviewed-by: Gal Pressman <galp@mellanox.com>\nSigned-off-by: Saeed Mahameed <saeedm@mellanox.com>\n---\n drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c | 24 +++++++++++++++++++++-\n 1 file changed, 23 insertions(+), 1 deletion(-)", "diff": "diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c b/drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c\nindex b402d69a701b..c6d90b6dd80e 100644\n--- a/drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c\n+++ b/drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c\n@@ -241,7 +241,7 @@ int mlx5e_dcbnl_ieee_setets_core(struct mlx5e_priv *priv, struct ieee_ets *ets)\n \tu8 tc_tx_bw[IEEE_8021QAZ_MAX_TCS];\n \tu8 tc_group[IEEE_8021QAZ_MAX_TCS];\n \tint max_tc = mlx5_max_tc(mdev);\n-\tint err;\n+\tint err, i;\n \n \tmlx5e_build_tc_group(ets, tc_group, max_tc);\n \tmlx5e_build_tc_tx_bw(ets, tc_tx_bw, tc_group, max_tc);\n@@ -260,6 +260,14 @@ int mlx5e_dcbnl_ieee_setets_core(struct mlx5e_priv *priv, struct ieee_ets *ets)\n \t\treturn err;\n \n \tmemcpy(priv->dcbx.tc_tsa, ets->tc_tsa, sizeof(ets->tc_tsa));\n+\n+\tfor (i = 0; i < IEEE_8021QAZ_MAX_TCS; i++) {\n+\t\tmlx5e_dbg(HW, priv, \"%s: prio_%d <=> tc_%d\\n\",\n+\t\t\t __func__, i, ets->prio_tc[i]);\n+\t\tmlx5e_dbg(HW, priv, \"%s: tc_%d <=> tx_bw_%d%%, group_%d\\n\",\n+\t\t\t __func__, i, tc_tx_bw[i], tc_group[i]);\n+\t}\n+\n \treturn err;\n }\n \n@@ -345,6 +353,11 @@ static int mlx5e_dcbnl_ieee_setpfc(struct net_device *dev,\n \tret = mlx5_set_port_pfc(mdev, pfc->pfc_en, pfc->pfc_en);\n \tmlx5_toggle_port_link(mdev);\n \n+\tif (!ret) {\n+\t\tmlx5e_dbg(HW, priv,\n+\t\t\t \"%s: PFC per priority bit mask: 0x%x\\n\",\n+\t\t\t __func__, pfc->pfc_en);\n+\t}\n \treturn ret;\n }\n \n@@ -560,6 +573,11 @@ static int mlx5e_dcbnl_ieee_setmaxrate(struct net_device *netdev,\n \t\t}\n \t}\n \n+\tfor (i = 0; i < IEEE_8021QAZ_MAX_TCS; i++) {\n+\t\tmlx5e_dbg(HW, priv, \"%s: tc_%d <=> max_bw %d Gbps\\n\",\n+\t\t\t __func__, i, max_bw_value[i]);\n+\t}\n+\n \treturn mlx5_modify_port_ets_rate_limit(mdev, max_bw_value, max_bw_unit);\n }\n \n@@ -585,6 +603,10 @@ static u8 mlx5e_dcbnl_setall(struct net_device *netdev)\n \t\tets.tc_rx_bw[i] = cee_cfg->pg_bw_pct[i];\n \t\tets.tc_tsa[i] = IEEE_8021QAZ_TSA_ETS;\n \t\tets.prio_tc[i] = cee_cfg->prio_to_pg_map[i];\n+\t\tmlx5e_dbg(HW, priv,\n+\t\t\t \"%s: Priority group %d: tx_bw %d, rx_bw %d, prio_tc %d\\n\",\n+\t\t\t __func__, i, ets.tc_tx_bw[i], ets.tc_rx_bw[i],\n+\t\t\t ets.prio_tc[i]);\n \t}\n \n \terr = mlx5e_dbcnl_validate_ets(netdev, &ets);\n", "prefixes": [ "net-next", "08/12" ] }