]> www.infradead.org Git - users/jedix/linux-maple.git/commit
igb: Explicitly label self-test result indices
authorJoe Schultz <jschultz@xes-inc.com>
Tue, 3 Nov 2015 18:37:29 +0000 (12:37 -0600)
committerKirtikar Kashyap <kirtikar.kashyap@oracle.com>
Thu, 22 Jun 2017 21:28:29 +0000 (14:28 -0700)
commit5eb14875cd6c93564e89d714af41c2978127e992
tree7c97342bc327b06967f697ceb5848f0949907d06
parent1976ce9e370b93f9c31fbb67fde4c2e85dcef9bb
igb: Explicitly label self-test result indices

Previously, the ethtool self-test gstrings/data arrays were accessed via
hardcoded indices, which made the code difficult to follow. This patch
replaces the hardcoded values with enum-based labels.

Signed-off-by: Joe Schultz <jschultz@xes-inc.com>
Signed-off-by: Aaron Sierra <asierra@xes-inc.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
(cherry picked from commit d602de05934c1d3022b153ff879e81f65df2a7b6)

Orabug: 26325580

Signed-off-by: Kirtikar Kashyap <kirtikar.kashyap@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
drivers/net/ethernet/intel/igb/igb_ethtool.c