]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: remove workaround for Open Firmware MAC address
authorJacob Keller <jacob.e.keller@intel.com>
Fri, 23 Jun 2017 08:24:47 +0000 (04:24 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 25 Aug 2017 21:46:20 +0000 (14:46 -0700)
commitad3483f54e876215973c5af5ff42f9be997524b1
tree9cb8427842848eb0d235ee30fc97c9f476ae483c
parent622d9ef95aee613c0fdd18c5d2198c0aa8f7eb34
i40e: remove workaround for Open Firmware MAC address

Since commit 7eff5b9a30fb ("i40e: Look up MAC address in Open Firmware
or IDPROM"), we've had support for obtaining the MAC address
form Open Firmware or IDPROM.

This code relied on sending the Open Firmware address directly to the
device firmware instead of relying on our MAC/VLAN filter list. Thus,
a work around was introduced in commit 889b439e884d ("i40e: Explicitly
write platform-specific mac address after PF reset")

We refactored the Open Firmware address enablement code in the ill-named
commit 13049fb69201 ("i40e: allow look-up of MAC address from Open
Firmware or IDPROM")

Since this refactor, we no longer even set I40E_FLAG_PF_MAC. Further, we
don't need this work around, because we actually store the MAC address
as part of the MAC/VLAN filter hash. Thus, we will restore the address
correctly upon reset.

The refactor above failed to revert the workaround, so do that now.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e.h
drivers/net/ethernet/intel/i40e/i40e_main.c