Skip to content

Commit

Permalink
[igbvf] Allow changing of MAC address
Browse files Browse the repository at this point in the history
The VF might not have assigned a MAC address upon startup, and will
end up with a random MAC address during probe().  With this patch the
MAC address can be changed later on.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
hreinecke authored and mcb30 committed Jun 12, 2014
1 parent f63ec19 commit bb5a4a1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/drivers/net/igbvf/igbvf_main.c
Expand Up @@ -617,6 +617,10 @@ static int igbvf_open ( struct net_device *netdev )

DBG ("igbvf_open\n");

/* Update MAC address */
memcpy ( adapter->hw.mac.addr, netdev->ll_addr, ETH_ALEN );
igbvf_reset( adapter );

/* allocate transmit descriptors */
err = igbvf_setup_tx_resources ( adapter );
if (err) {
Expand Down

0 comments on commit bb5a4a1

Please sign in to comment.