]> git.baikalelectronics.ru Git - kernel.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)
commita6ed43e0d780640d165e8eb6b1cab18d89aa1564
tree2fb786512c8c5c42c1a34c86600f4c29cbfa96c9
parent301d4ea8239b6db6cca7fc1dc80d68700d703bcd
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