]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit219c1f3ce76586df8e97f8bd3f27b3f0ff4a23cf
tree4702a484b0044a7d19c5a271e70ef75bb9b31353
parent634bc518470991a6615f259495df55d721e2e407
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