]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 10 Mar 2016 16:32:26 +0000 (08:32 -0800)
commit75fd97b1c3a75cb3b8b1493b0bd514b263b67d0c
tree57491265feb36ef02fdd481e367613f9af7acabc
parent191e125358e28710e5a262aa28acfef6c119e85c
i40e/i40evf: Explicitly assign enum index for VSI type

Orabug: 22342532

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>
(cherry picked from commit 66486cd71723b2b41b36759159b551230ab8763d)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_type.h
drivers/net/ethernet/intel/i40evf/i40e_type.h