Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1229959/?format=api
{ "id": 1229959, "url": "http://patchwork.ozlabs.org/api/patches/1229959/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20200127085927.13999-5-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": "<20200127085927.13999-5-anthony.l.nguyen@intel.com>", "list_archive_url": null, "date": "2020-01-27T08:59:17", "name": "[S39,05/15] ice: Add DCBNL ops required to configure ETS in CEE for SW DCB", "commit_ref": null, "pull_url": null, "state": "superseded", "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/20200127085927.13999-5-anthony.l.nguyen@intel.com/mbox/", "series": [ { "id": 155506, "url": "http://patchwork.ozlabs.org/api/series/155506/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=155506", "date": "2020-01-27T08:59:25", "name": "[S39,01/15] ice: Validate config for SW DCB map", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/155506/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/1229959/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/1229959/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.137;\n\thelo=fraxinus.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 fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\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 485xdb75V3z9sRW\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 28 Jan 2020 04:32:19 +1100 (AEDT)", "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 3940E84B23;\n\tMon, 27 Jan 2020 17:32:18 +0000 (UTC)", "from fraxinus.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id 0ZFgYpRh1gkg; Mon, 27 Jan 2020 17:32:17 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 9970F85087;\n\tMon, 27 Jan 2020 17:32:17 +0000 (UTC)", "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\tby ash.osuosl.org (Postfix) with ESMTP id 98ACA1BF283\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 27 Jan 2020 17:32:16 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 9314284828\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 27 Jan 2020 17:32:16 +0000 (UTC)", "from fraxinus.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id 3BiIkvXmlReN for <intel-wired-lan@lists.osuosl.org>;\n\tMon, 27 Jan 2020 17:32:16 +0000 (UTC)", "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n\tby fraxinus.osuosl.org (Postfix) with ESMTPS id 162D184806\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 27 Jan 2020 17:32:16 +0000 (UTC)", "from fmsmga005.fm.intel.com ([10.253.24.32])\n\tby fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t27 Jan 2020 09:32:10 -0800", "from unknown (HELO localhost.jf.intel.com) ([10.166.244.174])\n\tby fmsmga005.fm.intel.com with ESMTP; 27 Jan 2020 09:32:09 -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,370,1574150400\"; d=\"scan'208\";a=\"427350644\"", "From": "Tony Nguyen <anthony.l.nguyen@intel.com>", "To": "intel-wired-lan@lists.osuosl.org", "Date": "Mon, 27 Jan 2020 00:59:17 -0800", "Message-Id": "<20200127085927.13999-5-anthony.l.nguyen@intel.com>", "X-Mailer": "git-send-email 2.20.1", "In-Reply-To": "<20200127085927.13999-1-anthony.l.nguyen@intel.com>", "References": "<20200127085927.13999-1-anthony.l.nguyen@intel.com>", "MIME-Version": "1.0", "Subject": "[Intel-wired-lan] [PATCH S39 05/15] ice: Add DCBNL ops required to\n\tconfigure 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 a45e8abef8f3..912467add847 100644\n--- a/drivers/net/ethernet/intel/ice/ice_dcb_nl.c\n+++ b/drivers/net/ethernet/intel/ice/ice_dcb_nl.c\n@@ -541,6 +541,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@@ -560,6 +584,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@@ -806,6 +847,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", "05/15" ] }