Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1237771/?format=api
{ "id": 1237771, "url": "http://patchwork.ozlabs.org/api/patches/1237771/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20200213213129.34023-4-anthony.l.nguyen@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": "<20200213213129.34023-4-anthony.l.nguyen@intel.com>", "list_archive_url": null, "date": "2020-02-13T21:31:19", "name": "[S39,v2,05/15] ice: Add DCBNL ops required to configure ETS in CEE for SW DCB", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "a48d7d81ba124b64c2b34be771f9e3528932d54a", "submitter": { "id": 68875, "url": "http://patchwork.ozlabs.org/api/people/68875/?format=api", "name": "Tony Nguyen", "email": "anthony.l.nguyen@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/20200213213129.34023-4-anthony.l.nguyen@intel.com/mbox/", "series": [ { "id": 158447, "url": "http://patchwork.ozlabs.org/api/series/158447/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=158447", "date": "2020-02-13T21:30:59", "name": "[S39,v2,01/15] ice: Validate config for SW DCB map", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/158447/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/1237771/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/1237771/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; spf=pass (sender SPF authorized)\n\tsmtp.mailfrom=osuosl.org (client-ip=140.211.166.138;\n\thelo=whitealder.osuosl.org;\n\tenvelope-from=intel-wired-lan-bounces@osuosl.org;\n\treceiver=<UNKNOWN>)", "ozlabs.org;\n\tdmarc=fail (p=none dis=none) header.from=intel.com" ], "Received": [ "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 48JV8X3z07z9sP7\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 14 Feb 2020 08:32:12 +1100 (AEDT)", "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 1B86687482;\n\tThu, 13 Feb 2020 21:32:11 +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 L3PaiRDI-QMZ; Thu, 13 Feb 2020 21:32:07 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 2A4C187580;\n\tThu, 13 Feb 2020 21:32:07 +0000 (UTC)", "from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n\tby ash.osuosl.org (Postfix) with ESMTP id C3F3E1BF338\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tThu, 13 Feb 2020 21:31:57 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id C150121548\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tThu, 13 Feb 2020 21:31:57 +0000 (UTC)", "from silver.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id LY1s71LZ13lE for <intel-wired-lan@lists.osuosl.org>;\n\tThu, 13 Feb 2020 21:31:54 +0000 (UTC)", "from mga06.intel.com (mga06.intel.com [134.134.136.31])\n\tby silver.osuosl.org (Postfix) with ESMTPS id 597BF21F65\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tThu, 13 Feb 2020 21:31:54 +0000 (UTC)", "from orsmga008.jf.intel.com ([10.7.209.65])\n\tby orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t13 Feb 2020 13:31:51 -0800", "from unknown (HELO localhost.jf.intel.com) ([10.166.244.174])\n\tby orsmga008.jf.intel.com with ESMTP; 13 Feb 2020 13:31:50 -0800" ], "X-Virus-Scanned": [ "amavisd-new at osuosl.org", "amavisd-new at osuosl.org" ], "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6", "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.70,438,1574150400\"; d=\"scan'208\";a=\"227382408\"", "From": "Tony Nguyen <anthony.l.nguyen@intel.com>", "To": "intel-wired-lan@lists.osuosl.org", "Date": "Thu, 13 Feb 2020 13:31:19 -0800", "Message-Id": "<20200213213129.34023-4-anthony.l.nguyen@intel.com>", "X-Mailer": "git-send-email 2.20.1", "In-Reply-To": "<20200213213129.34023-1-anthony.l.nguyen@intel.com>", "References": "<20200213213129.34023-1-anthony.l.nguyen@intel.com>", "MIME-Version": "1.0", "Subject": "[Intel-wired-lan] [PATCH S39 v2 05/15] ice: Add DCBNL ops required\n\tto configure ETS in CEE for SW DCB", "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\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>", "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": "From: Avinash JD <avinash.dayanand@intel.com>\n\nCouple of DCBNL ops are required for configuring ETS in SW DCB CEE mode. If\nthese functions are not added, it'll break the CEE functionality.\n\nSigned-off-by: Avinash JD <avinash.dayanand@intel.com>\n---\n drivers/net/ethernet/intel/ice/ice_dcb_nl.c | 43 +++++++++++++++++++++\n 1 file changed, 43 insertions(+)", "diff": "diff --git a/drivers/net/ethernet/intel/ice/ice_dcb_nl.c b/drivers/net/ethernet/intel/ice/ice_dcb_nl.c\nindex c572aa5c28e0..589b820a6b5b 100644\n--- a/drivers/net/ethernet/intel/ice/ice_dcb_nl.c\n+++ b/drivers/net/ethernet/intel/ice/ice_dcb_nl.c\n@@ -540,6 +540,30 @@ ice_dcbnl_get_pg_tc_cfg_rx(struct net_device *netdev, int prio,\n \t*pgid = pi->local_dcbx_cfg.etscfg.prio_table[prio];\n }\n \n+/**\n+ * ice_dcbnl_set_pg_tc_cfg_rx\n+ * @netdev: relevant netdev struct\n+ * @prio: corresponding user priority\n+ * @prio_type: the traffic priority type\n+ * @pgid: the PG ID\n+ * @bw_pct: BW percentage for corresponding BWG\n+ * @up_map: prio mapped to corresponding TC\n+ *\n+ * lldpad requires this function pointer to be non-NULL to complete CEE config.\n+ */\n+static void\n+ice_dcbnl_set_pg_tc_cfg_rx(struct net_device *netdev,\n+\t\t\t int __always_unused prio,\n+\t\t\t u8 __always_unused prio_type,\n+\t\t\t u8 __always_unused pgid,\n+\t\t\t u8 __always_unused bw_pct,\n+\t\t\t u8 __always_unused up_map)\n+{\n+\tstruct ice_pf *pf = ice_netdev_to_pf(netdev);\n+\n+\tdev_dbg(ice_pf_to_dev(pf), \"Rx TC PG Config Not Supported.\\n\");\n+}\n+\n /**\n * ice_dcbnl_get_pg_bwg_cfg_rx - Get CEE PG BW Rx config\n * @netdev: pointer to netdev struct\n@@ -559,6 +583,23 @@ ice_dcbnl_get_pg_bwg_cfg_rx(struct net_device *netdev, int __always_unused pgid,\n \t*bw_pct = 0;\n }\n \n+/**\n+ * ice_dcbnl_set_pg_bwg_cfg_rx\n+ * @netdev: the corresponding netdev\n+ * @pgid: corresponding TC\n+ * @bw_pct: BW percentage for given TC\n+ *\n+ * lldpad requires this function pointer to be non-NULL to complete CEE config.\n+ */\n+static void\n+ice_dcbnl_set_pg_bwg_cfg_rx(struct net_device *netdev, int __always_unused pgid,\n+\t\t\t u8 __always_unused bw_pct)\n+{\n+\tstruct ice_pf *pf = ice_netdev_to_pf(netdev);\n+\n+\tdev_dbg(ice_pf_to_dev(pf), \"Rx BWG PG Config Not Supported.\\n\");\n+}\n+\n /**\n * ice_dcbnl_get_cap - Get DCBX capabilities of adapter\n * @netdev: pointer to netdev struct\n@@ -805,6 +846,8 @@ static const struct dcbnl_rtnl_ops dcbnl_ops = {\n \t.getpermhwaddr = ice_dcbnl_get_perm_hw_addr,\n \t.setpgtccfgtx = ice_dcbnl_set_pg_tc_cfg_tx,\n \t.setpgbwgcfgtx = ice_dcbnl_set_pg_bwg_cfg_tx,\n+\t.setpgtccfgrx = ice_dcbnl_set_pg_tc_cfg_rx,\n+\t.setpgbwgcfgrx = ice_dcbnl_set_pg_bwg_cfg_rx,\n \t.getpgtccfgtx = ice_dcbnl_get_pg_tc_cfg_tx,\n \t.getpgbwgcfgtx = ice_dcbnl_get_pg_bwg_cfg_tx,\n \t.getpgtccfgrx = ice_dcbnl_get_pg_tc_cfg_rx,\n", "prefixes": [ "S39", "v2", "05/15" ] }