]> git.karo-electronics.de Git - linux-beck.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)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 15 Dec 2015 00:07:21 +0000 (16:07 -0800)
commitd602de05934c1d3022b153ff879e81f65df2a7b6
treecf28cc8aa001d7504c8b9f5140e0bff1e0e816f9
parent3627f8f1d137f6487e51ff1199a54a087a2a6446
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>
drivers/net/ethernet/intel/igb/igb_ethtool.c