ice: fix MAC write command
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Sat, 16 May 2020 00:36:41 +0000 (17:36 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 28 May 2020 00:06:44 +0000 (17:06 -0700)
commit5df42c8267418bfb8da54cc4772b397ea4c88aea
tree4702a484b0044a7d19c5a271e70ef75bb9b31353
parentbf8987df8aa57da884276b07a64307eac577eaaf
ice: fix MAC write command

The manage MAC write command was implemented in an overly complex way
that actually didn't work, as it wasn't symmetric to the manage MAC
read command, and was feeding bytes out of order to the firmware. Fix
the implementation by just using a simple array to represent the MAC
address when it is being written via firmware command.

Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_adminq_cmd.h
drivers/net/ethernet/intel/ice/ice_common.c