]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
i40e/i40evf: Explicitly assign enum index for VSI type
authorSerey Kong <serey.kong@intel.com>
Thu, 27 Aug 2015 15:42:41 +0000 (11:42 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 8 Oct 2015 23:02:44 +0000 (16:02 -0700)
commit66486cd71723b2b41b36759159b551230ab8763d
tree2fb786512c8c5c42c1a34c86600f4c29cbfa96c9
parent9ac77266379d070c6d140ad44f86a99936497eeb
i40e/i40evf: Explicitly assign enum index for VSI type

Ran into an issue where PF's VSI type list was different from VF's,
which was resulted in different enum index. The VSI type list can
be different depending on what build flag is used for PF and VF.

The change is to explicitly assign enum index for each VSI type
so that PF and VF always reference to the same VSI type event if the
enum lists are different.

Change-ID: I8c0e5fdb515f324f7964df863a458073cf467e57
Signed-off-by: Serey Kong <serey.kong@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_type.h
drivers/net/ethernet/intel/i40evf/i40e_type.h