commit | 60518a048919a2781e3192981d2946149240b837 | [log] [tgz] |
---|---|---|
author | Mitch Williams <mitch.a.williams@intel.com> | Tue Aug 29 05:32:33 2017 -0400 |
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | Fri Oct 06 08:11:31 2017 -0700 |
tree | 702c5eb9f00e38e506acee9054946bb632388418 | |
parent | c3d26b75c22b0487c452bd610338aa015eae517b [diff] |
i40e: redfine I40E_PHY_TYPE_MAX Since I40E_PHY_TYPE_MAX is used as an iterator, usually combined with some sort of bit-shifting, it should only include actual PHY types and not error cases. Move it up in the enum declaration so that loops only iterate across valid PHY types. Signed-off-by: Mitch Williams <mitch.a.williams@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>