]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.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)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 29 Feb 2016 15:56:23 +0000 (08:56 -0700)
commitc69f97cd03303b37a62e93c862525326939ba9ca
tree1fc3e0d8266e3d6e41fd50b26d115a1580019cd2
parentd7fecb7a8bf631c00962bbf926bc8cd0576fa656
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)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/net/ethernet/intel/igb/igb_ethtool.c