igb: clean up code for setting MAC address
authorAlexander Duyck <aduyck@mirantis.com>
Thu, 7 Jan 2016 07:10:23 +0000 (23:10 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 16 Feb 2016 00:21:05 +0000 (16:21 -0800)
commitc3278587e7d34cfbc1d38d3ae25923343af7752a
tree16e68019ed5a5591e63f4eafa923c32bff4a5b0b
parent9ce0e8d72678b5b60c99ce4c7af15ec127c761cb
igb: clean up code for setting MAC address

Drop a bunch of hand written byte swapping code in favor of just doing the
byte swapping ourselves.  The registers are little endian registers storing
a big endian value so if we read the MAC address array as little endian
then we will get the CPU registers into the proper layout.

Signed-off-by: Alexander Duyck <aduyck@mirantis.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_main.c