From: Jingjing Wu Date: Sun, 6 Sep 2015 07:12:05 +0000 (+0800) Subject: i40e/base: explicitly assign index for VSI type X-Git-Tag: spdx-start~8438 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=3efd17148f29434c8c88fcebea52e5c7f83395db;p=dpdk.git i40e/base: explicitly assign index for VSI type The change is to explicitly assign enum index for each VSI type so that PF and VF always reference to the same VSI type even if the enum lists are different. Signed-off-by: Jingjing Wu Acked-by: Helin Zhang Tested-by: Huilong Xu --- diff --git a/drivers/net/i40e/base/i40e_type.h b/drivers/net/i40e/base/i40e_type.h index fa8efd1387..5dfae629ce 100644 --- a/drivers/net/i40e/base/i40e_type.h +++ b/drivers/net/i40e/base/i40e_type.h @@ -222,14 +222,14 @@ enum i40e_set_fc_aq_failures { }; enum i40e_vsi_type { - I40E_VSI_MAIN = 0, - I40E_VSI_VMDQ1, - I40E_VSI_VMDQ2, - I40E_VSI_CTRL, - I40E_VSI_FCOE, - I40E_VSI_MIRROR, - I40E_VSI_SRIOV, - I40E_VSI_FDIR, + I40E_VSI_MAIN = 0, + I40E_VSI_VMDQ1 = 1, + I40E_VSI_VMDQ2 = 2, + I40E_VSI_CTRL = 3, + I40E_VSI_FCOE = 4, + I40E_VSI_MIRROR = 5, + I40E_VSI_SRIOV = 6, + I40E_VSI_FDIR = 7, I40E_VSI_TYPE_UNKNOWN };