[dpdk-dev,49/52] i40e/base: Allow for per-device FW API version

Message ID 1441523526-26202-50-git-send-email-jingjing.wu@intel.com (mailing list archive)
State Accepted, archived
Headers

Commit Message

Jingjing Wu Sept. 6, 2015, 7:12 a.m. UTC
  Allow for unique FW API versions for different HW

Signed-off-by: Jingjing Wu <jingjing.wu@intel.com>
---
 drivers/net/i40e/base/i40e_type.h | 7 +++++++
 1 file changed, 7 insertions(+)
  

Patch

diff --git a/drivers/net/i40e/base/i40e_type.h b/drivers/net/i40e/base/i40e_type.h
index 2175505..dbe561d 100644
--- a/drivers/net/i40e/base/i40e_type.h
+++ b/drivers/net/i40e/base/i40e_type.h
@@ -171,6 +171,13 @@  enum i40e_memcpy_type {
 	I40E_DMA_TO_NONDMA
 };
 
+
+#ifdef X722_SUPPORT
+#define I40E_FW_API_VERSION_MINOR_X722	0x0003
+#endif
+#define I40E_FW_API_VERSION_MINOR_X710	0x0004
+
+
 /* These are structs for managing the hardware information and the operations.
  * The structures of function pointers are filled out at init time when we
  * know for sure exactly which hardware we're working with.  This gives us the