i40e/base: explicitly assign index for VSI type
authorJingjing Wu <jingjing.wu@intel.com>
Sun, 6 Sep 2015 07:12:05 +0000 (15:12 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 1 Oct 2015 23:35:22 +0000 (01:35 +0200)
commit3efd17148f29434c8c88fcebea52e5c7f83395db
tree80834246a101b179dd8b93bac3077eb35e77709b
parent3c67585133f631d74ccfa12d099b598b9994c8ca
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 <jingjing.wu@intel.com>
Acked-by: Helin Zhang <helin.zhang@intel.com>
Tested-by: Huilong Xu <huilongx.xu@intel.com>
drivers/net/i40e/base/i40e_type.h