[02/69] net/i40e/base: add ESXi support to transition to flat NVM

Message ID 20191202074935.97629-3-xiaolong.ye@intel.com (mailing list archive)
State Changes Requested, archived
Delegated to: xiaolong ye
Headers
Series update for i40e base code |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK

Commit Message

Xiaolong Ye Dec. 2, 2019, 7:48 a.m. UTC
  ESXi is required to transition back to a flat NVM from structured. Adding
ifdef support for ESXi.

Signed-off-by: Doug Dziggel <douglas.a.dziggel@intel.com>
Reviewed-by: Stillwell Jr Paul M <paul.m.stillwell.jr@intel.com>
Reviewed-by: Williams Mitch A <mitch.a.williams@intel.com>
Reviewed-by: Kirsher Jeffrey T <jeffrey.t.kirsher@intel.com>
Signed-off-by: Xiaolong Ye <xiaolong.ye@intel.com>
---
 drivers/net/i40e/base/i40e_common.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
  

Patch

diff --git a/drivers/net/i40e/base/i40e_common.c b/drivers/net/i40e/base/i40e_common.c
index 68348858d..ed9ad011d 100644
--- a/drivers/net/i40e/base/i40e_common.c
+++ b/drivers/net/i40e/base/i40e_common.c
@@ -1017,10 +1017,10 @@  enum i40e_status_code i40e_init_shared_code(struct i40e_hw *hw)
 
 #ifdef I40E_NVMUPD_SUPPORT
 #ifndef EXTERNAL_RELEASE
-	/* At the moment there are only two OSes where this feature
-	 * is required - FreeBSD and Linux. FreeBSD driver does
+	/* At the moment there are only three OSes where this feature
+	 * is required - ESX, FreeBSD and Linux. FreeBSD driver does
 	 * not support transition to Flat NVM. Use preprocessor
-	 * tag to ensure that this is exposed only for Linux.
+	 * tag to ensure that this is exposed only for Linux and esx.
 	 */
 #endif
 	/* NVMUpdate features structure initialization */
@@ -1032,7 +1032,7 @@  enum i40e_status_code i40e_init_shared_code(struct i40e_hw *hw)
 		    sizeof(*hw->nvmupd_features.features),
 		    I40E_NONDMA_MEM);
 
-#ifdef LINUX_SUPPORT
+#if defined(LINUX_SUPPORT) || defined(ESX_SUPPORT)
 	hw->nvmupd_features.features[0] = I40E_NVMUPD_FEATURE_FLAT_NVM_SUPPORT;
 #else
 	/* No features supported at the moment */