Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1049649/?format=api
{ "id": 1049649, "url": "http://patchwork.ozlabs.org/api/patches/1049649/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20190228175255.54754-6-alice.michael@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": "<20190228175255.54754-6-alice.michael@intel.com>", "list_archive_url": null, "date": "2019-02-28T17:52:52", "name": "[next,S3,6/9] i40e: Further implementation of LLDP", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "d209d2220db82b10a2dedbd1865c7d8cb903bec9", "submitter": { "id": 71123, "url": "http://patchwork.ozlabs.org/api/people/71123/?format=api", "name": "Michael, Alice", "email": "alice.michael@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/20190228175255.54754-6-alice.michael@intel.com/mbox/", "series": [ { "id": 94754, "url": "http://patchwork.ozlabs.org/api/series/94754/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=94754", "date": "2019-02-28T17:52:49", "name": "[next,S3,1/9] i40e: Fix for allowing too many MDD events on VF", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/94754/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/1049649/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/1049649/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.137; helo=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 449Ktb6tycz9sC3\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 1 Mar 2019 04:54:15 +1100 (AEDT)", "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 95153860D1;\n\tThu, 28 Feb 2019 17:54:14 +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 cf0XwjKwYMFG; Thu, 28 Feb 2019 17:54:13 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 5AED985FA7;\n\tThu, 28 Feb 2019 17:54:13 +0000 (UTC)", "from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n\tby ash.osuosl.org (Postfix) with ESMTP id 8285D1BF410\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tThu, 28 Feb 2019 17:54:11 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id 7D87922D10\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tThu, 28 Feb 2019 17:54:11 +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 vFDzofFzT8ns for <intel-wired-lan@lists.osuosl.org>;\n\tThu, 28 Feb 2019 17:54:08 +0000 (UTC)", "from mga05.intel.com (mga05.intel.com [192.55.52.43])\n\tby silver.osuosl.org (Postfix) with ESMTPS id 370E92272C\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tThu, 28 Feb 2019 17:54:07 +0000 (UTC)", "from fmsmga005.fm.intel.com ([10.253.24.32])\n\tby fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t28 Feb 2019 09:54:06 -0800", "from alicemic-2.jf.intel.com ([10.166.16.121])\n\tby fmsmga005.fm.intel.com with ESMTP; 28 Feb 2019 09:54:06 -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.58,423,1544515200\"; d=\"scan'208\";a=\"324246232\"", "From": "Alice Michael <alice.michael@intel.com>", "To": "alice.michael@intel.com,\n\tintel-wired-lan@lists.osuosl.org", "Date": "Thu, 28 Feb 2019 09:52:52 -0800", "Message-Id": "<20190228175255.54754-6-alice.michael@intel.com>", "X-Mailer": "git-send-email 2.19.2", "In-Reply-To": "<20190228175255.54754-1-alice.michael@intel.com>", "References": "<20190228175255.54754-1-alice.michael@intel.com>", "MIME-Version": "1.0", "Subject": "[Intel-wired-lan] [next PATCH S3 6/9] i40e: Further implementation\n\tof LLDP", "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>", "Cc": "Aleksandr Loktionov <aleksandr.loktionov@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": "From: Aleksandr Loktionov <aleksandr.loktionov@intel.com>\n\nThis code implements driver code changes necessary for LLDP\nAgent support. Modified i40e_aq_start_lldp() and\ni40e_aq_stop_lldp() adding false parameter whether LLDP state\nshould be persistent across power cycles.\n\nSigned-off-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>\n---\n drivers/net/ethernet/intel/i40e/i40e_adminq.c | 5 ++\n .../net/ethernet/intel/i40e/i40e_adminq_cmd.h | 20 ++++--\n drivers/net/ethernet/intel/i40e/i40e_common.c | 62 ++++++++++++++++++-\n .../net/ethernet/intel/i40e/i40e_debugfs.c | 4 +-\n .../net/ethernet/intel/i40e/i40e_ethtool.c | 4 +-\n drivers/net/ethernet/intel/i40e/i40e_main.c | 2 +-\n .../net/ethernet/intel/i40e/i40e_prototype.h | 8 ++-\n drivers/net/ethernet/intel/i40e/i40e_type.h | 1 +\n 8 files changed, 93 insertions(+), 13 deletions(-)", "diff": "diff --git a/drivers/net/ethernet/intel/i40e/i40e_adminq.c b/drivers/net/ethernet/intel/i40e/i40e_adminq.c\nindex 45f6adc8ff2f..243dcd4bec19 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_adminq.c\n+++ b/drivers/net/ethernet/intel/i40e/i40e_adminq.c\n@@ -608,6 +608,11 @@ i40e_status i40e_init_adminq(struct i40e_hw *hw)\n \t hw->aq.api_min_ver >= 7))\n \t\thw->flags |= I40E_HW_FLAG_802_1AD_CAPABLE;\n \n+\tif (hw->aq.api_maj_ver > 1 ||\n+\t (hw->aq.api_maj_ver == 1 &&\n+\t hw->aq.api_min_ver >= 8))\n+\t\thw->flags |= I40E_HW_FLAG_FW_LLDP_PERSISTENT;\n+\n \tif (hw->aq.api_maj_ver > I40E_FW_API_VERSION_MAJOR) {\n \t\tret_code = I40E_ERR_FIRMWARE_API_VERSION;\n \t\tgoto init_adminq_free_arq;\ndiff --git a/drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h b/drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h\nindex 522058a7d4be..abcf79eb3261 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h\n+++ b/drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h\n@@ -261,6 +261,7 @@ enum i40e_admin_queue_opc {\n \ti40e_aqc_opc_get_cee_dcb_cfg\t= 0x0A07,\n \ti40e_aqc_opc_lldp_set_local_mib\t= 0x0A08,\n \ti40e_aqc_opc_lldp_stop_start_spec_agent\t= 0x0A09,\n+\ti40e_aqc_opc_lldp_restore\t\t= 0x0A0A,\n \n \t/* Tunnel commands */\n \ti40e_aqc_opc_add_udp_tunnel\t= 0x0B00,\n@@ -2498,18 +2499,19 @@ I40E_CHECK_CMD_LENGTH(i40e_aqc_lldp_update_tlv);\n /* Stop LLDP (direct 0x0A05) */\n struct i40e_aqc_lldp_stop {\n \tu8\tcommand;\n-#define I40E_AQ_LLDP_AGENT_STOP\t\t0x0\n-#define I40E_AQ_LLDP_AGENT_SHUTDOWN\t0x1\n+#define I40E_AQ_LLDP_AGENT_STOP\t\t\t0x0\n+#define I40E_AQ_LLDP_AGENT_SHUTDOWN\t\t0x1\n+#define I40E_AQ_LLDP_AGENT_STOP_PERSIST\t\t0x2\n \tu8\treserved[15];\n };\n \n I40E_CHECK_CMD_LENGTH(i40e_aqc_lldp_stop);\n \n /* Start LLDP (direct 0x0A06) */\n-\n struct i40e_aqc_lldp_start {\n \tu8\tcommand;\n-#define I40E_AQ_LLDP_AGENT_START\t0x1\n+#define I40E_AQ_LLDP_AGENT_START\t\t0x1\n+#define I40E_AQ_LLDP_AGENT_START_PERSIST\t0x2\n \tu8\treserved[15];\n };\n \n@@ -2633,6 +2635,16 @@ struct i40e_aqc_lldp_stop_start_specific_agent {\n \n I40E_CHECK_CMD_LENGTH(i40e_aqc_lldp_stop_start_specific_agent);\n \n+/* Restore LLDP Agent factory settings (direct 0x0A0A) */\n+struct i40e_aqc_lldp_restore {\n+\tu8\tcommand;\n+#define I40E_AQ_LLDP_AGENT_RESTORE_NOT\t\t0x0\n+#define I40E_AQ_LLDP_AGENT_RESTORE\t\t0x1\n+\tu8\treserved[15];\n+};\n+\n+I40E_CHECK_CMD_LENGTH(i40e_aqc_lldp_restore);\n+\n /* Add Udp Tunnel command and completion (direct 0x0B00) */\n struct i40e_aqc_add_udp_tunnel {\n \t__le16\tudp_port;\ndiff --git a/drivers/net/ethernet/intel/i40e/i40e_common.c b/drivers/net/ethernet/intel/i40e/i40e_common.c\nindex dd6b3b3ac5c6..e7d500f92a90 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_common.c\n+++ b/drivers/net/ethernet/intel/i40e/i40e_common.c\n@@ -3623,15 +3623,55 @@ i40e_status i40e_aq_cfg_lldp_mib_change_event(struct i40e_hw *hw,\n \treturn status;\n }\n \n+/**\n+ * i40e_aq_restore_lldp\n+ * @hw: pointer to the hw struct\n+ * @setting: pointer to factory setting variable or NULL\n+ * @restore: True if factory settings should be restored\n+ * @cmd_details: pointer to command details structure or NULL\n+ *\n+ * Restore LLDP Agent factory settings if @restore set to True. In other case\n+ * only returns factory setting in AQ response.\n+ **/\n+enum i40e_status_code\n+i40e_aq_restore_lldp(struct i40e_hw *hw, u8 *setting, bool restore,\n+\t\t struct i40e_asq_cmd_details *cmd_details)\n+{\n+\tstruct i40e_aq_desc desc;\n+\tstruct i40e_aqc_lldp_restore *cmd =\n+\t\t(struct i40e_aqc_lldp_restore *)&desc.params.raw;\n+\ti40e_status status;\n+\n+\tif (!(hw->flags & I40E_HW_FLAG_FW_LLDP_PERSISTENT)) {\n+\t\ti40e_debug(hw, I40E_DEBUG_ALL,\n+\t\t\t \"Restore LLDP not supported by current FW version.\\n\");\n+\t\treturn I40E_ERR_DEVICE_NOT_SUPPORTED;\n+\t}\n+\n+\ti40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_lldp_restore);\n+\n+\tif (restore)\n+\t\tcmd->command |= I40E_AQ_LLDP_AGENT_RESTORE;\n+\n+\tstatus = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details);\n+\n+\tif (setting)\n+\t\t*setting = cmd->command & 1;\n+\n+\treturn status;\n+}\n+\n /**\n * i40e_aq_stop_lldp\n * @hw: pointer to the hw struct\n * @shutdown_agent: True if LLDP Agent needs to be Shutdown\n+ * @persist: True if stop of LLDP should be persistent across power cycles\n * @cmd_details: pointer to command details structure or NULL\n *\n * Stop or Shutdown the embedded LLDP Agent\n **/\n i40e_status i40e_aq_stop_lldp(struct i40e_hw *hw, bool shutdown_agent,\n+\t\t\t\tbool persist,\n \t\t\t\tstruct i40e_asq_cmd_details *cmd_details)\n {\n \tstruct i40e_aq_desc desc;\n@@ -3644,6 +3684,14 @@ i40e_status i40e_aq_stop_lldp(struct i40e_hw *hw, bool shutdown_agent,\n \tif (shutdown_agent)\n \t\tcmd->command |= I40E_AQ_LLDP_AGENT_SHUTDOWN;\n \n+\tif (persist) {\n+\t\tif (hw->flags & I40E_HW_FLAG_FW_LLDP_PERSISTENT)\n+\t\t\tcmd->command |= I40E_AQ_LLDP_AGENT_STOP_PERSIST;\n+\t\telse\n+\t\t\ti40e_debug(hw, I40E_DEBUG_ALL,\n+\t\t\t\t \"Persistent Stop LLDP not supported by current FW version.\\n\");\n+\t}\n+\n \tstatus = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details);\n \n \treturn status;\n@@ -3653,13 +3701,14 @@ i40e_status i40e_aq_stop_lldp(struct i40e_hw *hw, bool shutdown_agent,\n * i40e_aq_start_lldp\n * @hw: pointer to the hw struct\n * @buff: buffer for result\n+ * @persist: True if start of LLDP should be persistent across power cycles\n * @buff_size: buffer size\n * @cmd_details: pointer to command details structure or NULL\n *\n * Start the embedded LLDP Agent on all ports.\n **/\n-i40e_status i40e_aq_start_lldp(struct i40e_hw *hw,\n-\t\t\t\tstruct i40e_asq_cmd_details *cmd_details)\n+i40e_status i40e_aq_start_lldp(struct i40e_hw *hw, bool persist,\n+\t\t\t struct i40e_asq_cmd_details *cmd_details)\n {\n \tstruct i40e_aq_desc desc;\n \tstruct i40e_aqc_lldp_start *cmd =\n@@ -3669,6 +3718,15 @@ i40e_status i40e_aq_start_lldp(struct i40e_hw *hw,\n \ti40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_lldp_start);\n \n \tcmd->command = I40E_AQ_LLDP_AGENT_START;\n+\n+\tif (persist) {\n+\t\tif (hw->flags & I40E_HW_FLAG_FW_LLDP_PERSISTENT)\n+\t\t\tcmd->command |= I40E_AQ_LLDP_AGENT_START_PERSIST;\n+\t\telse\n+\t\t\ti40e_debug(hw, I40E_DEBUG_ALL,\n+\t\t\t\t \"Persistent Start LLDP not supported by current FW version.\\n\");\n+\t}\n+\n \tstatus = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details);\n \n \treturn status;\ndiff --git a/drivers/net/ethernet/intel/i40e/i40e_debugfs.c b/drivers/net/ethernet/intel/i40e/i40e_debugfs.c\nindex c67d485d6f99..7ea4f09229e4 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_debugfs.c\n+++ b/drivers/net/ethernet/intel/i40e/i40e_debugfs.c\n@@ -1321,7 +1321,7 @@ static ssize_t i40e_dbg_command_write(struct file *filp,\n \t\tif (strncmp(&cmd_buf[5], \"stop\", 4) == 0) {\n \t\t\tint ret;\n \n-\t\t\tret = i40e_aq_stop_lldp(&pf->hw, false, NULL);\n+\t\t\tret = i40e_aq_stop_lldp(&pf->hw, false, false, NULL);\n \t\t\tif (ret) {\n \t\t\t\tdev_info(&pf->pdev->dev,\n \t\t\t\t\t \"Stop LLDP AQ command failed =0x%x\\n\",\n@@ -1358,7 +1358,7 @@ static ssize_t i40e_dbg_command_write(struct file *filp,\n \t\t\t\t/* Continue and start FW LLDP anyways */\n \t\t\t}\n \n-\t\t\tret = i40e_aq_start_lldp(&pf->hw, NULL);\n+\t\t\tret = i40e_aq_start_lldp(&pf->hw, false, NULL);\n \t\t\tif (ret) {\n \t\t\t\tdev_info(&pf->pdev->dev,\n \t\t\t\t\t \"Start LLDP AQ command failed =0x%x\\n\",\ndiff --git a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c\nindex 304ae6799de3..c0bfefa3980e 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c\n+++ b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c\n@@ -4959,7 +4959,7 @@ static int i40e_set_priv_flags(struct net_device *dev, u32 flags)\n \t\tif (pf->flags & I40E_FLAG_DISABLE_FW_LLDP) {\n \t\t\tstruct i40e_dcbx_config *dcbcfg;\n \n-\t\t\ti40e_aq_stop_lldp(&pf->hw, true, NULL);\n+\t\t\ti40e_aq_stop_lldp(&pf->hw, true, false, NULL);\n \t\t\ti40e_aq_set_dcb_parameters(&pf->hw, true, NULL);\n \t\t\t/* reset local_dcbx_config to default */\n \t\t\tdcbcfg = &pf->hw.local_dcbx_config;\n@@ -4974,7 +4974,7 @@ static int i40e_set_priv_flags(struct net_device *dev, u32 flags)\n \t\t\tdcbcfg->pfc.willing = 1;\n \t\t\tdcbcfg->pfc.pfccap = I40E_MAX_TRAFFIC_CLASS;\n \t\t} else {\n-\t\t\ti40e_aq_start_lldp(&pf->hw, NULL);\n+\t\t\ti40e_aq_start_lldp(&pf->hw, false, NULL);\n \t\t}\n \t}\n \ndiff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c\nindex e53b18b3ad6b..2557423c3ae6 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_main.c\n+++ b/drivers/net/ethernet/intel/i40e/i40e_main.c\n@@ -14132,7 +14132,7 @@ static int i40e_probe(struct pci_dev *pdev, const struct pci_device_id *ent)\n \t */\n \tif (pf->hw_features & I40E_HW_STOP_FW_LLDP) {\n \t\tdev_info(&pdev->dev, \"Stopping firmware LLDP agent.\\n\");\n-\t\ti40e_aq_stop_lldp(hw, true, NULL);\n+\t\ti40e_aq_stop_lldp(hw, true, false, NULL);\n \t}\n \n \t/* allow a platform config to override the HW addr */\ndiff --git a/drivers/net/ethernet/intel/i40e/i40e_prototype.h b/drivers/net/ethernet/intel/i40e/i40e_prototype.h\nindex 663c8bf4d3d8..882627073dce 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_prototype.h\n+++ b/drivers/net/ethernet/intel/i40e/i40e_prototype.h\n@@ -203,14 +203,18 @@ i40e_status i40e_aq_get_lldp_mib(struct i40e_hw *hw, u8 bridge_type,\n i40e_status i40e_aq_cfg_lldp_mib_change_event(struct i40e_hw *hw,\n \t\t\t\tbool enable_update,\n \t\t\t\tstruct i40e_asq_cmd_details *cmd_details);\n+enum i40e_status_code\n+i40e_aq_restore_lldp(struct i40e_hw *hw, u8 *setting, bool restore,\n+\t\t struct i40e_asq_cmd_details *cmd_details);\n i40e_status i40e_aq_stop_lldp(struct i40e_hw *hw, bool shutdown_agent,\n+\t\t\t bool persist,\n \t\t\t\tstruct i40e_asq_cmd_details *cmd_details);\n i40e_status i40e_aq_set_dcb_parameters(struct i40e_hw *hw,\n \t\t\t\t bool dcb_enable,\n \t\t\t\t struct i40e_asq_cmd_details\n \t\t\t\t *cmd_details);\n-i40e_status i40e_aq_start_lldp(struct i40e_hw *hw,\n-\t\t\t\tstruct i40e_asq_cmd_details *cmd_details);\n+i40e_status i40e_aq_start_lldp(struct i40e_hw *hw, bool persist,\n+\t\t\t struct i40e_asq_cmd_details *cmd_details);\n i40e_status i40e_aq_get_cee_dcb_config(struct i40e_hw *hw,\n \t\t\t\t void *buff, u16 buff_size,\n \t\t\t\t struct i40e_asq_cmd_details *cmd_details);\ndiff --git a/drivers/net/ethernet/intel/i40e/i40e_type.h b/drivers/net/ethernet/intel/i40e/i40e_type.h\nindex 79420bcc7414..820af0043cc8 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_type.h\n+++ b/drivers/net/ethernet/intel/i40e/i40e_type.h\n@@ -616,6 +616,7 @@ struct i40e_hw {\n #define I40E_HW_FLAG_AQ_PHY_ACCESS_CAPABLE BIT_ULL(2)\n #define I40E_HW_FLAG_NVM_READ_REQUIRES_LOCK BIT_ULL(3)\n #define I40E_HW_FLAG_FW_LLDP_STOPPABLE BIT_ULL(4)\n+#define I40E_HW_FLAG_FW_LLDP_PERSISTENT BIT_ULL(5)\n \tu64 flags;\n \n \t/* Used in set switch config AQ command */\n", "prefixes": [ "next", "S3", "6/9" ] }