Skip to content

Commit

Permalink
igb: Alternate MAC Address Updates for Func2&3
Browse files Browse the repository at this point in the history
Only function 1 has support for Alternate MAC Address in the EEPROM before,
this update now allow function 2 and 3 to have support for Alternate MAC
Address in the EEPROM.

Signed-off-by: "Akeem G. Abodunrin" <[email protected]>
Tested-by:  Aaron Brown  <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
Signed-off-by: Pierre Carrier <[email protected]>
  • Loading branch information
aabodunrin authored and John-John Tedro committed Oct 23, 2012
1 parent 156f235 commit 8cc43a4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/net/igb/e1000_mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,11 @@ s32 igb_check_alt_mac_addr(struct e1000_hw *hw)

if (hw->bus.func == E1000_FUNC_1)
nvm_alt_mac_addr_offset += E1000_ALT_MAC_ADDRESS_OFFSET_LAN1;
if (hw->bus.func == E1000_FUNC_2)
nvm_alt_mac_addr_offset += E1000_ALT_MAC_ADDRESS_OFFSET_LAN2;
if (hw->bus.func == E1000_FUNC_3)
nvm_alt_mac_addr_offset += E1000_ALT_MAC_ADDRESS_OFFSET_LAN3;

for (i = 0; i < ETH_ALEN; i += 2) {
offset = nvm_alt_mac_addr_offset + (i >> 1);
ret_val = hw->nvm.ops.read(hw, offset, 1, &nvm_data);
Expand Down

0 comments on commit 8cc43a4

Please sign in to comment.