]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i40e: Look up MAC address in Open Firmware or IDPROM
authorSowmini Varadhan <sowmini.varadhan@oracle.com>
Wed, 4 Nov 2015 19:39:56 +0000 (14:39 -0500)
committerDhaval Giani <dhaval.giani@oracle.com>
Wed, 8 Mar 2017 00:29:15 +0000 (19:29 -0500)
commit3e3cfd74d07d8ab12325561b9ff41c5f6673778d
tree3d31905f7521d68dc8bea45b207c7fc79a32a727
parent30ed3cf7f226ad2ef13e601eba456b60a60dc75e
i40e: Look up MAC address in Open Firmware or IDPROM

This is the i40e equivalent of commit c762dff24c06 ("ixgbe: Look up MAC
address in Open Firmware or IDPROM").

As with that fix, attempt to look up the MAC address in Open Firmware
on systems that support it, and use IDPROM on SPARC if no OF address
is found.

In the case of the i40e there is an assumption that the default mac
address has already been set up as the primary mac filter on probe,
so if this filter is obtained from the Open Firmware or IDPROM, an
explicit write is needed via i40e_aq_mac_address_write() and
i40e_aq_add_macvlan() invocation.

Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
(cherry picked from commit c7a3fd4e5d009b6b5bc90ee373aac232a7089068)
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_main.c